Work Formula Explained: How to Calculate Work in Physics (W = F x d)
By Shihab Mia June 23, 2026 7 min read
Quick answer
The work formula is W = F x d x cos(theta), where F is force, d is distance, and theta is the angle between the force and the direction of motion. When the force points the same way the object moves, this simplifies to W = F x d. Work is measured in joules (J), where 1 joule = 1 newton-meter, and it equals the energy transferred to or from the object.
In everyday speech, "work" means effort or a job. In physics it has a precise meaning: work is done when a force moves an object through a distance. Holding a heavy bag perfectly still feels exhausting, but in physics terms you are doing zero work on the bag, because it is not moving. This guide breaks down the work formula piece by piece, shows you how to plug in numbers, and clears up the most common mistakes.
What is the work formula?
The general formula for mechanical work is:
The work equation
W = F x d x cos(theta)
Each symbol has a specific meaning. Getting these right is the whole game, so it is worth slowing down here.
- W is work, measured in joules (J).
- F is the magnitude of the applied force, measured in newtons (N).
- d is the distance the object moves (its displacement), measured in meters (m).
- theta is the angle between the direction of the force and the direction of motion.
- cos(theta) accounts for how much of the force actually points along the path of motion.
When the force acts in the same direction as the motion, theta is 0 degrees and cos(0) = 1, so the formula collapses to the simple version most people learn first: W = F x d. The cosine term only matters when the force is applied at an angle, such as pulling a sled with a rope tilted upward.
Units of work: the joule
Work is measured in joules (J) in the SI system. One joule is defined as the work done when a force of one newton moves an object one meter in the direction of the force. In other words, 1 joule = 1 newton-meter (N m).
Because work equals energy transferred, it shares the same unit as energy. Lifting an apple about one meter takes roughly one joule. The joule is formally defined as a derived SI unit in the NIST guide to the SI, which lists it as newton-meter, the same relationship used throughout this guide. If you want to convert between joules, calories, kilowatt-hours and other energy units, an energy converter handles the arithmetic for you.
Common work and energy units at a glance
| Unit | Symbol | Equivalent in joules |
|---|---|---|
| Joule | J | 1 J |
| Kilojoule | kJ | 1,000 J |
| Newton-meter | N m | 1 J |
| Calorie (thermochemical) | cal | about 4.184 J |
| Kilowatt-hour | kWh | 3,600,000 J |
| Foot-pound | ft lb | about 1.356 J |
Worked examples: pushing, lifting, and pulling at an angle
Suppose you push a box across a floor with a steady force of 50 newtons, in the same direction the box moves, and the box slides 3 meters. How much work do you do?
- Write the formula: W = F x d x cos(theta).
- Identify the values: F = 50 N, d = 3 m, and theta = 0 degrees because the force points along the motion.
- Find the cosine: cos(0) = 1, so the angle term drops out.
- Multiply: W = 50 x 3 x 1 = 150.
- Add the unit: W = 150 joules.
So you transfer 150 joules of energy to the box. Now imagine you instead pull the same box with a rope angled at 60 degrees above the floor, still with 50 N over 3 m. Since cos(60) = 0.5, the work becomes W = 50 x 3 x 0.5 = 75 joules. Half the force is "wasted" lifting against gravity rather than moving the box forward, so only half the work goes into horizontal motion.
A common follow-up question is how to calculate work done against gravity, such as lifting an object straight up. Here the force you apply equals the object's weight, so the formula becomes W = m x g x h, where m is mass in kilograms, g is the acceleration due to gravity (about 9.8 m/s squared near Earth's surface), and h is the height gained in meters. Lift a 10 kg box up 2 meters and the work done is W = 10 x 9.8 x 2 = 196 joules. This is really the same W = F x d x cos(theta) formula in disguise, since the force (weight) points straight up, the displacement is straight up, theta is 0 degrees, and F has simply been replaced by m x g.
When is work zero?
One of the trickiest ideas for newcomers is that you can apply a large force and still do no work. Zero work happens in two situations:
- No displacement. If d = 0, then W = 0. Pushing against a brick wall that never moves does zero work, no matter how hard you strain.
- Force perpendicular to motion. If the force is at 90 degrees to the direction of travel, cos(90) = 0, so W = 0. A satellite in a circular orbit has gravity pulling it inward while it moves sideways, so gravity does no work on it.
Carrying a tray of drinks across a flat room is a classic example. You hold the tray up with an upward force, but you walk horizontally, so the force and the motion are perpendicular. The work done on the tray by your hands is zero.
Positive, negative, and net work
The cosine term can make work positive or negative, and the sign tells you which way energy is flowing.
- Positive work (theta less than 90 degrees) adds energy to the object and tends to speed it up. Pushing a cart forward is positive work.
- Negative work (theta greater than 90 degrees) removes energy and tends to slow the object. Friction and braking forces do negative work because they oppose motion.
- Net work is the sum of work done by all forces. The work-energy theorem says net work equals the change in kinetic energy of the object.
That link to motion energy is why work matters so much. If you want to see how speed and mass turn into energy, our kinetic energy formula guide walks through the related equation, and a kinetic energy calculator lets you test values quickly. The connection between force and motion is also covered in our acceleration formula explainer.
Work versus power
Work and power are often confused. Work measures the total energy transferred, while power measures how fast that energy is transferred. Power equals work divided by time, measured in watts (W), where 1 watt = 1 joule per second.
Two people might both do 1,000 joules of work climbing the same stairs, but the one who runs up in 5 seconds delivers more power than the one who strolls up in 30 seconds. Both did identical work. This distinction matters in real machines too: a small electric motor and a large industrial motor can both lift the same weight the same height, doing identical work, but the larger motor is rated for more power because it can finish the lift faster. If you need to convert watts, horsepower and other units, try a power converter. For a deeper look at how distance and motion connect, see our velocity formula guide.
Work compared with power
| Quantity | What it measures | Formula | Unit |
|---|---|---|---|
| Work | Total energy transferred by a force | W = F x d x cos(theta) | joule (J) |
| Power | Rate of doing work | P = W / time | watt (W) |
Common mistakes to avoid
- Forgetting the angle. Always check whether the force lines up with the motion. If it does not, you must include cos(theta).
- Mixing up distance and displacement. Work uses displacement along the direction of the force, not the total path length.
- Using the wrong units. Force must be in newtons and distance in meters to get joules. Mixed units give wrong answers.
- Thinking effort equals work. Holding a weight still is tiring but does zero physics work because nothing moves.
- Ignoring the sign. Negative work is real and important. Brakes and friction remove energy, so their work is negative.
Good to know
Work is a scalar quantity, which means it has size but no direction, even though force and displacement are vectors. The cosine term reduces those vectors to a single number. Work and energy are deeply linked: doing positive work on an object increases its energy, and the object can later do work on something else by giving that energy back. This is the foundation of the conservation of energy that runs through all of physics.
This is also why engineers size motors, engines, and batteries around work and energy rather than force alone. An elevator motor, a car engine, and a battery in a phone are all rated by how much energy they can deliver or store, and every one of those energy figures traces back to the same W = F x d x cos(theta) relationship, whether the force comes from an electric motor, burning fuel, or a chemical reaction. Understanding the work formula is the entry point into that broader energy accounting, which is why it shows up so early in every physics course.
Frequently asked questions
What is the formula for work in physics?
The work formula is W = F x d x cos(theta), where F is the applied force in newtons, d is the distance moved in meters, and theta is the angle between the force and the direction of motion. When the force acts along the motion, it simplifies to W = F x d. Work is measured in joules.
What unit is work measured in?
Work is measured in joules (J) in the SI system. One joule equals one newton-meter, meaning the work done when a one-newton force moves an object one meter in the direction of the force. Because work equals energy transferred, the joule is also the standard unit of energy.
Why is no work done when you hold something still?
Work requires displacement. The formula W = F x d gives zero whenever the distance moved is zero. Holding a heavy object still takes muscular effort, but since the object does not move, no physics work is done on it. Effort and work are different concepts in physics.
When is work negative?
Work is negative when the force opposes the direction of motion, meaning the angle between them is greater than 90 degrees so cos(theta) is negative. Friction, air resistance, and braking forces all do negative work because they remove energy from a moving object and slow it down.
What is the difference between work and power?
Work is the total energy transferred by a force, measured in joules. Power is how fast that work is done, measured in watts, where one watt equals one joule per second. Two people can do equal work climbing the same stairs, but whoever finishes faster delivers more power.
Does the work formula change when force is at an angle?
Yes. When the force is applied at an angle to the motion, you must include the cosine term: W = F x d x cos(theta). Only the component of the force along the direction of motion does work. If the force is perpendicular to motion, cos(90) = 0 and no work is done.