Skip to content

Hooke's Law Calculator

Spring of stiffness k stretched by displacement x with restoring force F = −kx
Spring force equals negative spring constant times displacement from equilibrium

x − x₀ is positive when stretched, negative when compressed.

Solution

—
Share:

Hooke’s Law (Force)

Hooke’s Law states that the restoring force of a spring is proportional to its displacement from equilibrium. The spring constant k measures stiffness — a higher k means a stiffer spring. You can solve for spring force, position, equilibrium position, or spring constant.

F = −k(x − x₀)

Spring Potential Energy

The elastic potential energy stored in a spring equals one-half times the spring constant times the displacement squared. This energy is released as kinetic energy when the spring returns to its natural length.

U = ½kx²

How It Works

Hooke’s Law states that a spring pushes or pulls back with a force proportional to its displacement from equilibrium: Fₓ = −k(x − x₀); the force you apply to hold it there is +k(x − x₀). The spring constant k measures stiffness — a higher k means a stiffer spring. The stored potential energy is U = ½kx², with x measured from equilibrium. This law applies to any elastic material within its proportional limit, including rubber bands, metal beams, and biological tissues.

Example Problem

A spring with spring constant k = 200 N/m is stretched 0.15 m from its natural length. What restoring force does the spring exert, and how much elastic energy is stored?

  1. Identify the knowns. Spring constant k = 200 N/m, equilibrium x₀ = 0 m (the natural length is the reference point), and position x = 0.15 m, so the displacement is x − x₀ = 0.15 m.
  2. Identify what we're solving for. We want the spring force Fₓ, whose sign gives its direction, and the stored elastic potential energy U.
  3. Write Hooke's law for the force: Fₓ = −k × (x − x₀). The minus sign means the force points back toward equilibrium, opposite to the displacement.
  4. Substitute the values: Fₓ = −200 × (0.15 − 0).
  5. Compute the force: Fₓ = −30 N, which is 30 N pulling the mass back toward x₀.
  6. Apply the elastic energy formula U = ½ × k × x² = ½ × 200 × 0.15² = 2.25 J — this is the work the spring will do as it returns to its natural length.

When to Use Each Variable

  • Solve for Spring Force — when you know the spring constant and the displacement x − x₀, e.g., calculating the restoring force of a compressed suspension spring; the sign of Fₓ gives its direction.
  • Solve for Position — when you know the spring force and spring constant, e.g., finding where the free end of a spring settles under a known load. Enter Fₓ = −(applied load): negative for a stretch, positive for a compression.
  • Solve for Spring Constant — when you know the spring force and the displacement, e.g., determining stiffness from a load-deflection test. Enter Fₓ = −(applied load): negative for a stretch, positive for a compression, so k comes out positive.
  • Solve for Potential Energy — when you know the spring constant and displacement, e.g., calculating the energy stored in a drawn bowstring.

Key Concepts

Hooke's Law states that the restoring force of an elastic material is proportional to its displacement from equilibrium: F = -k(x - x₀). The spring constant k (in N/m) measures stiffness — higher k means more force is needed for the same displacement. The elastic potential energy stored in a spring is U = ½kx². Hooke's Law applies only within the elastic limit; beyond that point, permanent deformation occurs.

Applications

  • Automotive engineering: designing suspension springs for ride comfort and load-bearing capacity
  • Mechanical watches: calibrating mainsprings and balance springs for accurate timekeeping
  • Civil engineering: analyzing deflection in beams and structural members within the elastic range
  • Medical devices: designing spring-loaded syringes, retractors, and prosthetic joints

Common Mistakes

  • Applying Hooke's Law beyond the elastic limit — once a material yields, the linear relationship breaks down
  • Forgetting the sign convention — Fₓ is the force the spring exerts, which opposes the displacement (the minus sign); entering the load you apply as Fₓ gives a negative k or a mirrored displacement, so enter Fₓ = −(applied load)
  • Confusing position with displacement — the change from natural length is x − x₀, not the position x or the stretched length; they match only when x₀ = 0, as the energy card U = ½kx² assumes
  • Using the wrong units for k — spring constant must be in force per length (e.g., N/m), not force alone

Frequently Asked Questions

What equation relates spring force, stiffness, and displacement?

Hooke's law: Fₓ = −k × (x − x₀). The spring force is proportional to the displacement from the natural length: plotted against x − x₀, Fₓ is a straight line through the origin with slope −k. The stiffness k is the size of that slope, and the minus sign means the force points back toward equilibrium.

How do I solve for the spring constant k?

Rearrange Hooke's law: k = −Fₓ / (x − x₀). The spring force opposes the displacement, so k comes out positive and equals the applied load divided by the deflection, |Fₓ| / |x − x₀|. Apply a known load, measure the resulting deflection from the spring's free length, and divide — the standard load-deflection test in mechanical QA uses this exact relationship.

What is a spring constant, in plain terms?

It's the stiffness of the spring, measured in newtons per meter (N/m). A k of 500 N/m means the spring exerts 500 N of restoring force for every meter it is stretched or compressed from its natural length.

Why does Hooke's law have a negative sign?

The sign indicates direction: the restoring force always points opposite to the displacement, pulling the spring back toward equilibrium. When you stretch the spring (x − x₀ positive), the force points in the negative direction, and vice versa. The load you apply to hold the spring in place points the other way, so it equals −Fₓ = +k(x − x₀).

When does Hooke's law stop working?

Beyond the material's elastic limit. Once a spring or any elastic material yields plastically, deformation becomes permanent and force no longer scales linearly with displacement. For steel springs the limit is the proportional yield stress; for coil springs it's often the solid-height point where coils touch.

How is elastic potential energy related to spring force?

With x measured from equilibrium, U = ½kx² is the area under the line of the spring force's size, |Fₓ| = k|x|, plotted against the stretch or compression |x| (a triangle with base |x| and height k|x|): the work you do to deform the spring. The spring's own force Fₓ = −kx points the other way, so the signed area under Fₓ over the same displacement is −½kx², the negative work the spring does while it stores that energy. As the spring returns to its natural length it does +½kx² of work, releasing the energy as kinetic energy — the principle behind catapults, suspension bounce, and clockwork mechanisms.

Is Hooke's law the same as the spring force equation?

Yes — Hooke's law and "the spring force equation" refer to the same relationship Fₓ = −k(x − x₀). Some textbooks drop the equilibrium term and write F = −kx when x₀ is taken as the origin.

References:

OpenStax. College Physics 2e, §16.1 Hooke's Law: Stress and Strain Revisited (F = −kx, where F is the restoring force and the minus sign means it opposes the displacement; the applied force is +kx; elastic potential energy ½kx²; Examples 16.1 and 16.2). https://openstax.org/books/college-physics-2e/pages/16-1-hookes-law-stress-and-strain-revisited

OpenStax. University Physics Volume 1, §7.1 Work (spring force F = −kΔx with Δx = x − x_eq, the displacement from the unstretched position; Example 7.5). https://openstax.org/books/university-physics-volume-1/pages/7-1-work

OpenStax. University Physics Volume 1, §15.1 Simple Harmonic Motion (Hooke's law Fₓ = −kx with x = 0 where the spring is neither stretched nor compressed; k is the force or spring constant). https://openstax.org/books/university-physics-volume-1/pages/15-1-simple-harmonic-motion

Tipler, Paul A. 1995. Physics For Scientists and Engineers. Worth Publishers. 3rd ed.

Worked Examples

Automotive Engineering

How much force does a car suspension spring exert when compressed 8 cm?

A coil spring in a vehicle's suspension has a spring rate k = 35,000 N/m. Under load it is compressed to 8 cm shorter than its free (unloaded) length.

  • Knowns: k = 35,000 N/m, x₀ = 0 m (free length), x = −0.08 m
  • Fₓ = −k × (x − x₀)
  • Fₓ = −35,000 × (−0.08 − 0)

Fₓ = +2,800 N — the spring pushes back toward its free length

Real automotive springs become progressively stiffer near full compression — Hooke's law applies only inside the linear (elastic) range.

Sports Equipment

How much elastic energy is stored in a fully drawn archery bow?

A recurve bow modelled as a linear spring has k = 600 N/m. The archer draws the string 0.65 m back from rest.

  • Knowns: k = 600 N/m, x = 0.65 m
  • U = ½ × k × x²
  • U = ½ × 600 × 0.65²

U ≈ 126.75 J of elastic potential energy

When released, most of this energy transfers into arrow kinetic energy — heavier draw weights launch arrows faster for the same draw length.

Manufacturing QA

What's the spring constant from a load-deflection test?

A QA fixture stretches a coil spring 15 mm beyond its free length and the load cell reads 300 N. The spring pulls back on the fixture with that 300 N, so Fₓ = −300 N.

  • Knowns: Fₓ = −300 N, x = 0.015 m, x₀ = 0 m
  • k = −Fₓ / (x − x₀)
  • k = −(−300) / (0.015 − 0) = 300 / 0.015

k = 20,000 N/m (20 N/mm)

Industry spec sheets often list spring rates as N/mm or lb/in — divide N/m by 1000 for N/mm, or by 175.13 for lb/in.

Hooke's Law Formula

Hooke's law describes the restoring force of a linear spring as proportional to its displacement from equilibrium:

Fₓ = −k × (x − x₀)

Where:

  • Fₓ — spring (restoring) force along the spring's axis (newtons): the force the spring exerts. The minus sign indicates the force points back toward equilibrium. The force you apply to hold the spring at x is −Fₓ.
  • k — spring constant or stiffness (N/m). Larger k means a stiffer spring.
  • x — instantaneous position of the free end (meters).
  • x₀ — equilibrium (natural, unstretched) position (meters). Often taken as 0.

The companion equation gives the elastic potential energy stored in the spring when displaced by x from equilibrium:

U = ½ × k × x²

Hooke's law is exact only within a material's elastic (proportional) limit. Beyond that point the spring or material yields plastically and the linear relationship breaks down. For coil springs, that limit is typically the point where coils touch (solid height) or where the wire begins to permanently deform.

Spring Stretch Diagram

A linear spring obeys Hooke's law within its elastic limit: the restoring force is proportional to the displacement from equilibrium. The diagram below shows the spring in three states — natural length at equilibrium x₀, stretched by Δx, and the resulting restoring force F pulling the mass back.

k — spring constant (N/m; the F-vs-x line has slope −k) · x₀ — equilibrium (natural) position · x — displacement from equilibrium (positive when stretched, negative when compressed) · F — restoring force, always pointing toward equilibrium (the negative sign in F = −kx) · U = ½kx² — elastic potential energy stored in the stretched/compressed spring.

Related Calculators

Related Sites