Skip to content
Omnikalc

Forced oscillation and resonance calculator

Enter the mass, the spring, the damping, the force and the driving frequency to get the amplitude, the magnification, the phase lag and the resonance peak.

Updated on
Your inputs
kg

Value out of range

N/m

Value out of range

N·s/m

Value out of range

N

Value out of range

Hz

Value out of range

Results

Amplitude of the vibration

27.79 mm

Magnification over the static deflection
2.22
Phase lag behind the force
31.6 °
Natural frequency
3.183 Hz
Damping ratio
0.150
Frequency of the amplitude peak
3.111 Hz
Quality factor Q
3.33

The forced oscillation calculator gives the amplitude, the magnification, the phase lag and the resonance peak of a mass on a damped spring that is pushed by a sinusoidal force.

How the calculation works

  • Enter the mass, the spring stiffness and the damping coefficient.
  • Enter the amplitude of the force and the driving frequency.
  • The calculator gives the amplitude, the magnification, the phase, the natural frequency, the damping ratio, the peak frequency and Q.

Example

A 2 kg mass on a spring of 800 N/m has a natural frequency of 3.183 Hz and, with 12 N·s/m of damping, a damping ratio of 0.150. A force of 10 N at 2.5 Hz gives an amplitude of 27.79 mm, which is 2.22 times the static deflection of 12.5 mm, with a phase lag of 31.6°. The amplitude peaks at 3.111 Hz and Q is 3.33.

Why it matters

The calculator helps students of physics and mechanics, and engineers who check machine vibrations, to see how close to resonance a driven system is and how much the damping protects it.

Good to know

Keep the driving frequency away from the natural frequency, ideally below 70 % or above 140 % of it, unless the damping is large. A machine that runs through a resonance during start up should pass it quickly. If the magnification is larger than expected, increase the damping or change the stiffness or the mass to move the natural frequency. For a base excitation, as in a vehicle on a road, the formula is different because the force comes through the spring and the damper. Check also that the amplitude is small enough for the spring to stay linear. A large Q means a narrow peak, which is useful for a filter or a clock and dangerous for a bridge or a floor.

The spring and mass calculator gives the undamped case, the damping ratio calculator describes the decay, the simple harmonic motion calculator gives the motion and the LC resonance calculator covers the electrical equivalent.

Frequently asked questions

What is resonance?

Resonance is the strong response of an oscillator that is driven near its natural frequency. The amplitude is the force divided by the spring stiffness, multiplied by a magnification factor that peaks close to the natural frequency and grows as the damping gets smaller. At resonance the magnification is about 1 / (2ζ), the quality factor Q.

How is the phase lag defined?

The vibration lags behind the force by an angle between 0° and 180°. It is near 0° when the driving frequency is well below the natural one, 90° at the natural frequency and close to 180° well above it. The calculator uses the usual formula φ = atan(c ω / (k − m ω²)) with the right quadrant.

Why is the peak not exactly at the natural frequency?

With damping, the amplitude peaks at the lower frequency f0 √(1 − 2ζ²), and the peak disappears when ζ reaches 0.707. For light damping the shift is small. The calculator shows the peak frequency and returns 0 when there is no peak.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.