Work Calculator

Find the work done by a force over a distance, solve for any variable in W = F d cos(theta), and handle friction, gravity and springs.

🏗️ Work Calculator
Solve forthe box for this quantity is ignored
Known valuesangle is between the force and the motion
Force F (N)
Displacement d (m)
Angle θ (°)
Work W (J)
Crate and surfacepulled at constant speed
Mass (kg)
Friction coefficient μ
Distance (m)
Pull angle (°, 0 to 80)
World
Load and pathpath length along the slope
Mass (kg)
Path length (m)
Slope angle φ (°)
Direction
Spring and stretchstretch from the relaxed length, compression is negative
Spring constant k (N/m)
Start x1 (m)
End x2 (m)
Work W
—
Work W
—
Work in kJ
—
Force along motion F cos θ
—
Force across motion F sin θ
—
Angle used
—
Sign of the work
—

Work done by your pull
—
Pulling force
—
Normal force
—
Friction force
—
Work done by friction
—
Net work
—
Cheapest pull angle
—
Work at that angle
—

Work done by gravity
—
Work you must do (constant speed)
—
Height change
—
Change in potential energy
—
Weight m g
—
Weight along the slope
—
g used
—

Work you do on the spring
—
Work done by the spring
—
Force at x1
—
Force at x2
—
Average force
—
Stored energy at x1
—
Stored energy at x2
—

🏗️ What is Work in Physics?

Work is the energy transferred to or from an object when a force moves it through a displacement. For a constant force the work is the force times the distance moved along the force, which is W = F d cos(theta), where theta is the angle between the force and the direction of motion. The unit is the joule: one newton acting over one metre. This work calculator solves that equation for any one of the four variables, so you can find the work from a force and distance, the force needed to do a given amount of work, the distance, or the angle between the force and the motion.

The same page handles three special cases that textbooks keep returning to. Work against friction asks how much energy you spend dragging a load at constant speed, including the useful case of pulling a rope at an angle. Work by gravity shows why climbing a slope costs the same energy as lifting straight up to the same height, and it lets you compare Earth, the Moon, Mars and Jupiter. Work by a spring covers a variable force, where the force grows with stretch and the work is the area under the force-stretch line. Each mode draws its own chart so you can see how the work changes with angle or stretch.

Three ideas prevent most mistakes. First, only the component of the force along the displacement does work, which is why a force at 90 degrees does none, so carrying a box horizontally at constant speed involves zero work by the lifting force. Second, work has a sign: when the force opposes the motion the work is negative and the object loses energy, as with friction or braking. Third, work is not the same as effort or fatigue. Holding a heavy weight still tires your muscles but moves nothing, so the work on the weight is zero.

When time matters, move on to power, which is work per unit time, using the work and power calculator. The broader work, energy and power calculator links work to kinetic and potential energy, and the friction calculator goes deeper on friction coefficients.

📐 Formula

W = F × d × cos θ    Wspring = ½ k (x2² − x1²)
W = work in joules (J). F = force in newtons (N). d = displacement in metres (m). θ = angle between the force and the displacement, 0 to 180 degrees.
Solving backwards: F = W / (d cos θ), d = W / (F cos θ) and θ = arccos(W / (F d)). The angle exists only if |W| is no larger than F d.
Friction at constant speed: F = μ m g / (cos θ + μ sin θ), normal force N = m g − F sin θ, and the work of the pull is F d cos θ = μ N d. The cheapest angle is arctan(μ).
Gravity: Wgravity = −m g h going up and +m g h going down, with h = d sin φ and g = 9.80665 m/s² on Earth (3.721 on Mars).
Spring: k is the spring constant in N/m and x is the stretch from the relaxed length. The force F = k x is not constant, so the work is the area under the line.
Example: a 50 N force over 10 m at 30 degrees does 50 × 10 × cos 30° = 433.01 J.

📖 How to Use This Calculator

Steps

1
Pick a mode. Use Force and distance for W = F d cos(theta), or Against friction, By gravity or Spring for those cases.
2
Choose what to solve for. In the first mode select work, force, distance or angle and fill in the other three boxes. The box for the unknown is ignored.
3
Enter the values. Use newtons, metres, kilograms and degrees. The angle is measured between the force and the direction of motion.
4
Read the work and the chart. The result is in joules with its sign. The chart marks your case on the curve of work against angle or stretch.

💡 Example Calculations

Example 1 — Pushing a Cart at an Angle

A 50 N force acts 30 degrees from the direction of motion over 10 m

1
Force along the motion = 50 × cos 30° = 43.30 N.
2
W = 43.30 × 10 = 433.01 J.
Work = 433.01 J
Try this example →

Example 2 — Finding the Angle

An 80 N force over 5 m does 300 J of work. At what angle does it act?

1
Largest possible work = 80 × 5 = 400 J, so cos θ = 300 / 400 = 0.75.
2
θ = arccos(0.75) = 41.41°.
Angle = 41.41°
Try this example →

Example 3 — Force Needed for a Given Work

1200 J of work are done over 15 m with the force along the motion

1
cos 0° = 1, so F = W / d = 1200 / 15.
2
F = 80.00 N.
Force = 80.00 N
Try this example →

Example 4 — Dragging a Crate

A 20 kg crate with friction coefficient 0.4 is pulled 5 m at constant speed along the floor

1
Weight = 20 × 9.80665 = 196.13 N, so friction = 0.4 × 196.13 = 78.45 N.
2
Work of the pull = 78.45 × 5 = 392.27 J. Friction does −392.27 J, so the net work is 0.
3
The cheapest pull angle is arctan(0.4) = 21.80°, which needs 0.4 × 196.13 × 5 / √(1.16) = 364.21 J.
Work = 392.27 J, or 364.21 J at 21.80°
Try this example →

Example 5 — A Rover Climbing a Slope on Mars

A 180 kg rover drives 30 m up a 15 degree slope on Mars (g = 3.721 m/s²)

1
Height gained h = 30 × sin 15° = 7.765 m.
2
Work by gravity = −180 × 3.721 × 7.765 = −5200.55 J. The drive must supply +5200.55 J.
Work by gravity = −5200.55 J
Try this example →

Example 6 — Stretching a Spring

A spring with k = 200 N/m is stretched from 0.1 m to 0.3 m

1
Force goes from 200 × 0.1 = 20 N to 200 × 0.3 = 60 N, an average of 40 N.
2
W = ½ × 200 × (0.3² − 0.1²) = 100 × 0.08 = 8.000 J, which equals 40 N × 0.2 m.
Work on the spring = 8.000 J
Try this example →

❓ Frequently Asked Questions

What is the formula for work in physics?+
Work is W = F d cos(theta), where F is the force in newtons, d is the displacement in metres and theta is the angle between the force and the displacement. The result is in joules. When the force points along the motion, cos(theta) is 1 and W = F d.
When is work equal to zero?+
Work is zero when the displacement is zero, when the force is zero, or when the force is perpendicular to the motion (theta = 90 degrees). Carrying a bag across level ground at constant speed is an example: the lifting force is vertical, the motion is horizontal.
Can work be negative?+
Yes. When the angle between force and displacement is greater than 90 degrees, cos(theta) is negative and so is the work. Friction on a sliding box and gravity on a rising ball do negative work, because they take energy away from the object.
How do you calculate work done against friction?+
Kinetic friction is f = mu m g on a level surface, and the work against it over a distance d is mu m g d. A 20 kg crate with mu 0.4 pulled 5 m needs 0.4 x 20 x 9.80665 x 5 = 392.27 J.
How do you find the work done by gravity?+
Work by gravity is m g h with a sign. It is negative when the object rises by h and positive when it falls by h. Lifting a 10 kg load 2 m on Earth means gravity does -196.13 J and the lifter does +196.13 J.
What is the work done by a spring?+
A spring with constant k stretched from x1 to x2 stores 1/2 k (x2 squared minus x1 squared) joules. You do that much work on the spring, and the spring does the negative of it on you. The spring force is not constant, so the area under the force-stretch graph is used.
What is the unit of work?+
The SI unit of work is the joule (J). One joule is the work done by a force of one newton over a distance of one metre in the direction of the force, so 1 J = 1 N m = 1 kg m squared per second squared.
What is the difference between work and energy?+
Work is the energy transferred by a force acting through a displacement. Energy is the stored capacity. By the work-energy theorem, the net work on an object equals its change in kinetic energy.
Why does pulling at an angle change the work?+
Only F cos(theta) acts along the motion, so a tilted pull gives less work for the same force. But a tilted upward pull also lowers the normal force and so the friction, which can make the total work needed smaller.
Does the path matter for the work done by gravity?+
No. Gravity is a conservative force, so only the change in height matters. A 30 m ramp at 15 degrees and a 7.76 m vertical lift reach the same height and need the same work against gravity.
Why is the work by a spring not just force times distance?+
The spring force changes as it stretches, rising from k x1 to k x2. Multiplying the final force by the distance would overstate the work. The correct value uses the average force, which for a spring is k (x1 + x2) / 2.

What is the formula for work in physics?

Work is W = F d cos(theta), where F is the force in newtons, d is the displacement in metres and theta is the angle between the force and the displacement. The result is in joules. When the force points along the motion, cos(theta) is 1 and W = F d.

When is work equal to zero?

Work is zero when the displacement is zero, when the force is zero, or when the force is perpendicular to the motion (theta = 90 degrees). Carrying a bag across level ground at constant speed is an example: the lifting force is vertical, the motion is horizontal.

Can work be negative?

Yes. When the angle between force and displacement is greater than 90 degrees, cos(theta) is negative and so is the work. Friction on a sliding box and gravity on a rising ball do negative work, because they take energy away from the object.

How do you calculate work done against friction?

Kinetic friction is f = mu m g on a level surface, and the work against it over a distance d is mu m g d. A 20 kg crate with mu 0.4 pulled 5 m needs 0.4 x 20 x 9.80665 x 5 = 392.27 J.

How do you find the work done by gravity?

Work by gravity is m g h with a sign. It is negative when the object rises by h and positive when it falls by h. Lifting a 10 kg load 2 m on Earth means gravity does -196.13 J and the lifter does +196.13 J.

What is the work done by a spring?

A spring with constant k stretched from x1 to x2 stores 1/2 k (x2 squared minus x1 squared) joules. You do that much work on the spring, and the spring does the negative of it on you. The spring force is not constant, so the area under the force-stretch graph is used.

What is the unit of work?

The SI unit of work is the joule (J). One joule is the work done by a force of one newton over a distance of one metre in the direction of the force, so 1 J = 1 N m = 1 kg m squared per second squared.

What is the difference between work and energy?

Work is the energy transferred by a force acting through a displacement. Energy is the stored capacity. By the work-energy theorem, the net work on an object equals its change in kinetic energy.

Why does pulling at an angle change the work?

Only F cos(theta) acts along the motion, so a tilted pull gives less work for the same force. But a tilted upward pull also lowers the normal force and so the friction, which can make the total work needed smaller.

Does the path matter for the work done by gravity?

No. Gravity is a conservative force, so only the change in height matters. A 30 m ramp at 15 degrees and a 7.76 m vertical lift reach the same height and need the same work against gravity.