Spring-Mass Oscillation Period Calculator

Spring-Mass Oscillation Period Calculator

Growing AI Skill PRO

Enter Calculation

Formula

T=2πMass (kg)Spring constant (N/m)T = 2\pi \sqrt{\dfrac{\text{Mass (kg)}}{\text{Spring constant (N/m)}}}
Usage stats

Advertisement

Results

Oscillation Period
0.9935
seconds per cycle
Frequency f 1.0066 Hz
Angular frequency ω 6.3246 rad/s

Report an error on this page

What Is the Spring-Mass Period Calculator?

This tool computes how long it takes a mass attached to an ideal spring to complete one full oscillation — its period T. A mass on a spring is the classic example of simple harmonic motion (SHM), where the restoring force is proportional to displacement (Hooke's law, \(F = -kx\)). Enter the mass and the spring constant to get the period, the frequency, and the angular frequency.

How to Use It

Enter the mass m in kilograms and the spring constant k in newtons per metre (N/m). Click calculate to see the period in seconds, the frequency in hertz, and the angular frequency in radians per second. The result assumes an ideal, massless spring with no damping or friction, and the period does not depend on the amplitude of the oscillation.

Sine wave of displacement versus time showing period T and amplitude A
Displacement follows a sine curve in time; one full cycle defines the period T.

The Formula Explained

The governing equation is:

$$T = 2\pi \sqrt{\dfrac{m}{k}}$$

A larger mass makes the system sluggish, increasing the period. A stiffer spring (larger \(k\)) pulls harder for a given displacement, shortening the period. Frequency is simply the inverse, \(f = 1/T\), and angular frequency is \(\omega = \sqrt{k/m} = 2\pi f\).

Advertisement

Worked Example

Suppose a 0.5 kg mass hangs from a spring with \(k = 20\) N/m. Then $$T = 2\pi \sqrt{\dfrac{0.5}{20}} = 2\pi \sqrt{0.025} = 2\pi \cdot 0.15811 \approx 0.9935 \text{ s}.$$ The frequency is \(f = 1/0.9935 \approx 1.0066\) Hz, and \(\omega = \sqrt{20/0.5} = \sqrt{40} \approx 6.3246\) rad/s.

Mass attached to a horizontal spring oscillating about an equilibrium position
A mass m on a spring of stiffness k oscillates about its equilibrium position.

Period Comparison for Different Masses and Spring Constants

For an ideal mass-spring system, \(T = 2\pi\sqrt{m/k}\), \(f = 1/T\) and \(\omega = 2\pi f = \sqrt{k/m}\). The table compares typical combinations (values rounded to 4 significant figures).

Mass m (kg) Spring constant k (N/m) Period T (s) Frequency f (Hz) Angular frequency ω (rad/s)
0.1 10 0.6283 1.592 10
0.5 20 0.9935 1.007 6.325
1 100 0.6283 1.592 10
2 50 1.257 0.7958 5
1 25 1.257 0.7958 5
4 25 2.513 0.3979 2.5

Scaling patterns: because T depends on \(\sqrt{m}\), quadrupling the mass doubles the period (1 kg → 4 kg at k = 25 N/m: 1.257 s → 2.513 s). Because T depends on \(1/\sqrt{k}\), quadrupling the spring constant halves the period (k = 25 → 100 N/m with 1 kg: 1.257 s → 0.6283 s). Only the ratio m/k matters, which is why 0.1 kg/10 N/m and 1 kg/100 N/m give identical results.

Definitions of Key Terms

  • Period (T), unit: seconds (s) – the time for one complete oscillation cycle.
  • Frequency (f), unit: hertz (Hz = 1/s) – the number of complete cycles per second; \(f = 1/T\).
  • Angular frequency (ω), unit: radians per second (rad/s) – the rate of change of the oscillation phase; \(\omega = 2\pi f = \sqrt{k/m}\).
  • Spring constant (k), unit: newtons per metre (N/m) – the stiffness of the spring: the force needed per metre of stretch or compression.
  • Mass (m), unit: kilograms (kg) – the oscillating mass attached to the spring.
  • Equilibrium position – the position where the net force on the mass is zero (the spring's rest point with the mass hanging or resting still).
  • Amplitude (A), unit: metres (m) – the maximum displacement from the equilibrium position. In ideal simple harmonic motion it does not affect the period.
  • Restoring force, unit: newtons (N) – the force that pulls the mass back toward equilibrium; for an ideal spring \(F = -kx\) (Hooke's law).
  • Simple harmonic motion (SHM) – oscillation in which the restoring force is proportional to the displacement and directed toward equilibrium, producing sinusoidal motion.
Advertisement

Interpreting Your Result

The period T is the time for one full back-and-forth cycle; the frequency f is how many cycles occur each second. A result of T = 0.5 s means f = 2 Hz, i.e. two cycles per second.

Sanity checks:

  • T grows with \(\sqrt{m}\): four times the mass gives twice the period.
  • T falls with \(1/\sqrt{k}\): a spring four times as stiff gives half the period.
  • A 1 kg mass on a 100 N/m spring should oscillate in roughly 0.63 s; heavier loads or softer springs should always give longer periods.
  • Amplitude does not appear in the formula; in ideal SHM, large and small swings take the same time.

Why real measurements differ: the formula assumes a massless, perfectly linear spring and no friction. In practice:

  • The spring itself has mass. A common correction replaces m with the effective mass \(m + m_s/3\), where \(m_s\) is the spring's mass, so the real period is slightly longer.
  • Damping (air drag, internal friction) lengthens the period slightly and makes the amplitude decay.
  • At large extensions the spring may no longer obey Hooke's law, so the period can change with amplitude.

Combining springs: the k you enter should be the effective spring constant. For two springs in parallel, \(k_{eff} = k_1 + k_2\) (stiffer, shorter period). For two springs in series, \(1/k_{eff} = 1/k_1 + 1/k_2\) (softer, longer period).

FAQ

Does amplitude affect the period? No. For an ideal spring obeying Hooke's law, the period is independent of how far you stretch it — this is a hallmark of SHM.

Does gravity change the period of a vertical spring? No. Gravity only shifts the equilibrium position; the oscillation period stays \(T = 2\pi\sqrt{m/k}\).

What units should I use? Use SI units: mass in kilograms and spring constant in N/m, which gives the period in seconds.

Last updated:

Most popular in Physics and Engineering

View all Physics and Engineering calculators