# Hooke's Law Calculator

URL: https://hifreetools.com/science/hookes-law-calculator

> Solve Hooke's law F = k·x by entering any two of force, spring constant, or displacement — the calculator finds the third and the elastic potential energy.

## Quick answer

Hooke's law states that the restoring force of an ideal spring is F = k·x, where k is the spring constant (N/m) and x is the displacement from the natural length (m). For example, a spring with k = 200 N/m stretched x = 0.1 m exerts F = 200 × 0.1 = 20 N and stores elastic potential energy of ½·k·x² = ½ × 200 × 0.1² = 1 J. Rearrange the same formula to find k = F/x or x = F/k.

## Formula

- Hooke's law (restoring force): F = k · x
- Elastic potential energy: PE = ½ · k · x²

## Examples

- Find force from k and x: k = 200 N/m, x = 0.1 m → F = 20 N, PE = 1 J
- Find spring constant from force and stretch: F = 50 N, x = 0.25 m → k = 200 N/m, PE = 6.25 J
- Find displacement from force and k: F = 12 N, k = 300 N/m → x = 0.04 m, PE = 0.24 J
- Compression of a stiff spring: k = 1500 N/m, x = 0.02 m → F = 30 N, PE = 0.3 J

## FAQ

**What is Hooke's law in simple terms?**
Hooke's law says the force a spring pushes or pulls with is proportional to how far you stretch or compress it: F = k·x. Double the stretch and you double the force, as long as you stay within the spring's elastic limit. The constant k measures how stiff the spring is.

**How do I calculate the spring constant k?**
Rearrange Hooke's law to k = F / x. Apply a known force F (in newtons) to the spring, measure the resulting displacement x (in meters), and divide. For example, a 50 N load that stretches a spring 0.25 m gives k = 50 ÷ 0.25 = 200 N/m. A larger k means a stiffer spring.

**What are the units of the spring constant?**
The spring constant k is measured in newtons per meter (N/m) in SI units. It tells you how many newtons of force are needed to stretch or compress the spring by one meter. Stiff springs have a high k (thousands of N/m); soft springs have a low k.

**Why is there a minus sign in F = −kx?**
The minus sign shows that the spring's restoring force always points opposite to the displacement — pulling back when stretched and pushing out when compressed. When you only care about the magnitude of the force, you use F = k·x without the sign, which is what this calculator reports.

**How much energy does a stretched spring store?**
A spring stores elastic potential energy PE = ½·k·x², measured in joules. This equals the work done to deform it. For instance, a 200 N/m spring stretched 0.1 m stores ½ × 200 × 0.1² = 1 J. Because of the x² term, stretching twice as far stores four times the energy.

**Does Hooke's law work for any amount of stretch?**
No. Hooke's law is only accurate within the elastic (proportional) range of the material. Beyond the elastic limit the force is no longer proportional to displacement, the spring may deform permanently, and F = k·x gives wrong answers. Use it for small, reversible deformations.


## Sources

- [Wikipedia — Hooke's law](https://en.wikipedia.org/wiki/Hooke%27s_law)
- [HyperPhysics — Hooke's Law / Elastic Potential Energy](http://hyperphysics.phy-astr.gsu.edu/hbase/permot2.html)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Hooke's Law Calculator", https://hifreetools.com/science/hookes-law-calculator
