# Spring-Mass Oscillator Simulator - Damping, Resonance & Coupled Modes

> Animated spring-mass-damper with driving force: live x(t), damping regime with ω₀, ζ and Q, resonance curves, and coupled normal modes with beats.

- URL: https://qilingtools.com/en/math/spring
- Category: Physics Tools (https://qilingtools.com/en/physics)
- Tags: [Physics](https://qilingtools.com/en/tags/physics), [Education](https://qilingtools.com/en/tags/education)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

A hands-on spring–mass–damper bench. Move the sliders for mass, spring constant, damping and driving force, and the animation and x(t) trace follow immediately. The tool classifies the motion as underdamped, critically damped or overdamped and reports the natural frequency, damping ratio, Q, decay time and more, while RK4 integration keeps a running energy balance of driver work against damping losses. The resonance panel plots amplitude and phase against driving frequency for several damping ratios, and a click sets the frequency. The coupled panel shows both normal modes and beats as energy swaps between two masses.

## How to use

1. Pick a preset (free, three damping regimes, resonance, beats, car suspension…) or set m, k and c yourself
2. Tick the driving force, choose F₀ and ω, and press play to watch the motion and the x(t) trace
3. Compare the regime, ω₀, ζ, Q, steady-state amplitude and phase, and click the resonance curves to try other frequencies
4. Switch to the coupled oscillator and excite mode 1, mode 2 or one mass to see beats and energy exchange

## Features

- Live spring, damper and driving-force animation with a scrolling x(t) trace
- Automatic under/critical/overdamped classification with ω₀, ζ, Q, ωd, τ and log decrement
- Amplitude and phase resonance curves with reference damping ratios; click to set ω
- Energy readout: kinetic, potential, driver work and damping losses
- Two-mass coupled oscillator: normal frequencies, mode shapes, beat period and energy bars
- RK4 integration and log sliders from toy springs to a car suspension

## FAQ

### What is the difference between underdamped, critically damped and overdamped?

It depends on the damping ratio ζ = c/(2√(km)). Below 1 the system is underdamped: it oscillates at ωd = ω₀√(1−ζ²) with an amplitude decaying as e^(−ζω₀t). At exactly 1 it is critically damped and returns to equilibrium as fast as possible without overshooting. Above 1 it is overdamped: no oscillation, but so much drag that it creeps back more slowly. Car shock absorbers are typically tuned to ζ ≈ 0.2–0.4, while door closers and analogue meter needles sit near critical damping.

### Why doesn't the amplitude become infinite at resonance, and why is the peak not exactly at ω₀?

The steady-state amplitude is A = F₀/√((k − mω²)² + (cω)²). Only with zero damping does the denominator vanish at ω = ω₀, and then the amplitude grows linearly in time. With damping the peak is finite, roughly Q times the static deflection. The displacement peak sits at ω_r = ω₀√(1 − 2ζ²), slightly below ω₀, and disappears once ζ ≥ 1/√2. The velocity amplitude and absorbed power peak exactly at ω₀, where the displacement lags the force by 90°.

### What does the quality factor Q mean?

Q = 1/(2ζ) = √(km)/c measures how clean an oscillator is: the higher the Q, the slower it loses energy and the sharper its resonance peak. It is roughly the number of cycles for the amplitude to fall by e^π (to about 4%), and it equals the resonant frequency divided by the half-power bandwidth, ω₀/Δω. Tuning forks and quartz crystals reach Q in the thousands to millions; a car suspension has Q around 1.

### Why does the phase lag go from 0° to 180°?

When the driving is slow (ω ≪ ω₀) the spring force dominates and the mass follows the force almost in step, so the lag is near 0. At ω₀ inertia and spring force cancel, only damping balances the drive, and the displacement lags by 90°. When the driving is fast (ω ≫ ω₀) inertia dominates, the mass can't keep up and moves opposite to the force, lagging by nearly 180° with a small amplitude. The lighter the damping, the more abruptly the phase flips.

### What are normal modes and beats in coupled oscillators?

Two masses joined by a coupling spring have two motions in which everything oscillates at a single frequency. In mode 1 they move in phase, the coupling spring never stretches, and ω₁ = √(k/m). In mode 2 they move in opposition, stretching the coupling spring, and ω₂ = √((k + 2k_c)/m). Any motion is a mix of the two. Pull one mass alone and both modes get equal amplitude, producing beats: energy flows back and forth with period 2π/(ω₂ − ω₁). Weaker coupling gives slower, more complete exchange.

## Related tools

- [Unit Converter](https://qilingtools.com/en/math/unit): Free online unit converter: length, area, volume, weight, temperature, time, speed, data, pressure, energy and angle — one value converts every unit at once.
- [Vector Calculator](https://qilingtools.com/en/math/vector): Free online vector calculator for 2D and 3D: addition, scalar multiples, dot and cross products, magnitude, angle, unit vector and projections, with checks.
- [Significant Figures Calculator](https://qilingtools.com/en/math/significant-figures): Free online sig fig calculator: count significant figures digit by digit, round to N sig figs or decimals with six rounding modes, and compute by sig fig rules.
- [Tone Generator](https://qilingtools.com/en/audio/tone-generator): Free online tone generator: sine, square, sawtooth and triangle waves from 1 to 20,000 Hz, a note picker, sweeps, white/pink/brown noise and a WAV download.
- [Audio Spectrogram](https://qilingtools.com/en/audio/spectrogram): Free online spectrogram generator: see time, frequency and level from a Hann-windowed STFT, with FFT size, log axis, dB range and colour maps. Exports PNG.
- [Decibel Meter](https://qilingtools.com/en/audio/decibel): Free online decibel meter: measure noise with your mic in real time, A/C/Z weighting, fast/slow response, min/max/average/Leq, 60-second graph and calibration.
- [Physics Formula Calculator](https://qilingtools.com/en/math/physics): Physics formulas solved with steps: SUVAT, projectiles, Newton’s laws, inclines, energy, Ohm’s law, resistors, RC, buoyancy, waves, lenses, gravity.
- [Fourier Series & FFT Visualizer](https://qilingtools.com/en/math/fourier): Fourier series coefficients and animated partial sums for square, sawtooth, triangle or any function (Gibbs), draw-your-own epicycles and FFT spectra.
