Skip to main content
Calcimator

Hooke's Law Calculator

Spring force, elastic potential energy, and oscillation period.

Inputs

Results

Restoring Force (N)

5

Elastic PE (J)

0.13

Oscillation Period (s)0.63
Frequency (Hz)1.59
Angular Frequency (rad/s)10
Max Velocity (m/s)0.5
Max Acceleration (m/s²)5
How to Use This Calculator
  1. Enter spring constant k (N/m) — higher values mean a stiffer spring.
  2. Enter displacement x (m) from the equilibrium position — positive for stretch, negative for compression.
  3. Enter attached mass (kg) for oscillation calculations.
  4. Read restoring force (N) and elastic potential energy (J) stored in the spring.
  5. Review oscillation period (s), frequency (Hz), and maximum velocity (m/s) for the spring-mass system.

How the result changes with Spring Constant k (N/m)

Spring Constant k (N/m)Restoring Force (N)Elastic PE (J)
10,000,000500,00012,500
35,000,0001,750,00043,750
65,000,0003,250,00081,250
90,000,0004,500,000112,500

What each input means

Spring Constant k (N/m)
Stiffness of the spring in newtons per meter.
Displacement x (m)
Distance stretched or compressed from equilibrium.
Attached Mass (kg)
Mass attached to the spring (for oscillation calculations).

What each result means

Restoring Force (N)
F = kx. Force magnitude pulling back to equilibrium.
Elastic PE (J)
PE = ½kx². Energy stored in the spring.
Oscillation Period (s)
T = 2π√(m/k). Time for one complete oscillation.
Frequency (Hz)
f = 1/T. Oscillations per second.
Angular Frequency (rad/s)
ω = 2πf.
Max Velocity (m/s)
v_max = ωA at equilibrium (if x is amplitude).
Max Acceleration (m/s²)
a_max = ω²A at maximum displacement.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    Spring Constant k (N/m) = 100, Displacement x (m) = 0.05, Attached Mass (kg) = 1 = 3 input(s) provided
  2. Calculate Restoring Force
    Restoring Force = springConstant * absDisp
    5 = 5
  3. Calculate Elastic PE
    Elastic PE = 0.5 * springConstant * displacementM * displacementM
    0.125 = 0.125
  4. Calculate Oscillation Period
    Oscillation Period = 2 * π * sqrt(massKg / springConstant)
    0.6283 = 0.6283
  5. Calculate Frequency
    Frequency = 1 / period
    1.5915 = 1.5915

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Science & Physics.