The stored energy is the integral of the load vs. deflection curve. For a spring with a constant rate of k deflected x from its free length, the stored energy will equal (kx^2)/2.