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
| Input | Example value | What to enter |
|---|---|---|
| Spring constant | 100 N/m | Required unit: N/m. Must be greater than zero. |
| Extension or compression | 0.2 m | Required unit: m. |
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