About Simple Harmonic Motion Calculator
Simple harmonic motion describes any oscillation where the restoring force is proportional to displacement. A mass on an ideal spring and a small-angle pendulum are the two standard examples, and each has a period that depends only on the system's properties, not on the amplitude.
This calculator solves the period, frequency and angular frequency for the spring or pendulum model, and can also work backward to find the missing mass, spring stiffness, pendulum length or local gravity. Every step lists the formula, the substituted values and the assumptions that limit the model.
What this tool does
Spring and pendulum modes
Switch between T = 2π√(m/k) for a spring and T = 2π√(L/g) for a pendulum.
Solve forward or backward
Find the period and frequency, or solve for mass, stiffness, length or gravity from a known period.
Frequency and angular frequency
f = 1 ÷ T and ω = 2π ÷ T are reported alongside the period in hertz and radians per second.
Unit choices
Mass in kg or g, length in meters or centimeters, stiffness in N/m and gravity in m/s².
Formula steps
The equation and substitutions are printed, so the period can be verified by hand.
Assumptions stated
The ideal-spring and small-angle pendulum limits are stated on the page rather than hidden.
How to use Simple Harmonic Motion Calculator
- 01
Choose the oscillator
Select Spring for a mass on a spring or Pendulum for a simple pendulum.
- 02
Choose what to calculate
Find the period and frequency, or solve for the missing mass, stiffness, length or gravity.
- 03
Enter the known properties
Use the unit selectors for mass, length and the model-specific quantities; values must be positive.
- 04
Read the period and frequency
The headline gives the solved value, while the summary shows period, frequency and angular frequency.
- 05
Check the formula
The panel substitutes the properties into the period equation; Reset clears the fields for another case.
How this tool works
- Works with
- m, k or L, g → T
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- Assumes an ideal, massless spring obeying Hooke's law with no damping.
- Uses the small-angle approximation for the pendulum and does not model large-amplitude corrections.
- Does not include driving forces, damping or nonlinear effects, so real oscillations may differ.
Privacy and file handling
Mass, stiffness, length and gravity values are processed entirely in your browser. Nothing is uploaded, stored or logged.
Read the full privacy policy