Beginner

Spring Potential Energy Calculator

Find the elastic potential energy stored in a spring from its spring constant and how far it is stretched or compressed.

N/m

Stiffness of the spring

m

Stretch or compression from rest

J

Leave one field blank to solve for it
Elastic potential energy
1J

Energy stored in the spring

Spring constant k
200 N/m
Displacement x
0.1 m
Spring force F = k·x
20 N
PE = ½·k·x² versus displacement
Step by step
  1. 1

    Displacement squared (x²)

    0.1² = 0.01
  2. 2

    k × x²

    200 × 0.01 = 2
  3. 3

    Elastic PE = ½ × k × x²

    ½ × 2 = 1
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Elastic potential energy stored in a spring is PE = ½·k·x², where k is the spring constant (N/m) and x is the displacement from rest (m). Enter any two of k, x, and PE to solve for the third. Energy is in joules and always non-negative because displacement is squared.

Formula
PE = ½ · k · x² (x = √(2·PE / k), k = 2·PE / x²)
How this is calculated

A spring that obeys Hooke's law stores elastic potential energy equal to PE = ½·k·x², where k is the spring constant in newtons per metre (N/m) and x is the displacement in metres (m) measured from the natural, unstretched length. The energy grows with the square of the displacement, so doubling the stretch quadruples the stored energy.

Enter any two of the three quantities and leave the third blank to solve for it. With k and x the calculator returns PE directly. Given PE and k it solves x = √(2·PE / k); given PE and x it solves k = 2·PE / x². The restoring force at the entered displacement, F = k·x, is also reported.

Assumptions: the spring is ideal and linear (constant k) and is not stretched past its elastic limit. Displacement may be positive (stretch) or negative (compression); because x is squared, energy is always non-negative. Negative spring constants or negative energies are physically invalid and are rejected, as is solving for k when x = 0.

Frequently asked questions

Because PE depends on x², the square of the displacement. Stretching or compressing by the same distance stores the same elastic potential energy.

Use the spring constant in newtons per metre (N/m) and displacement in metres (m). The result is then in joules (J). Convert centimetres to metres before entering.

Rearrange the formula to k = 2·PE / x². Enter the energy and displacement, leave k blank, and the calculator returns the stiffness.

Also known as

spring potential energy
elastic potential energy
half kx squared
stored spring energy
elastic pe
spring energy
1/2kx2

APA

TG we-Calculate Editorial Team. (2026). Spring Potential Energy Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/spring-potential-energy-calculator

Chicago

TG we-Calculate Editorial Team. "Spring Potential Energy Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/spring-potential-energy-calculator.

IEEE

TG we-Calculate Editorial Team, "Spring Potential Energy Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/spring-potential-energy-calculator

BibTeX

@misc{wecalculate_spring_potential_energy_calculator, title = {Spring Potential Energy Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/spring-potential-energy-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?