Damped Harmonic Oscillator Calculator

Find the damping ratio, Q factor, damped frequency, overshoot and settling time of a mass–spring–damper.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Damped Harmonic Oscillator Calculator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Damped Harmonic Oscillator Calculator does

    Find the damping ratio, Q factor, damped frequency, overshoot and settling time of a mass–spring–damper.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Enter the mass, spring constant and damping coefficient, and optionally the initial displacement and velocity and a time. The calculator classifies the damping, gives the natural and damped frequencies, damping ratio, Q factor, logarithmic decrement, overshoot, settling time and the displacement at your time.

Parameters

ωₙ = √(k ÷ m), ζ = c ÷ (2√(km)), critical damping c_c = 2√(km). Underdamped (ζ < 1): ω_d = ωₙ√(1 − ζ²), overshoot e^(−πζ ÷ √(1−ζ²)), logarithmic decrement 2πζ ÷ √(1−ζ²), 2% settling time ≈ 4 ÷ (ζωₙ). Q = 1 ÷ (2ζ).

Response

The displacement x(t) is computed from the exact solution for under-, critical and over-damping, with the initial conditions you give.

Worked example

m = 1 kg, k = 100 N/m, c = 2 N·s/m: ωₙ = 10 rad/s, ζ = 0.1, Q = 5, ω_d = 9.95 rad/s, a 72.9% overshoot and a settling time of 4 s. Starting at 0.1 m at rest, x(0.5 s) = 0.0099 m.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

What is critical damping?

The smallest damping that prevents oscillation.

What does Q mean?

The resonance sharpness: the higher the Q, the longer it rings.

What is the log decrement?

The natural log of the ratio of successive peak amplitudes.

Are the results exact?

Yes, for a linear viscous damper.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages