Hooke's Law Calculator

Solve for force, spring constant, or displacement using Hooke's Law (F = k * x) — plus see the elastic potential energy stored in the spring.

Use the Hooke's Law Calculator

Inputs

Select the variable to solve for, then enter the other two known values.

Result

Fill in the inputs and press Calculate.

Formula Reference

F = k × x — restoring force (N)
k = F / x — spring constant (N/m)
x = F / k — displacement (m)
PE = ½ k x² — elastic potential energy (J)

Summary

Hooke's Law states that the restoring force exerted by a spring is directly proportional to the displacement from its natural length: F = k * x. This calculator lets you solve for any one of the three variables — force (F), spring constant (k), or displacement (x) — given the other two. It also computes the elastic potential energy (PE = 0.5 * k * x²) stored in the spring at that displacement. Both SI and imperial units are supported.

How it works

  1. Choose the variable you want to calculate: Force (F), Spring Constant (k), or Displacement (x).
  2. Enter known values for the other two variables in the input fields.
  3. Select the appropriate units for each quantity.
  4. Click Calculate to see the result, full working, and the elastic potential energy stored in the spring.
  5. Use Reset to clear all fields and start a new calculation.

Use cases

  • Find the force a spring exerts when stretched or compressed by a known amount.
  • Determine the spring constant (stiffness) from a measured force and displacement.
  • Calculate how far a spring will extend under a given load.
  • Compute elastic potential energy stored in springs for mechanical design.
  • Verify experimental lab results in physics or engineering courses.
  • Analyze suspension, valve, or actuator springs in mechanical systems.
  • Understand spring behavior for prototyping elastic or flexible structures.
  • Cross-check spring specifications when selecting components for a design.

Frequently Asked Questions

Last updated: 2026-05-23 · Reviewed by Nham Vu