Intermediate

Simple Harmonic Motion Calculator — Period, Frequency & Energy

Solve a spring-mass simple harmonic oscillator. Enter the mass, spring constant and amplitude — the calculator returns the period, frequency, angular frequency, maximum velocity, maximum acceleration and total mechanical energy.

kg

Mass of the oscillating object

N/m

Stiffness of the spring (restoring force per metre of displacement)

m

Maximum displacement from the equilibrium position
Period T
1.9869s

Time for one complete oscillation: T = 2π√(m/k)

Frequency f
0.5033 Hz
Angular frequency ω
3.1623 rad/s
Maximum velocity v_max
0.3162 m/s
Maximum acceleration a_max
1 m/s²
Total mechanical energy E
0.05 J
Position vs time — SHM traces a sinusoidal path with the computed period
Step by step
  1. 1

    Angular frequency ω = √(k/m)

    √(10 ÷ 1) = 3.1623
  2. 2

    Period T = 2π ÷ ω

    2π ÷ 3.1623 = 1.9869
    Period is independent of amplitude — it depends only on mass and spring constant.
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

For a spring-mass system: T = 2π√(m/k), f = 1/T, ω = √(k/m). Maximum speed is ωA and maximum acceleration is ω²A, both at equilibrium. Total energy is ½kA², constant throughout the oscillation. The period is independent of amplitude — doubling A doubles the energy but leaves T unchanged.

Formula
T = 2π√(m/k) • ω = √(k/m) • f = ω/(2π) • v_max = ωA • a_max = ω²A • E = ½kA²
How this is calculated

Simple Harmonic Motion (SHM) describes the idealised oscillation of any system where the restoring force is proportional to displacement — the most common example being a mass on a spring obeying Hooke's law: F = −kx. The motion repeats with a period T = 2π√(m/k) that depends only on the mass m and spring constant k, not on the amplitude. This is the isochronous property of SHM.

The angular frequency ω = √(k/m) (in rad/s) is the natural oscillation rate. Ordinary frequency f = ω/(2π) in hertz is how many complete cycles occur per second. At any displacement x, the instantaneous velocity is v = ω√(A² − x²) and the acceleration is a = −ω²x. The extremes occur at the endpoints (x = ±A): velocity is zero and acceleration is at its maximum magnitude a_max = ω²A. At the equilibrium (x = 0): velocity peaks at v_max = ωA and acceleration is zero.

Total mechanical energy E = ½kA² is constant throughout the motion (conservation of energy) — it transfers between kinetic (½mv²) and elastic potential (½kx²) as the mass oscillates. This calculator assumes ideal conditions: no damping (friction or air resistance), massless spring, and small-amplitude motion where Hooke's law holds. Real systems always have some damping, which reduces amplitude over time and slightly shifts the resonant frequency.

Frequently asked questions

In ideal SHM the restoring force is perfectly proportional to displacement (F = −kx). This linearity makes the period purely a function of m and k. Doubling the amplitude doubles both the distance to travel and the average restoring force, so the two effects cancel exactly. This breaks down for large amplitudes where springs stop obeying Hooke's law.

The spring constant k must be in N/m (newtons per metre). To find k experimentally, hang the spring vertically and measure the displacement x when a known weight mg is applied: k = mg/x. Standard lab springs range from about 1 N/m (very soft) to 1000 N/m (stiff). Automotive coil springs are often 10,000–50,000 N/m.

A simple pendulum undergoing small-angle oscillations also exhibits SHM, but with period T = 2π√(L/g) where L is the pendulum length and g is gravitational acceleration (≈ 9.81 m/s²). The pendulum's effective "spring constant" is mg/L and its "mass" is m, giving the same SHM framework — but the inputs are different from a spring-mass system.

Also known as

simple harmonic motion calculator
shm calculator
spring mass period calculator
oscillation frequency calculator
harmonic oscillator period
spring constant frequency
period of vibration calculator

APA

TG we-Calculate Editorial Team. (2026). Simple Harmonic Motion Calculator — Period, Frequency & Energy [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/simple-harmonic-motion-calculator

Chicago

TG we-Calculate Editorial Team. "Simple Harmonic Motion Calculator — Period, Frequency & Energy." TG we-Calculate. 2026. https://we-calculate.com/calculator/simple-harmonic-motion-calculator.

IEEE

TG we-Calculate Editorial Team, "Simple Harmonic Motion Calculator — Period, Frequency & Energy," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/simple-harmonic-motion-calculator

BibTeX

@misc{wecalculate_simple_harmonic_motion_calculator, title = {Simple Harmonic Motion Calculator — Period, Frequency & Energy}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/simple-harmonic-motion-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?