: Where, = Force exerted by spring, = spring constant, = displacement (extension/compression) in spring
The force exerted by spring is always in the opposite direction of the displacement. When spring is pulled downward it will exert a force in the upward direction.