Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Physics
  3. /Oscillations & Waves Calculators
  4. /Hooke's Law Calculator

Hooke's Law Calculator

Last updated: March 18, 2026

Calculator

Results

Force Magnitude (F)

50

N

Displacement Magnitude (x)

0.1

m

Displacement

100

mm

Spring Constant (k)

500

N/m

Elastic Potential Energy

2.5

J

Spring Work Magnitude

2.5

J

External Work Required

2.5

J

Results

Force Magnitude (F)

50

N

Displacement Magnitude (x)

0.1

m

Displacement

100

mm

Spring Constant (k)

500

N/m

Elastic Potential Energy

2.5

J

Spring Work Magnitude

2.5

J

External Work Required

2.5

J

The Hooke’s Law Calculator applies the fundamental law of elasticity to compute the restoring force, displacement, or spring constant of a spring, along with the associated elastic potential energy and work done. Hooke’s law is one of the cornerstones of classical mechanics and materials science.

Formulated by Robert Hooke in 1660, Hooke’s law states that the force needed to extend or compress a spring by some distance is proportional to that distance: $$F = -kx$$ Here F is the restoring force exerted by the spring, k is the spring constant (stiffness), and x is the displacement from the equilibrium position. The negative sign indicates the force opposes the displacement, always pushing or pulling the object back toward equilibrium.

This elegant linear relationship holds for virtually all elastic materials at sufficiently small deformations. Steel beams, rubber bands, bones, and even the crust of the Earth all approximately obey Hooke’s law within their elastic limits. Beyond the elastic limit, materials undergo permanent deformation and the linear relationship breaks down.

The elastic potential energy stored in a spring displaced by x from equilibrium is $$PE = \frac{1}{2}kx^2$$ This energy represents the work done on the spring by an external agent to deform it from its natural length. When released, this stored energy converts to kinetic energy, driving the oscillatory motion characteristic of spring systems.

The work done by the spring (the restoring force) as it returns to equilibrium is $$W_{spring} = -\frac{1}{2}kx^2$$ which is negative when the spring is being deformed (the spring opposes the motion) and positive when it returns to its natural length. The work done on the spring by an external force is the negative of this: $$W_{external} = \frac{1}{2}kx^2$$

This calculator operates in three modes, solving for whichever quantity you do not know. It provides the complete energy picture alongside the force-displacement relationship, making it ideal for physics problem-solving, engineering analysis, and educational demonstrations of elastic behavior.

Visual Analysis

How It Works

The calculator solves Hooke’s law in three configurations:

Mode 1: Solve for Force

$$F = -kx$$

Given the spring constant and displacement, compute the restoring force.

Mode 2: Solve for Displacement

$$x = \frac{F}{k}$$

Given the applied force and spring constant, compute how far the spring stretches or compresses.

Mode 3: Solve for Spring Constant

$$k = \frac{F}{x}$$

Given the force and displacement, determine the spring stiffness.

In all modes, the calculator also computes:

$$PE = \frac{1}{2}kx^2, \quad W_{spring} = -\frac{1}{2}kx^2, \quad W_{external} = \frac{1}{2}kx^2$$

Understanding Your Results

The restoring force is negative when displacement is positive (or vice versa), confirming the spring pulls/pushes back toward equilibrium. The elastic potential energy is always positive or zero. Work done by the spring is negative during deformation (spring resists) and represents energy stored. Work done on the spring equals the potential energy gained. These energy values are path-independent for ideal springs.

Worked Examples

Stretching a Spring

Inputs

modeforce
spring constant800
displacement0.03

Results

restoring force-24
displacement out0.03
displacement cm3
k out800
potential energy0.36
work done-0.36
work external0.36

An 800 N/m spring stretched 3 cm exerts a restoring force of 24 N and stores 0.36 J of elastic potential energy. An external agent must do 0.36 J of work to achieve this deformation.

Finding Displacement from Load

Inputs

modedisplacement
spring constant1500
force input75

Results

restoring force-75
displacement out0.05
displacement cm5
k out1500
potential energy1.875
work done-1.875
work external1.875

A 75 N force applied to a 1500 N/m spring produces 5 cm of displacement. The potential energy stored is 1.875 J.

Frequently Asked Questions

Hooke’s law states that the restoring force of an elastic body is directly proportional to the displacement from its natural shape: F = −kx. It was first stated by Robert Hooke in 1660 as a Latin anagram and published in 1678. It applies to springs, elastic beams, rubber bands, and any material deformed within its elastic limit.

Hooke’s law fails when the material is deformed beyond its elastic limit (yield point). Beyond this, the material undergoes plastic (permanent) deformation and the force-displacement relationship becomes nonlinear. Rubber at large extensions, metals past yield, and brittle materials near fracture all violate Hooke’s law.

The negative sign indicates the restoring nature of the force: it always acts in the direction opposite to the displacement. If you stretch a spring to the right (+x), the spring pulls back to the left (−F). This opposing character is what makes the spring return to equilibrium and enables oscillatory motion.

Elastic potential energy is the energy stored in a spring (or any elastic body) due to its deformation. It equals PE = ½kx² and represents the work required to deform the spring from its natural length. This energy is recovered when the spring returns to its natural shape, converting to kinetic energy or doing work on other objects.

Yes. Hooke’s law applies equally to compression (negative x) and extension (positive x). The formula F = −kx works in both directions. For compression, x is negative, so the force is positive (pushing outward). The energy formula PE = ½kx² gives the same positive energy for equal compression and extension.

No. While springs are the iconic example, Hooke’s law describes the elastic behavior of any material near equilibrium. It applies to bending beams, torsion wires, stretched wires, inflated balloons, and even atomic bonds. Any restoring force that is proportional to displacement follows Hooke’s law, which is why it appears across all branches of physics and engineering.

Sources & Methodology

Halliday, D., Resnick, R., & Walker, J. (2013). Fundamentals of Physics (10th ed.). Wiley. | Serway, R. A., & Jewett, J. W. (2018). Physics for Scientists and Engineers (10th ed.). Cengage. | Timoshenko, S. (1983). History of Strength of Materials. Dover Publications.
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Simple Harmonic Motion Calculator

Oscillations & Waves Calculators

Spring Calculator

Oscillations & Waves Calculators

Spring Constant Calculator

Oscillations & Waves Calculators

Pendulum Calculator

Oscillations & Waves Calculators

Pendulum Period Calculator

Oscillations & Waves Calculators

Pendulum Frequency Calculator

Oscillations & Waves Calculators