# How to Calculate the Potential and Kinetic Energy in a Spring

In physics, you can examine how much potential and kinetic energy is stored in a spring when you compress or stretch it. The work you do compressing or stretching the spring must go into the energy stored in the spring. That energy is called *elastic potential energy* and is equal to the force,* F, *times the distance, *s:*

*W* = *Fs*

As you stretch or compress a spring, the force varies, but it varies in a linear way (because in Hooke’s law, force is proportional to the displacement).

The distance (or displacement),* s,* is just the difference in position, *x** _{f}* –

*x*

*, and the average force is (1/2)(*

_{i}*F*

*+*

_{f}*F*

*). Therefore, you can rewrite the equation as follows:*

_{i}Hooke’s law says that *F* = –*kx*. Therefore, you can substitute –*kx** _{f}* and –

*kx*

*for*

_{i}*F*

*and*

_{f}*F*

_{i}*:*

Distributing and simplifying the equation gives you the equation for work in terms of the spring constant and position:

The work done on the spring changes the potential energy stored in the spring. Here’s how you give that potential energy, or the elastic potential energy:

For example, suppose a spring is elastic and has a spring constant, *k,* of

and you compress the spring by 10.0 centimeters. You store the following amount of energy in it:

You can also note that when you let the spring go with a mass on the end of it, the mechanical energy (the sum of potential and kinetic energy) is conserved:

*PE*_{1} + *KE*_{1} = *PE*_{2} + *KE*_{2}

When you compress the spring 10.0 centimeters, you know that you have

of energy stored up. When the moving mass reaches the equilibrium point and no force from the spring is acting on the mass, you have maximum velocity and therefore maximum kinetic energy — at that point, the kinetic energy is

by the conservation of mechanical energy.