Calculateus

Spring Force Calculator (Hooke's Law)

Calculate the restoring force and elastic potential energy of a compressed or stretched spring using Hooke's Law.

Result

Spring (Restoring) Force
5 N
Elastic Potential Energy
0.125 J

About the Spring Force Calculator

The Spring Force Calculator applies Hooke's Law to find both the restoring force a spring exerts and the elastic potential energy it stores when stretched or compressed from its natural length. It's useful for anyone sizing a spring for a mechanism, checking a physics problem, or estimating how much energy a spring-loaded device can release.

How It Works

You enter the spring constant k in newtons per meter and the displacement x in meters from the spring's natural, unstretched length. The calculator multiplies these to get the restoring force, and uses half the spring constant times displacement squared to get the stored elastic potential energy.

F = kx (spring force magnitude); PE = 1/2 kx² (elastic potential energy).

Formula & Methodology

The energy formula comes from integrating force over distance: since the spring's force grows linearly from 0 up to kx as it's displaced, the work done, and therefore the stored energy, is the area under that force-versus-displacement line, a triangle with area 1/2 × base × height, giving 1/2 kx². This is why stored energy grows with the square of displacement even though force itself grows only linearly with it.

Examples

A Light Compression Spring

With a spring constant of 100 N/m compressed 0.05 m, the calculator finds a restoring force of 5 N and 0.125 J of stored elastic potential energy.

A Stiffer Spring, Larger Displacement

A 250 N/m spring stretched 0.12 m produces a restoring force of 30 N, but because potential energy scales with displacement squared, the stored energy jumps to 1.8 J, more than 14 times the first example despite less than triple the displacement.

Advantages

  • Calculates force and stored energy together in one step instead of running two separate formulas.
  • Makes the nonlinear relationship between displacement and stored energy easy to see by comparing different inputs.
  • Useful for quick mechanical design checks on springs used in suspensions, latches, or launch mechanisms.

Common Mistakes

  • Entering displacement in centimeters or millimeters instead of meters, which throws off both the force and energy results by orders of magnitude.
  • Assuming that doubling displacement only doubles the stored energy, when it actually quadruples it, since potential energy depends on x squared, not x.
  • Trusting the linear result for a spring pushed past its elastic limit, where real-world force and energy no longer follow F = kx.

Edge Cases to Watch For

  • The reported force is an absolute value, so the calculator doesn't distinguish whether the spring is being compressed or stretched - the direction of the restoring force, which always opposes displacement, has to be inferred separately.
  • Because potential energy depends on x squared, the sign of the displacement doesn't affect that output, though it still matters physically for whether the spring is pushing or pulling.
  • The formula assumes ideal linear behavior within the spring's elastic limit - stretch or compress a real spring beyond that limit and it deforms permanently, so the calculator's output no longer reflects the actual force or stored energy.
  • There's no built-in check preventing a zero or negative spring constant from being entered, which produces a nonsensical result once the absolute value is applied to the force.

Common Use Cases

  • Mechanical engineers estimating spring force and stored energy for a suspension, mechanism, or fastener design.
  • Physics students checking Hooke's Law homework problems.
  • Hobbyists building spring-powered devices like catapults or trampolines who want a rough energy estimate.
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

What is Hooke's Law?

Hooke's Law states that the force needed to stretch or compress a spring is proportional to the displacement from its natural length (F = kx), with k being the spring constant that measures stiffness. It only holds within the spring's elastic limit - stretch it too far and it will permanently deform, breaking the linear relationship.

Conclusion

By combining Hooke's Law and the elastic potential energy formula in one tool, this calculator gives a fast way to see how spring stiffness and displacement interact. Its accuracy depends entirely on the spring staying within its elastic range.