The motion of a body under gravity is a uniformly accelerated motion and hence all the equations of motion for uniformly accelerated motion in a straight line is applicable to the motion of bodies under gravity.
In the case of a body moving under gravity, acceleration is acceleration due to gravity and distance covered is equal to the height through which the object falls.
The equations of motion for a freely falling body are:
In the case of a body moving against gravity, the force of gravity reduces the speed of the object and hence we take a = -g. The equations of motion for a body moving against gravity are: