calqulio.
◎ English · Global

Spring Potential Energy Calculator

Calculate energy stored in an ideal Hooke-law spring from stiffness and displacement from its relaxed length.

Enter your values

N/m
Required unit: N/m. Must be greater than zero.
m
Required unit: m.

Use a decimal point, without thousands separators.

Example result
Stored elastic energy
2 J
Restoring force magnitude20 N

The initial result uses the example values. Enter your own values and calculate again.

Edit inputs

How it works

Measure x relative to the unstretched length, not as the full spring length. A stiffness of 100 N/m and displacement of 0.2 m store 2 J and give a force magnitude of 20 N. Equal extensions and compressions have equal energy. The model applies only within the spring’s linear elastic range.

Inputs and units
Spring Potential Energy Calculator · Inputs and units
InputExample valueWhat to enter
Spring constant100 N/mRequired unit: N/m. Must be greater than zero.
Extension or compression0.2 mRequired unit: m.
U = kx²/2; restoring force magnitude = k × ∣x∣

Worked example

Show example inputs and results

This example is generated by the same calculation engine using the starting values in the form. Your own inputs produce your own result.

Spring constant
100 N/m
Extension or compression
0.2 m

Complete example results

Stored elastic energy
2 J
Restoring force magnitude
20 N

Reading the result

Check the units used in the formula together. The result follows the stated ideal model and supplied constants; material, environment and losses are included only where the inputs or method explicitly define them.

Questions and answers

Can I use the example values for my own calculation?

The example values illustrate the calculation. Replace every input with your own information, especially dates, rates and the selected operation.

Does the force magnitude show its direction?

No. The restoring force points opposite the displacement, F = −kx. The displayed magnitude is nonnegative and does not represent dissipated energy or spring damage.

Why are some results rounded?

Results display up to 8 decimal places. Calculations use the unrounded values; very small values use scientific notation. JavaScript floating-point arithmetic can introduce tiny rounding differences.

Are my inputs sent to a server?

The calculator processes inputs in your browser. Its code does not send your values to a server.

Method sources: openstax.org

Methods & accuracy

What would you like to calculate?

Browse all calculators