Fs = -kx
Where Fs is the spring force, x is the displacement from the equilibrium position and k is the spring constant.
This is known as Hooke's law and commonly written:
Fs = -kx
Where Fs is the spring force, x is the displacement from the equilibrium position and k is the spring constant.