Energy stored in a stretched spring

Pull back the plunger of a pen, squeeze a trampoline spring or draw a bow, and you put energy into an elastic object. When you let go, that energy turns into motion, sound and heat. The amount stored depends on two things: how stiff the spring is and how far it has been displaced from its relaxed length. This page computes it for an ideal linear spring. Enter the spring rate in newtons per meter and the displacement in meters, and read the stored energy in joules. The treatment follows OpenStax College Physics on Hooke's law, stress and strain. It is useful for physics homework, for sizing a spring-loaded mechanism and for judging how much energy a compressed spring could release.

The formula and where it comes from

The stored energy is E = k × x² / 2. Hooke's law says the force needed to hold a spring at displacement x is k × x, rising steadily from zero. The work done in stretching it is the area under that force line, a triangle with base x and height k × x, which gives half of k times x squared. Because x is squared, the sign of the displacement does not matter: compressing by 0.2 m stores the same energy as stretching by 0.2 m. The energy grows with the square of the displacement, so doubling the stretch stores four times as much, while doubling the stiffness only doubles the energy at a given stretch.

The default spring

The page begins with a spring rate of 100 N/m and a displacement of 0.2 m. The squared displacement is 0.04 m², multiplying by 100 gives 4, and half of that is 2 J. The force needed to hold the spring there is 100 × 0.2 = 20 N, which is roughly the weight of a 2 kg object. If the spring is released and drives a 0.1 kg block from rest with no losses, the block leaves at a speed of sqrt(2 × 2 / 0.1), which is about 6.32 m/s. Notice that the energy is half of force times distance, not the whole product, because the force was smaller for most of the stretch.

Doubling the stretch

Take a stiff spring of 500 N/m. Pulled 0.1 m, it holds 500 × 0.01 / 2 = 2.5 J. Pull it 0.2 m, and the energy rises to 500 × 0.04 / 2 = 10 J, four times as much. The force at the end rises only twofold, from 50 N to 100 N. This quadratic growth is why a small extra compression of a strong spring can release a surprising amount of energy, and why stretching a spring beyond its design range is risky. Compare that with the default spring: at 0.4 m the 100 N/m spring stores 8 J, four times the 2 J at 0.2 m, even though the force only doubles to 40 N.

A small valve spring

Engine valve springs are stiff but compress only a short distance. Suppose a spring of 25,000 N/m is compressed by 0.01 m, which is 10 mm. The stored energy is 25,000 × 0.0001 / 2 = 1.25 J, and the force at that compression is 250 N. That is a modest amount of energy, but it is released many times per second in a running engine, so even small energies matter for heating and fatigue. The example is illustrative and does not describe any particular engine. It shows how a short stroke at a high rate still gives a small energy value, and how you need the displacement in meters: entering 10 instead of 0.01 would inflate the result by a factor of a million.

Getting the spring rate

The spring rate k is the force per unit displacement. To measure it, hang a known weight and measure the stretch: a spring that extends 0.05 m under a 10 N load has k of 200 N/m. Data sheets often list the rate in N/mm or lbf/in. One N/mm equals 1,000 N/m, and one lbf/in equals about 175.127 N/m. Springs in series have a lower combined rate, since the stretches add, while springs in parallel add their rates. Measure over the range you plan to use, because a spring that is not perfectly linear has a rate that changes with displacement, and the page assumes a single constant value. A quick example of combining springs: two 200 N/m springs in parallel behave like one 400 N/m spring, so at 0.1 m they store 400 × 0.01 / 2 = 2 J together, the same as 1 J in each. Connected end to end, they give 100 N/m, and the same 2 J requires a stretch of 0.2 m.

Where the energy goes

The stored energy is potential energy. When released, it converts into kinetic energy of the attached mass, work against friction, sound and heat. In an ideal system with no losses, a mass on a horizontal spring oscillates back and forth, exchanging kinetic and elastic potential energy, and the total stays at the value you computed. In practice some energy is lost with each cycle. If the spring launches a projectile upward, part of the energy goes to gravitational potential energy: 2 J lifts a 0.1 kg object about 2 J / (0.1 × 9.81) = 2.04 m in the ideal case, without air resistance or spring mass.

Limits of Hooke's law

The formula holds only while the spring behaves linearly and returns to its original length, called the elastic range. Beyond the elastic limit the material deforms permanently and the force no longer rises in proportion to the displacement. Many springs also become coil-bound when fully compressed, adding a sharp rise in force. The page cannot tell where those limits lie for your spring, so check the manufacturer's maximum travel. Rubber bands, bungee cords and many foams are nonlinear and need a different model. For those, the quadratic formula only gives a rough guide at small stretches.

Scope and safety

The result is an idealized scalar estimate and requires finite inputs. The page ignores the mass of the spring itself, damping, temperature effects and fatigue. Compressed springs can release their energy suddenly, and even a few joules can launch a part with enough speed to cause an injury. For any real mechanism, follow the guidance of the spring maker and a qualified engineer, especially for large springs, high loads or equipment that people may stand near. The page does not provide a safety assessment.