Hooke's Law Calculator tool

Hooke's Law Calculator

Hooke's law describes elastic springs and many materials under small strain.

What is a Hooke's law calculator?

A Hooke's law calculator finds the restoring force of an ideal spring from spring constant k and displacement x. Enter k in newtons per metre and x in metres from equilibrium. It returns F = −kx in newtons plus the force magnitude. The minus sign means the spring pulls back toward equilibrium when stretched and pushes when compressed, valid only within the elastic limit.

How to use the Hooke's Law Calculator

  1. Enter spring constant k in N/m.
  2. Enter displacement x in metres from rest.
  3. Positive x is stretch direction you choose.
  4. Read signed force and magnitude in newtons.
  5. Stay within the linear range for your spring.

About this calculator

Hooke's law describes elastic springs and many materials under small strain. Enter spring constant k in N/m and displacement x in metres. The calculator returns F = −kx in newtons.

Example: k = 200 N/m and x = 0.05 m (5 cm stretch) gives F = −10 N — the spring pulls back with 10 N toward equilibrium. Double the stretch doubles the force until the spring yields.

Spring force is one type of applied force. Use the [[work]] calculator if you need energy to compress or stretch (often W = ½kx² in textbooks). The [[force]] calculator covers F = ma for attached masses in SHM setups. The [[kinetic-energy]] calculator helps when a mass on a spring oscillates. For pressure in fluids, switch to the [[pressure]] calculator.

Formula for Hooke's law spring force

F = −kx
  • F is restoring force in newtons (N)
  • k is spring constant in N/m
  • x is displacement from equilibrium in m

Hooke's law example: k = 200 N/m stretched 5 cm

A lab spring with k = 200 N/m is stretched x = 0.05 m (5 cm). Force is F = −kx = −200 × 0.05 = −10 N. The negative sign means the spring pulls toward equilibrium with magnitude 10 N.

Stretch to 0.10 m and force doubles to −20 N until the spring yields. Compression uses the same formula with negative x. For energy stored in the stretch, textbooks use elastic PE = ½kx²; at 0.05 m that is 0.5 × 200 × 0.0025 = 0.25 J. Enter k and x in the calculator to check oscillation homework without hand arithmetic.

A lighter spring with k = 150 N/m stretched 8 cm gives x = 0.08 m. Force is F = -150 × 0.08 = -12 N. Magnitude is 12 N toward equilibrium. Enter k = 150 and x = 0.08 to match the signed force and the 12 N magnitude line.

Common uses

  • Mass–spring simple harmonic motion problems
  • Finding spring constant from force and extension in labs
  • Engineering estimates for suspension and shock absorbers
  • Class 11 oscillations chapter homework
  • Checking whether a spring stays within its elastic limit

Frequently asked questions

What force does a 200 N/m spring exert at 5 cm stretch?

x = 0.05 m. F = −200 × 0.05 = −10 N. The negative sign means the force pulls toward equilibrium. Magnitude is 10 N.

What is the spring constant if 15 N stretches a spring 0.03 m?

k = |F|/|x| = 15 / 0.03 = 500 N/m. This calculator solves for F given k and x; rearrange for k in your notebook.

Does Hooke's law work for compression?

Yes, within the elastic limit. Compression uses negative x or positive x depending on your sign convention; force always opposes displacement.

How is spring potential energy related to Hooke's law?

Elastic PE stored is ½kx². Force is the derivative of that energy with respect to x. Use this calculator for force at a given stretch.

Related calculators

Maintained by J Jaya Prakash · Last updated: October 2026