ToolJovia
Math

Linear Spring and Oscillator Calculator

Calculate ideal spring restoring force, stored energy and undamped oscillation period.

✓ Browser-local processing

Loading tool…

How to use Linear Spring and Oscillator Calculator

Hooke restoring force is−kx, stored energy is kx²/2, and a mass on an ideal undamped linear spring has period2π√(m/k). Displacement sign changes force direction, not energy.

  1. Enter spring constant (n/m), signed displacement (m), attached mass (kg).
  2. Choose the stated convention and check the units and supported model.
  3. Calculate, inspect the result, then copy or download it.

Good to know

  • Positive N/m spring constant and kg mass, signed meter displacement; ideal linear spring without damping, fatigue, installation or real component validation.
  • Runs locally. Text/JSON fields are capped at30,000 characters; stricter page-specific and numeric-string limits also apply. Numeric inputs are bounded to magnitude1e15 and nonzero magnitude at least1e-100 unless an exact-string mode states otherwise. Approximate summaries use12 significant digits; CSV numeric cells retain the complete stored value and potentially formula-like string cells gain a protective apostrophe; unsupported, non-finite or detected underflow states return an error.

Common questions

Why does a negative displacement still store positive energy?

Energy depends on the displacement squared, while restoring force acts in the direction opposite the signed displacement.

Is the input uploaded or saved?

No. The tool calculates inside this browser tab and provides a local download; it does not persist your input.

Keep going with related tools

All math →