Formula:
W = Fd kg m/s2 meters Work equals force times distance,
F = ma kg m/s2 Force equals mass times acceleration,
a = g m/s2 Acceleration is g,
F = mg kg m/s2 So force equals mass times g,
W = mgd kg m/s2 meters Which means work equals mass times g times distance,
d = h meters Distance equals height,
W = mgh kg m/s2 meters Which makes work equal to mass times g times height,
W=PE Which means potential energy it the amount of work an object could do.
Example:
PE = mgh
PE = (20 kg)(9.8 m/s2)(10 m)
PE = (20 kg)(98 m2/s2)
PE = 1960 kg m2/s2 or 1960 joules
This block can perform 1960 joules of work.
Hopefully, that helps..