The work done by an elastic force is the work done due to the deformation of an object.
$$W = \frac{k \Delta x^2}{2}$$
where,
Wβ work done;
kβ spring stiffness constant;
Δxβ displacement.
It is the work stored or released when a spring or elastic body is stretched or compressed.
For magnitude, W = kΞxΒ²/2.