Hooke’s Law Calculator

Type stiffness k and extension x. The calculator computes F = k x. 200 N/m and 0.1 m is 20 N. That same pair gives 1 J of elastic energy next door.

Energy in the spring: Eₛ = ½kx². Energy of motion: Ek.

Inputs

Result

Spring constant k (N/m) and Extension x (m). The result shows up here.

How it works

x F F = k·x
Spring stretched by x: elastic force F = k·x (Hooke model).

Hooke's law says spring force is proportional to extension: F = k x. At k = 200 N/m and x = 0.1 m you get 20 N. At 500 N/m and 0.1 m you get 50 N: a stiffer spring, a larger force. At x = 0.05 m and k = 200 you get 10 N. At 500 N/m and 0.02 m that is 10 N another way. At 50 N/m and 0.05 m that is 2.5 N. At 150 N/m and 0.2 m that is 30 N. At 300 N/m and 0.15 m that is 45 N.

At 20,000 N/m and 0.08 m, F = 1600 N. At 4000 N/m and 0.25 m, F = 1000 N. At 8000 N/m and 0.06 m, F = 480 N. That same 200 N/m and 0.1 m pair gives 1 J of elastic energy next door, because Eₛ = ½ k x². Force grows in a straight line with x; energy grows with the square.

Stiffness k is in N/m, extension x in meters. The result is in newtons. 200 N/m is 2 N/cm, not 200 in centimeters. The model is linear and holds in the elastic range. Beyond that F is not kx. A comma and a period are the same x: 0,1 and 0.1. Typed 0 in k or x gives F = 0. Both fields need a number before 20 can appear. The sign of x follows the problem: compression versus stretch.

Energy Eₛ = ½ k x² is on the neighbouring page. The mass-spring period is farther on. Here the result stays force, not energy and not frequency. Work of a constant force W = F·s does not replace ½kx² for a spring.

The unit switch does not change N/m into another stiffness scale. The header symbol does not pull the spring.

Type 200 and 0.1, click Calculate, and match 20 N. Then 500 and 0.1 for 50 N. Treat 20 N as a product inside the elastic range, not as a snapped spring at a large x.

How to use

  1. In the first field enter stiffness k in N/m, for example 200. The label is N/m: 200 N/m is 2 N/cm, not 200 in cm.
  2. In the second field enter extension x in meters, for example 0.1. A minus sign if the problem counts compression that way.
  3. Click Calculate. The calculator multiplies k by x. 200 N/m and 0.1 m give 20 N. At 500 N/m and 0.1 m that is 50 N.
  4. Typed 0 gives F = 0. Both fields need a number. The model is linear, in the elastic range.
  5. Energy ½kx² is next door. The oscillation period is on the mass-spring page. Here F stays.

Formula

F = k · x

k in N/m, x in meters (metric), result in newtons.

F, k, and x at a 200 N/m spring

Hooke’s law in this calculator is the force F = k x. 200 N/m and 0.1 m give 20 N. Energy ½kx² for that pair (1 J) lives on the sibling page.

F
Elastic force in newtons. 500 N/m and 0.1 m is 50 N. Linear model, elastic range only.
k
Stiffness in N/m. 200 N/m is 2 N/cm, not 200 in centimeters. At 20,000 N/m and 0.08 m, F = 1600 N.
x
Extension in meters. Sign: compression versus stretch. 0,1 and 0.1 are the same x. Typed 0 gives F = 0.
N/m
The unit of k on the label, always SI. The switch does not change the stiffness scale.

Real-life examples

Example 1

k = 200 N/m, x = 0.1 m → F = 20 N.

Example 2

k = 500 N/m, x = 0.02 m.

Example 3

k = 20000 N/m, x = 0.08 m.

Example 4

k = 4000 N/m, x = 0.25 m.

Example 5

k = 50 N/m, x = 0.05 m.

Example 6

k = 8000 N/m, x = 0.06 m.

Example 7

k = 150 N/m, x = 0.2 m.

Example 8

k = 300 N/m, x = 0.15 m.

Example 9

k = 100 N/m, x = 0.03 m.

Example 10

k = 250 N/m, x = 0.04 m.

Ways to use this calculator

  • You compute F of a 200 N/m spring at 0.1 m.
  • You compare 200 N/m and 500 N/m at the same x.

Frequently asked questions

How much F at k = 200 N/m and x = 0.1 m?

F = 200 × 0.1 = 20 N. Eₛ for that pair is 1 J. At 500 N/m and 0.1 m that is 50 N.

Which units do I type?

k in N/m, x in meters. Result in newtons. 200 N/m is 2 N/cm, not 200 in cm.

Can x be negative?

Compression versus stretch. The calculator computes F = k x. The sign follows the problem.

How is this different from elastic energy?

Here F = kx. There Eₛ = ½kx². Force versus energy. The same 200 and 0.1 pair gives 20 N and 1 J.

Does the model work at large x?

Only in the elastic range. Beyond that F is not kx.

Where is the oscillation period?

On the mass-spring frequency page. Here F = kx is force alone, not a period.

Is k in N/cm?

The label is N/m. 200 N/m is 2 N/cm, not 200 in centimeters.

How much at 20,000 N/m and 0.08 m?

F = 1600 N. At 4000 N/m and 0.25 m that is 1000 N. At 50 N/m and 0.05 m that is 2.5 N.

Does a comma in 0.1 work?

Yes. 0,1 and 0.1 mean the same x [m]. F scales with that stretch.

How much at 8000 N/m and 0.06 m?

F = 480 N. At 150 N/m and 0.2 m that is 30 N. At 300 N/m and 0.15 m that is 45 N.

Knowledge sources

The formula is the school one. Units follow SI; NIST SP 330 and BIPM define the measures, not your result.

Page updated in 2026.