Hooke's Law Calculator · F = -k·x

Hooke's Law Calculator

Compute spring force, spring constant, or displacement — F = −k·x

Select Calculation Mode
F = −k · x
Spring stiffness
Displacement from equilibrium
Click a preset to auto-fill k
F = k·x
Hooke's law states that the force needed to extend or compress a spring is proportional to the displacement from its equilibrium position. The negative sign indicates the force is restorative (opposes the displacement).
m F x
Results
Force (F) — N
Spring constant (k) — N/m
Displacement (x) — m
Method used —
Input values —
Note —

Powered by Toolraxy · Physics & mechanics calculator

Creator & Maintainer

Image of Faiq Ur Rahman, CEO & Founder Toolraxy

Faiq Ur Rahman

Founder & CEO, Toolraxy

Faiq Ur Rahman is a web designer, digital product developer, and founder of Toolraxy, a growing platform of web-based calculators and utility tools. He specializes in building structured, user-friendly tools focused on health, finance, productivity, and everyday problem-solving.

Share:

Rate this Tool

User Ratings:

0
0 out of 5 stars (based on 0 reviews)
Excellent
Very good
Average
Poor
Terrible

ADVERTISEMENT

ADVERTISEMENT

Hooke’s Law Calculator

Have you ever pressed down on a spring and felt it push back? That resistance isn’t random, it follows a beautifully simple rule called Hooke’s law. Whether you’re designing a suspension system, analyzing a simple harmonic oscillator, or just curious about how springs work, understanding the relationship between force, spring stiffness, and displacement is essential.

This Hooke’s law calculator computes spring force, spring constant, or displacement depending on which variables you already know. Choose from three modes: Force, Spring Constant, or Displacement and the tool solves for the missing value using F = k·x. It handles multiple unit systems, includes presets for common spring stiffnesses, and provides instant results with full unit conversions. All calculations run locally in your browser, keeping your data completely private.

 

How to Use the Hooke’s Law Calculator

  1. Choose your calculation mode: Force, Spring Constant, or Displacement using the buttons at the top of the section.

  2. For Force mode: enter the spring constant (k) and the displacement (x) to find the force.

  3. For Spring Constant mode: provide the force (F) and displacement (x) to calculate stiffness.

  4. For Displacement mode: input the force (F) and spring constant (k) to determine the displacement.

  5. Select the appropriate units for each input  N/m or lb/ft for spring constant; m, cm, mm, ft, or in for displacement; N, kN, or lbf for force.

  6. Click Calculate or simply wait for automatic updates, the result appears instantly.

  7. Review the solved value, along with the spring constant and displacement displayed in multiple unit systems.

 

How the Hooke’s Law Calculator Formula Works

The calculator applies Hooke’s law, which states that the force required to extend or compress a spring is directly proportional to the displacement from its equilibrium position. The negative sign indicates that the spring force opposes the direction of displacement.

Formula: F = −k·x

Where F is the spring force in newtons, k is the spring constant (stiffness) in N/m, and x is the displacement from equilibrium in meters. The magnitude of the force is simply |F| = k·x, which is what the calculator computes.

The spring constant k measures a spring’s stiffness — a higher k means a stiffer spring that requires more force for the same displacement. The displacement x is the distance the spring is stretched (positive) or compressed (negative) from its natural length.

When solving for spring constant: k = F/x

When solving for displacement: x = F/k

All inputs are converted to SI base units before computation: force to newtons, displacement to meters, and spring constant to N/m. Results are then displayed in multiple unit systems for convenience.

 

Worked Example: Calculating Spring Force

A spring has a spring constant of 500 N/m and is stretched by 0.2 meters. What force does the spring exert?

Step 1: Identify the known values

  • k = 500 N/m

  • x = 0.2 m

Step 2: Apply Hooke’s law
F = k·x = 500 × 0.2 = 100 N

Interpretation: The spring exerts a force of 100 newtons. This is the force required to hold the spring at that displacement, and it’s also the force the spring will exert when released.

If we wanted to find the spring constant instead:
Suppose a 100 N force stretches the spring by 0.2 m. What is k?
k = F/x = 100 / 0.2 = 500 N/m

If we wanted to find the displacement:
Suppose a spring with k = 500 N/m is pulled with 100 N. What is x?
x = F/k = 100 / 500 = 0.2 m

Benefits of Using This Hooke’s Law Calculator

  • Computes force, spring constant, or displacement with a single click, depending on your needs.

  • Handles multiple units for force (N, kN, lbf), spring constant (N/m, lb/ft), and displacement (m, cm, mm, ft, in).

  • Includes spring presets for common stiffnesses (5 to 1000 N/m) to quickly get started.

  • Displays results in multiple unit systems simultaneously — no manual conversions needed.

  • Shows a clear diagram illustrating the spring, mass, and applied force.

  • Runs entirely client-side with no server communication, keeping your data private.

  • Free to use on any device with responsive design.

 

Frequently Asked Questions

What is Hooke’s law in simple terms?

Hooke’s law says that the force needed to stretch or compress a spring is proportional to how far you stretch or compress it. A stiffer spring requires more force, and stretching it further requires more force. The relationship is linear double the stretch, double the force.

 

What is the spring constant?

The spring constant (k) is a measure of a spring’s stiffness. It’s the force required to stretch or compress the spring by one unit of distance (typically one meter). Higher k means a stiffer spring. It’s measured in N/m (newtons per meter) or lb/ft (pounds per foot).

 

What does the negative sign mean in F = −kx?

The negative sign indicates that the spring force always opposes the displacement. If you stretch the spring (positive x), the spring pulls back (negative F). If you compress it (negative x), the spring pushes outward (positive F). The calculator gives the magnitude of the force, which is the absolute value.

 

What is the elastic limit?

The elastic limit is the maximum stress a material can withstand without permanent deformation. If you stretch a spring beyond its elastic limit, it won’t return to its original shape when the force is removed — it becomes permanently stretched or bent. Hooke’s law only applies within the elastic limit.

 

Can Hooke’s law be used for compression?

Yes, Hooke’s law applies to both stretching (extension) and compression. When you compress a spring, x is negative, and the force F is positive (pushing outward). The magnitude of the force is still |F| = k·|x|.

 

What are typical spring constants for everyday objects?

A ballpoint pen spring: ~100 N/m, a trampoline spring: ~1000 N/m, a car suspension spring: ~30,000 N/m, a mattress spring: ~10,000 N/m, a garage door spring: ~5,000 N/m. The calculator’s presets cover a wide range of these applications.

 

How does spring constant relate to spring design?

The spring constant is determined by the material (shear modulus), wire diameter, coil diameter, and number of active coils. Thicker wire, smaller coil diameter, and fewer coils all increase the spring constant. Engineers use these parameters to design springs with specific stiffness values.

 

What’s the difference between a spring and a spring system?

A spring is a single elastic element. A spring system can include multiple springs in series or parallel. In series, springs add compliance (lower overall k); in parallel, they add stiffness (higher overall k). The calculator assumes a single ideal spring.

ADVERTISEMENT

ADVERTISEMENT