Variable force work

Shape a force-displacement graph with your finger, or start from a steady force, a spring or a fading push, pick where the motion starts and stops, and see the work as the shaded area, with the parts above and below the axis, the formula with your numbers, and the speed it gives a cart.

Keep it one tap away for everyday use.

Bookmark Variable force work?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Shape F
  2. From, to
  3. Area
  4. Work
Nothing is uploadedWorks offline once open
Level

Drag up and down on the graph to reshape the force at each metre.

The work done

Try this

  • Pick the steady force. The area is a rectangle: work = force × distance.
  • Pick the spring and go from 0 to 6 m, then from 0 to 3 m. Half the stretch takes only a quarter of the work, because W = ½kx².
  • Pick "push, ease off, then pull back" and go all the way to 10 m. The red area below the axis is negative work: the force slows the cart.
  • Draw your own shape. Can you make the total work zero over 10 m?

Check yourself

What it does

When a steady force pushes something along, the work it does is simply force × distance: 10 N through 3 m is 30 J. Draw that force against distance and you get a rectangle 3 m wide and 10 N tall, whose area is also 30. That is no accident: work is always the area under the force-displacement graph, even when the force changes as the body moves, as it does for a spring, a rubber band or a rocket burning its fuel.

This page draws a force graph from 0 to 10 m. Start from a steady force, a spring (F = kx), a push that fades away, or a push that eases off and then pulls back, or drag the graph into any shape you like. Choose where the motion starts and stops, and the page shades the area: green where the force acts with the motion (positive work), red where it acts against it (negative work). It adds up the area exactly, shows the formula with your numbers for the standard shapes, and turns the work into the speed of a cart that started at rest, using the work-energy theorem.

It follows Class 11 Physics, work, energy and power (work done by a variable force, the work-energy theorem, the potential energy of a spring), and starts from the Class 9 Science idea of work = force × displacement. For energy changing between kinetic and potential on a track, see energy skate track; for the forces that do the work, see free-body diagram builder; and for areas under curves cut into strips, see riemann sums.

How to use it

  1. Pick a Level. Class 9 explains work as force × distance; Class 11 adds the integral W = ∫F dx. The questions change with the level.
  2. Choose a force graph, and set the biggest force for it. For the spring, the spring constant is the biggest force ÷ 10 m.
  3. To make your own, drag up and down on the graph: the dot at the nearest whole metre follows your finger.
  4. Set From x and To x. The shaded area between the two dashed lines is the work.
  5. Set the mass of the cart to see how fast that much work would make it go from rest on a smooth track.

Worked example

Open the page: a spring whose force rises from 0 to 40 N over 10 m, so k = 4 N/m. From x = 0 to x = 6 m the area is a triangle 6 m wide and 24 N tall: W = ½ × 4 × 6² = 72 J. Given to a 2 kg cart at rest, ½ × 2 × v² = 72, so v = √72 = 8.49 m/s.

Now go from 0 to 3 m: the work is ½ × 4 × 9 = 18 J, only a quarter as much. Stretching a spring twice as far takes four times the work.

Tips

  • Work can be negative. Friction, or a force pulling back, takes energy out of the moving body.
  • The units check: newtons times metres are joules.
  • On a curved graph, cutting the area into thin strips and adding them up is exactly what an integral does.

FAQ

Why is spring work ½kx² and not kx²? The force starts at zero and grows steadily to kx, so on average it is only half of kx. The area is a triangle, not a rectangle.

What if the force is at an angle to the motion? Only the part of the force along the motion does work: W = F s cos θ. This graph shows that part.

Is anything stored? No. Your graph stays in the page and is gone when you leave; nothing is saved or sent.

Where the numbers come from

  • Work as W = F s for a steady force and W = ∫F dx, the area under the force-displacement graph, for a varying one; spring work ½kx²; the work-energy theorem W = ½mv². Standard school physics found in any textbook.
  • Checked against ½kx², F s and triangle areas, and against an independent 200 000-strip midpoint sum on 300 random force shapes.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Change log for Variable force work

  1. Add #1334 Work as area under a force graph Details on GitHub

Every change to fibub

Related tools

Energy skate track #L12 Shape a track with your finger, let a ball roll and watch kinetic energy, potential energy and heat trade places while the total stays the same; add friction and see it turn into heat; then find the lowest start that gets a ball round a loop. Simple machines lab #L13 Lift a load with a lever, a pulley system of 1 to 4 strands, a ramp or a wheel and axle; see the effort you need, the mechanical advantage, the velocity ratio and the efficiency, and check that work out is never more than work in. Riemann sums #L85 See the area under a curve filled with strips. Pick left, right, midpoint or trapezium sums, slide the number of strips n and watch the sum close in on the exact integral, with the error. Then see why ∫ f dx has a + C, and shade the area between two curves with the crossing points found for you. Free-body diagram builder #L195 Pick a set-up (a box pulled along the floor, a block on a slope, scales in a lift, two blocks pushed together, a block on a table pulled over a pulley, or an Atwood machine), tick the forces you think act on each body, check your diagram, then see it drawn to scale and solved for the acceleration, tension and normal force. Collision lab #L197 Crash two trolleys on a track, or two balls at a glancing angle, with any masses, speeds and bounciness from sticking together to perfectly elastic. Watch it happen, then see the velocities after, momentum before and after, the kinetic energy lost, and why equal snooker balls part at 90°. Power and bills #L317 Race two runners up stairs to see power as work divided by time, then work out kWh and a bill for home appliances, with a short quiz. Spring energy #L321 Compress a spring, release a block and see the stored energy ½kx² turn into motion. Find the launch speed, and how far the block slides when the floor has friction.