About SHM Energy Calculator
In an undamped spring oscillator, energy moves between the spring and the moving mass, but the total stays constant. At maximum displacement all of the energy is potential, and through equilibrium all of it is kinetic; the oscillation simply exchanges one form for the other.
This calculator applies E = ½kA², PE = ½kx² and KE = E − PE to find the energy split at any displacement within the amplitude. It also reports the speed from v = ω√(A² − x²), the angular frequency ω = √(k/m) and the period, so the state is fully described.
What this tool does
Total, kinetic and potential energy
The three energies are reported together, with the split at the chosen displacement.
KE/PE split at x
Percentages and proportional bars show how the total energy is divided at the current position.
Speed at displacement
Speed follows v = ω√(A² − x²), reaching its maximum at equilibrium and zero at the amplitude.
Angular frequency and period
ω = √(k/m) and T = 2π/ω are reported, so the oscillator's timing is available with its energy.
Unit choices
Mass can be entered in kilograms or grams, and amplitude and displacement in meters or centimeters.
Formula steps
The energy and speed equations are printed with the substituted values for checking.
How to use SHM Energy Calculator
- 01
Enter the oscillator properties
Set the mass in kg or g and the spring stiffness in N/m.
- 02
Set the amplitude
Enter the maximum displacement A in meters or centimeters.
- 03
Set the current displacement
Enter x within the amplitude; the tool reports the energy split at that position.
- 04
Read the energies and speed
The headline shows total energy, and the cards give kinetic and potential energy, speed, angular frequency and period.
- 05
Check the working
The formula panel shows E = ½kA², PE = ½kx² and the speed equation with the values substituted.
How this tool works
- Works with
- m, k, A, x → E
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- Models the undamped spring oscillator only; damping, driving and pendulum energy are not included.
- Assumes a linear spring obeying Hooke's law with no mass or internal losses.
- The energy values are ideal-model results; real springs lose energy to internal friction.
Privacy and file handling
Mass, stiffness, amplitude and displacement are processed entirely in your browser. Nothing is uploaded, stored or logged, and no network request is made.
Read the full privacy policy