Mihsaba›Physics›Hooke’s Law Calculator

Hooke’s Law Calculator

Solve spring-force magnitude, spring constant or displacement from Hooke’s law, with elastic potential energy.

These are ideal classical-physics models. Force directions, friction regime, elastic limits and time-varying forces can require a fuller model.

Share this free calculator

Send this tool to someone who needs the calculation.

How to use

Hooke’s law models an ideal spring within its elastic range using a linear force-displacement relationship. Solve F, k or x and compute elastic potential energy.

  1. Choose the unknown.
  2. Enter the two known values.
  3. Calculate force magnitude, k, displacement and energy.

How it is calculated

|F|=k|x|; U=½kx²

Example

Example: k=250 N/m and x=0.2 m gives 50 N and 5 J of elastic potential energy.

Important notes

A real spring can leave the linear elastic range or deform permanently. The calculator uses magnitudes and does not encode the restoring-force sign −kx.

Worked examples and interpreting results

A spring of stiffness 200 N/m displaced 0.05 m from its natural length has force magnitude 10 N and stored energy 0.25 J. Force increases linearly, but energy grows with displacement squared.

Worked examples and interpreting results
CaseCalculationResult
Spring force magnitude200 × |0.05|10 N
Elastic energy0.5 × 200 × 0.05²0.25 J

How to check the result

Displacement is measured from natural length, not from a geometric origin or the total spring length. Restoring force opposes displacement. The relation assumes a linear elastic range, which a real spring can exceed at large displacement.

Frequently asked questions

Why is Hooke’s law sometimes F=−kx?

The minus sign shows the restoring force opposes displacement; this calculator reports magnitude.

Unit of k?

N/m.

Valid for any stretch?

No, only within the spring’s suitable linear elastic range.