SHM Energy Calculator – Total, Kinetic & Potential Energy

Use this free SHM Energy Calculator to find the total energy of a mass oscillating on a spring, and how that energy splits into kinetic and potential energy at any displacement x.

m x A E stays the same: KE + PE = ½kA²

Formula

The total energy is E = ½kA² and never changes (no friction). At displacement x the potential energy is PE = ½kx² and the kinetic energy is KE = ½k(A² − x²) = E − PE. At the centre all the energy is kinetic; at the turning points it is all potential.

How to use

Worked example

A spring with k = 100 N/m oscillates with amplitude 0.2 m. At displacement x = 0.1 m:
Total E = ½ × 100 × 0.2² = 2 J
PE = ½ × 100 × 0.1² = 0.5 J
KE = 2 − 0.5 = 1.5 J — three quarters of the energy is kinetic at this point.

FAQ

Why is the total energy proportional to A²?
Because a spring's stored energy is ½kx². Double the amplitude and the energy becomes four times larger.

At what displacement is KE equal to PE?
When ½kx² = ½E, i.e. at x = A/√2 ≈ 0.71A.

Does the mass of the oscillator matter for the energy?
Not directly — E = ½kA² uses only k and A. The mass affects the period and speed, not the total energy.