Loading…

Work Done by a Spring

Physics Classical Mechanics • Work Energy and Power

View all topics

Calculate the work done by a Hooke’s-law spring force as a spring stretches or compresses from one displacement to another. The calculator explains the sign convention, elastic potential energy change, and the connection \(W_s=-\Delta U_s\).

The spring force is restoring: \[ F_s=-kx. \] Therefore the work done by the spring from \(x_1\) to \(x_2\) is \[ W_s=\int_{x_1}^{x_2}(-kx)\,dx=\frac12k(x_1^2-x_2^2). \]
Ready
Enter the spring constant and displacement values, then click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is the formula for work done by a spring?

For motion from x1 to x2, the work done by the spring is W = 1/2 k (x1^2 - x2^2).

What is the formula from the relaxed length?

For motion from x = 0 to x, the work done by the spring is W = -1/2 k x^2.

Why is the work done by the spring sometimes negative?

It is negative when the spring is stretched or compressed farther from equilibrium because the spring force opposes that motion and energy is stored in the spring.

When is spring work positive?

Spring work is positive when the spring moves toward equilibrium and releases stored elastic potential energy to the block.

How is spring work related to elastic potential energy?

The work done by the spring is the negative change in elastic potential energy: Wspring = -Delta U.

What is work done on the spring?

Work done on the spring is the change in elastic potential energy, so Won = Delta U = -Wspring.

Can displacement be negative?

Yes. Negative displacement can represent compression or motion on the opposite side of equilibrium, as long as x is measured from the relaxed length.

What does Fs = -kx mean?

It means the spring force is proportional to displacement but points opposite the displacement, always toward the relaxed position.

What units should I use?

Use k in N/m and displacement in meters for SI input. The calculator can display results in several output units.