Dear Student
Since, work done is given by :-
W = = ( F cosθ ) s
When a body is thrown up, its motion is opposed by gravity. The angle θ between gravitational force and the displacement is 1800. As cos θ = cos 1800 = -1. Therefore, work done by a gravity on a body moving upwards is negative.
Regards