Potential energy is calculated using the formula:
\[
PE = mgh
\]
Where:
\( m = 4 \, \text{kg} \),
\( g = 9.8 \, \text{m/s}^2 \),
\( h = 5 \, \text{m} \)
\[
PE = 4 \times 9.8 \times 5 = 196 \, \text{J}
\]
Hence, the body gains a potential energy of 196 joules.