Which displacement belongs in the equation
The required holding force increases while you deform the spring. Work is therefore less than final force times total distance: the largest force acts only at the end. A force–displacement sketch shows this directly. For an initially relaxed linear spring, the area is triangular; with existing prestretch, an additional rectangular area contributes.[1]
D is constant stiffness in N/m, often written k. s is signed length change from the force-free natural length. An ideal spring with the same linear behaviour in tension and compression stores equal energy at +s and −s. Its force on the moving body is instead and has a direction sign.[1]
C fixes the energy zero; changing it does not affect forces or energy differences.
“Rest position” is ambiguous without a qualifier. A vertically loaded spring can be stationary while extended. Its spring energy is then nonzero if zero is set at natural length. Displacement from loaded equilibrium is a different coordinate requiring total potential energy, including gravity.[3]
Deriving one half from work
Stretch the ideal spring slowly from so kinetic energy stays unchanged and losses are absent. External force then balances spring force: . Input mechanical work is the integral of this varying force. Along a line through the origin, the displacement-average force is only half the final force.[2]
Geometrically this is a triangular area in the external-force–displacement plot.
Work done by the spring has the opposite sign to its potential-energy change.
Relaxing from s1 > 0 to zero lowers spring energy and makes spring work on the body positive. Further stretching raises its energy and makes spring work negative. Rapid stretching can also produce kinetic energy, so external work need not equal spring-energy increase alone.
Squares, rearrangements and units
These rearrangements assume C = 0 and D > 0; solving for D requires s ≠ 0.
Energy determines |s|, not whether the spring is stretched or compressed. Convert 12 cm to 0.12 m before squaring. A stiffness of 2 N/mm equals 2000 N/m. The squared conversion factor matters: 10 cm is 0.1 m, not 10 m.
Original numerical check: with , stores 0.20 J and stores 1.80 J. The increase is 1.60 J. Squaring the displacement change gives , incorrect for these two states.
With U = 0 and D > 0, s = 0. Conversely, U = 0 and s = 0 do not determine D: any positive stiffness fits. Positive energy at s = 0 contradicts the chosen zero reference. Negative U is excluded with this energy zero in the ideal linear model.[1]
Example: a preloaded spring
Additional energy beyond preload
- Given
- D = 300 N/m, initial extension s0 = 0.05 m, additional extension q = 0.03 m. Ideal linear spring, quasistatic stretching.
- Find
- Find energy increase and external stretching work.
Approach: The spring is already extended initially. Additional quasistatic stretching work therefore equals final minus initial energy of the same linear spring.
Initial and final extensions use the same natural length.
Calculate both state energies separately.
Find the difference instead of squaring only the extra extension.
Result: Additional spring energy and quasistatic external work are +0.585 J; the spring performs −0.585 J of work.
Check: Force grows from 15 N to 24 N. Trapezoidal area: ½(15+24)·0.03 = 0.585 J. Incorrectly using ½Dq2 gives only 0.135 J.
Added work is a trapezoid
Free with a Quanta account. Your download stays ready after registration.
Example: stored energy becomes motion
Kinetic energy describes pure translation of the cart here. The following example therefore assumes a horizontal frictionless track and a massless spring.[3]
A horizontal cart without losses
- Given
- m = 0.50 kg, D = 200 N/m, release from rest at s = +0.10 m; massless ideal spring and frictionless horizontal track.
- Find
- Find speed on reaching natural length.
Approach: The cart starts at rest, and ideal spring energy is zero on reaching natural length. Without friction, initial elastic energy becomes kinetic energy completely.
Calculate initial energy stored only in the stretched spring.
At natural length U = 0, leaving translational kinetic energy.
Insert the specified mass.
Result: Speed is 2.00 m/s. With s positive rightward, the cart moves leftward at its first zero crossing.
Check: Kinetic check: ½·0.50·22 = 1 J. Energy fixes speed; direction follows from initial state and restoring force.
Distinguishing preload from loaded equilibrium
Additional extension q of a preloaded spring retains the linear term Ds0q.
For a vertical spring let s be positive downward. Total potential is and static equilibrium is . With , total potential becomes plus a constant. Gravity cancels the spring energy’s linear term in this total; the term does not disappear from spring energy alone.[3]
The constant C1 differs from the original energy zero.
A tension device with a constant initial force may have . Input energy relative to is then . Specify the actual force curve and permitted displacement range; “preloaded” does not justify applying the zero-force formula arbitrarily.
Linearity, recoverability and losses
Elastic does not automatically mean linear. For a conservative nonlinear spring, stored energy follows the actual force-curve integral. Outside the linear range, D cannot remain the same constant multiplier. Whether energy exceeds or falls below ½Ds2 depends on the curve; there is no universal direction of the deviation.
Hysteresis, internal friction and plastic deformation may reduce recovered work relative to loading input. A damping force is not an extra part of ideal stored spring energy. Heavy springs, rotating attachments or friction also introduce other energy terms; alone is then insufficient.[2][3]
Five exercises with solutions
Calculate · Foundation
D = 150 N/m and s = −0.08 m, with energy zero at natural length. Find U and Fs.
Show hint
The square makes energy positive; force stays signed.
Learning goal: Distinguish spring force and energy for negative displacement.
Show solution and calculation
Approach: Displacement is signed relative to natural length.
Energy uses its square, while spring force retains its sign with the restoring minus sign.
Result: 0.48 J and +12 N.
Check: At negative displacement the force points back in the positive direction; energy equals its value at +0.08 m.
Calculate · Application
A linear spring of D = 100 N/m is stretched further from 0.10 m to 0.20 m. Find added energy.
Show hint
Use the difference of squares, not the square of the difference.
Learning goal: Find additional energy in a prestretched spring.
Show solution and calculation
Approach: Subtract initial energy from final energy.
Both displacements refer to natural length; existing prestretch must be retained.
Result: 1.50 J added energy.
Check: Holding force increases from 10 to 20 N. Its mean value of 15 N over an additional 0.10 m also gives 1.50 J of work.
Rearrange · Application
D = 80 N/m stores 0.64 J with zero at natural length. Find displacement magnitude.
Show hint
Take the square root; energy does not give direction.
Learning goal: Find displacement magnitude from energy.
Show solution and calculation
Approach: Solve the energy equation for displacement magnitude.
The positive square root gives magnitude, not direction.
Result: approximately 0.1265 m or 12.65 cm.
Check: Substitution without early rounding returns 0.64 J. Both positive and negative displacement fit the ideal model; whether a real spring can compress that far requires a separate check.
Interpret · Application
An ideal linear spring of D=200 N/m is either extended by +3 cm or compressed by −3 cm, with zero energy at natural length. Compare energies and signed spring forces; positive direction is extension.
Show hint
Energy is quadratic; spring force is linear with a minus sign.
Learning goal: Explain symmetric energy and antisymmetric force.
Show solution and calculation
Approach: Equal displacement magnitudes have equal squares, giving 0.09 J in each case.
Spring forces are −6 N in extension and +6 N in compression.
Both restore natural length.
The mirrored energy curve therefore has equal heights but opposite signs of its negative slope.
Error analysis · Application
An initially relaxed ideal spring of D=100 N/m is extended quasistatically to 0.10 m. Someone multiplies final force 10 N by distance and calls 1 J stored energy. Correct this using the force-displacement area.
Show hint
Force starts at zero and rises linearly.
Learning goal: Correct endpoint-force times displacement for spring work.
Show solution and calculation
Approach: Area under applied force is triangular, not a rectangle holding final force across the whole distance.
Mean force 5 N across 0.10 m gives 0.5 J, agreeing with quadratic energy.
The wrong value is twice as large because final force was not present throughout the earlier displacement.
Key points
Spring energy grows with squared displacement. Additional stretching requires the difference between endpoint energies; do not square only the change in displacement. In a quasistatic lossless model, that increase equals external work.
Sources for this explanation
Quanta · Updated October 2, 2026
- OpenStax, University Physics 1 §8.1: Potential Energy of a System
- OpenStax, University Physics 1 §7.1: Work
- OpenStax, University Physics 1 §15.2: Energy in Simple Harmonic Motion
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An internal human subject review is documented for an earlier release of this page. That confirmation does not apply automatically to the revised explanation and new exercises.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Clarified zero cases in energy inverses and linked mechanical work and kinetic energy in context; preserved existing calculations and diagram.
- Added two exercises; labelled all five by task type, difficulty and learning goal.
- Revised the learning introduction and solution paths; independently checked model assumptions and calculations against primary sources.
Cite this reference page
Quanta. Elastic Energy of a Spring. Updated October 2, 2026. https://quanta-study.de/en/formula-sheet/spannenergie-feder
When citing a specific scientific statement, also cite the specialist source linked to that statement.