Spring Force and Energy Calculator

Find restoring force and stored energy of a linear spring.

Restoring force (N)
-20
Stored elastic energy (J)
1

How the calculation works

F = −k·x; E = ½·k·x²

Hooke’s law applies within the elastic linear range. Displacement is signed; restoring force opposes it. Stored energy is nonnegative.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

F = −k·x; E = ½·k·x²

What assumptions apply?

Hooke’s law applies within the elastic linear range. Displacement is signed; restoring force opposes it. Stored energy is nonnegative.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Spring constant (N/m) = 200
Signed extension or compression (m) = 0.1
Restoring force (N): -20
Stored elastic energy (J): 1
2
Spring constant (N/m) = 50
Signed extension or compression (m) = -0.25
Restoring force (N): 12.5
Stored elastic energy (J): 1.5625
3
Spring constant (N/m) = 1500
Signed extension or compression (m) = 0.02
Restoring force (N): -30
Stored elastic energy (J): 0.3

How we test our calculators →

Also try:

Back to category →