Strain Energy Calculator
Work out the elastic strain energy stored in an axially loaded bar, with stress and energy density.
What it does
When you pull on a bar and it stretches, you do work on it. If the material stays elastic, that work is stored as strain energy and comes back when the load is removed. The Duke University strain energy notes show that for a linear spring the work is one half of force times displacement, because the force grows from zero as the bar extends. That factor of one half is the part people most often leave out.
Putting Hooke's law into that result gives U equals P squared L over two E A for a prismatic bar pulled or pushed along its axis. The University of Auckland solid mechanics notes derive the same expression and point out that the energy is always positive, since the force is squared, whether the bar is in tension or compression. A short thick bar stores less energy than a long thin one under the same force.
Dividing the stored energy by the bar volume gives the strain energy density u. It equals one half of stress times strain, and with Hooke's law it can be written as stress squared over two E. The Oxford tension and compression handout shows this as the triangular area under the stress strain curve, with units of joules per cubic metre.
This page takes the axial force, original length, cross sectional area and Young's modulus, then returns the total strain energy, the axial stress and the strain energy density. You can work in kN, m, mm2 and GPa, or in lbf, ft, in2 and psi. The imperial defaults mirror the metric ones so the two modes describe the same bar.
The model is limited to a straight prismatic bar under a gradually applied axial load within the linear elastic range. It ignores bending, torsion, self weight and any plastic deformation. Once the stress passes the yield point, the elastic formula no longer describes what is stored.
How to use
- Choose metric or imperial units.
- Enter the axial force, using kN for metric or lbf for imperial.
- Enter the original length of the bar before loading.
- Enter the constant cross-sectional area.
- Enter Young's modulus for the material.
- Read the strain energy, axial stress and energy density from the outputs.
Formula
- U
- Elastic strain energy, in J or ft-lbf.
- P
- Gradually applied axial force, in kN or lbf.
- L
- Original length of the prismatic bar, in m or ft.
- A
- Constant cross-sectional area, in mm2 or in2.
- E
- Young's modulus of the material, in GPa or psi.
- u
- Strain energy per unit volume, in J/m3 or ft-lbf/ft3.
The factor of one half appears because the load rises from zero to its final value during a slow, static pull. In metric units the engine converts kN to N, mm2 to m2 and GPa to Pa before evaluating U; in imperial units it uses lbf, ft, in2 and psi directly. One joule equals 0.737562 ft-lbf, which is why the mirrored 6.00 J example reads 4.43 ft-lbf. The result is a linear elastic estimate only.
Worked example
Example: a 20 kN pull on a 3 m steel bar
Defaults: metric units, 20 kN axial force, 3 m length, 500 mm2 area and 200 GPa Young's modulus.
- Convert to base units: P = 20,000 N, A = 500 mm2 = 0.0005 m2 and E = 200 GPa = 200,000,000,000 Pa.
- Stress: sigma = 20,000 / 0.0005 = 40,000,000 Pa, which is 40.0 MPa.
- Strain energy: U = 20,000 squared times 3 divided by 2 times 200,000,000,000 times 0.0005 = 6.00 J.
- Energy density: u = sigma squared over 2E = 40,000,000 squared / 400,000,000,000 = 4,000 J/m3.
- Check by volume: A x L = 0.0005 x 3 = 0.0015 m3, and 4,000 x 0.0015 = 6.00 J.
- Imperial mirror is 4,500 lbf, 9.84 ft, 0.775 in2 and 29,000,000 psi, giving U = 4.43 ft-lbf and stress 5.81 ksi.
- The tool shows 6.00 J, 40.0 MPa and 4,000 J/m3 in metric, and 4.43 ft-lbf, 5.81 ksi and 83.7 ft-lbf/ft3 in imperial.
Reference table
| Axial force | Stress | Strain energy | Energy density |
|---|---|---|---|
| 5 kN | 10.0 MPa | 0.38 J | 250 J/m3 |
| 10 kN | 20.0 MPa | 1.50 J | 1,000 J/m3 |
| 20 kN | 40.0 MPa | 6.00 J | 4,000 J/m3 |
| 30 kN | 60.0 MPa | 13.50 J | 9,000 J/m3 |
Limits
- Valid only while the material remains linear elastic; it says nothing about energy absorbed after yielding.
- Assumes a straight bar of constant area loaded axially through its centroid, so bending is ignored.
- Assumes the load is applied slowly, with no kinetic energy or impact effects.
- Uses a single constant Young's modulus and does not cover temperature dependence or anisotropy.
Common mistakes
- Using force times extension instead of one half of force times extension for a gradually applied load.
- Mixing mm2 with Pa without converting the area to m2.
- Reading energy density as total energy when it is energy per cubic metre.
- Applying the formula past the yield stress, where the elastic assumption fails.
- Confusing Young's modulus with the bulk modulus in the material input.
Try it yourself
Quick checks. Answers sit tucked under each question.
A 10 kN force stretches a 2 m bar of 1,000 mm2 area with E = 200 GPa. What is the strain energy?
U = 10,000 squared times 2 divided by 2 times 200,000,000,000 times 0.001 = 0.50 J. Stress is 10.0 MPa and energy density is 250 J/m3.
The same 3 m steel bar is loaded with 30 kN instead of 20 kN. What happens to the stored energy?
Stress becomes 60.0 MPa, energy density rises to 9,000 J/m3 and total energy becomes 13.50 J, which is 2.25 times the 6.00 J case because energy scales with force squared.
In imperial units a 2,248.09 lbf load acts on a 6.56168 ft bar of 0.155 in2 area with E = 29,000,000 psi. What is the energy?
U = 2,248.09 squared times 6.56168 divided by 2 times 29,000,000 times 0.155 = 3.69 ft-lbf, with stress 14.50 ksi and density 522.3 ft-lbf/ft3.
Questions
Why is strain energy not simply force times stretch?
Because the force starts at zero and grows linearly as the bar stretches. The average force during loading is half the final force, so the work is one half of force times extension.
Is strain energy always positive?
Yes. The force is squared in the formula, so a compressed bar stores just as much energy as an identical bar pulled with the same force.
What is strain energy density?
It is the stored energy divided by the bar volume, equal to one half of stress times strain. It is the triangular area under the elastic part of the stress strain curve.
Why does a longer bar store more energy?
A longer bar stretches more under the same force, so the force acts through a larger displacement and more work is stored.
Can I use this for a spring?
Only indirectly. A spring stores one half of k x squared, and k equals E A over L for an equivalent straight member, which leads back to the same expression.
Does the bar give the energy back when unloaded?
In the ideal linear elastic model yes. Real materials lose a small amount to internal damping, and more if the load passes the yield point.
Sources
- Duke University, CEE 421L: strain energy in linear elastic solids
- University of Auckland, Solid Mechanics Part I, section 8.2: elastic strain energy
- University of Oxford, P4 Stress and Strain handout: strain energy density