Hooke's Law Calculator screenshot

Hooke's Law Calculator

Spring force from a spring constant and extension with F = kx, in newtons. Extension is entered as a displacement, so compression works too.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What this hooke's law calculator does

Hooke's law says the force a spring exerts is proportional to how far it is stretched or compressed from its rest length: two hundred newtons per metre stretched ten centimetres pulls back with twenty newtons. The page multiplies the two numbers and prints newtons, and because the extension is a displacement it may be negative, which represents compression and gives a negative force in the same convention. The law holds inside a spring's elastic limit and fails past it, where the material stops returning; the page computes the linear answer and says nothing about whether the spring survives it.

How to use it

Hooke's Law Calculator: paste the spring constant and extension (k, x) into the box above, and press Run to get the spring force below.

Worked example

Input:

200,0.1

Output:

20 N

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads spring constant and extension (k, x) and returns spring force; reloading the page discards both.

Hooke's law says the force a spring exerts is proportional to how far it is stretched or compressed from its rest length: two hundred newtons per metre stretched ten centimetres pulls back with twenty newtons. The page multiplies the two numbers and prints newtons, and because the extension is a displacement it may be negative, which represents compression and gives a negative force in the same convention. The law holds inside a spring's elastic limit and fails past it, where the material stops returning; the page computes the linear answer and says nothing about whether the spring survives it.

Spring force from a spring constant and extension with F = kx, in newtons. Extension is entered as a displacement, so compression works too.

How to use it

Hooke's Law Calculator: paste the spring constant and extension (k, x) into the box above, and press Run to get the spring force below.

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads spring constant and extension (k, x) and returns spring force; reloading the page discards both.

What to Expect

Best for

  • Converting spring constant and extension (k, x) to spring force when the data is already on screen.

What this tool keeps

  • Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.

Sample input

200,0.1

Sample output

20 N

Frequently asked questions

How do I use the hooke's law calculator?

Hooke's Law Calculator: paste the spring constant and extension (k, x) into the box above, and press Run to get the spring force below.

Is my input uploaded?

No. The text is parsed on this page with JavaScript and is never posted to a server.

Is there a size limit?

Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.