If a body is thrown up with an initial velocity, u and covers a maximum height, h, then h is equal to u22g.
u2/2g
Using equation,
v2 = u2+2as
Here, a=−g [∵ acceleration due to gravity is acting opposite to the direction of motion]
s=h
At highest point,
Final velocity, v=0
⇒0=u2−2gh
⇒h=u22g