Skip to content

Simple Harmonic Motion Calculator

Period, frequency and energy for a mass on a spring.

Work out Simple Harmonic Motion. Period, frequency and energy for a mass on a spring. Shows the working, not just the answer.

Written and maintained by Mohit PatelLast checked August 4, 2026How we build these
kg
N/m
m

Period of oscillation

3.1416 s

0.3183 Hz · ω = 2 rad/s

Period3.14159 s
Frequency0.31831 Hz
Angular frequency ω2 rad/s
Maximum velocity0.2 m/s
Maximum acceleration0.4 m/s²
Total energy0.2 J

The period depends on mass and stiffness only — never on amplitude. Pull the mass twice as far and it travels twice the distance at twice the speed, arriving back at exactly the same moment. That amplitude independence is what makes oscillators usable as clocks, and it is the property that fails as soon as the restoring force stops being proportional to displacement. Energy is entirely potential at the extremes and entirely kinetic at the centre, trading back and forth twice per cycle. Maximum speed happens at the equilibrium point, where the force is zero — the one place people expect the motion to be slowest.

How the Simple Harmonic Motion Calculator works

Enter mass, spring constant and amplitude for the period, frequency, maximum speed and acceleration, and the total energy. The period depends on mass and stiffness only — pull the mass twice as far and it still returns at the same moment.

Also known as: shm calculator · spring oscillation calculator · mass spring system frequency · oscillation period calculator

Frequently asked questions

How do I calculate the period of a spring oscillator?

T = 2π√(m/k). A 10 kg mass on a 40 N/m spring gives ω = 2 rad/s and a period of π seconds, about 3.14.

Does amplitude affect the period?

No, and that is the defining property of simple harmonic motion. A larger amplitude means further to travel but proportionally faster travel, so the time comes out identical. It is why oscillators work as clocks.

Where is the mass moving fastest?

At the equilibrium point, where the force is zero — the place most people expect it to be slowest. Speed is highest where displacement and force are both zero, and zero at the extremes where force is greatest.

How does energy move during the cycle?

It trades between potential and kinetic twice per cycle. Entirely potential at the extremes, entirely kinetic at the centre, with the total ½kA² constant throughout.

Put this calculator on your own site

Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.

The one-line version
<iframe src="https://www.thecalclibrary.com/embed/simple-harmonic-motion-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Simple Harmonic Motion Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/simple-harmonic-motion-calculator" style="color:#64748b">Simple Harmonic Motion Calculator</a> from The Calc Library</p>

The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.

Related calculators