Ans. The formula for calculating the potential energy in simple harmonic motion is given by the equation U = (1/2)kx^2, where U represents the potential energy, k is the spring constant, and x is the displacement from the equilibrium position.