If 100 km uses 6.5 litres of fuel, how much does a 340 km trip use? If four people need 15 days for a job, how long do six people need? These are rule-of-three questions: you know three values and want the fourth. This guide shows how to set up the calculation, how to tell a direct proportion from an inverse one, how to handle the compound rule of three with more than two quantities, and gives three ready-to-use tables.
Solve a rule of three now
Enter A, B and C: the calculator finds the value that corresponds to C and shows the ratio B / A. The link below opens it with the fuel example already filled in.
Open the rule of three calculator →How the rule of three works
Write the two known pairs in a small table, with the unknown value x in the empty cell:
- A corresponds to B
- C corresponds to x
If the two quantities are proportional, the ratio stays the same on both lines: B / A = x / C. Cross-multiply and solve: x = B × C ÷ A. In words: multiply the two values on the diagonal (B and C), then divide by the value left alone (A).
A quick check: B ÷ A is the value for one unit of A (the unit rate). Multiply it by C and you get the same answer.
Direct or inverse? Ask one question first
Before you multiply anything, ask: if one quantity doubles, what happens to the other?
- It doubles too: the proportion is direct (price and weight, distance and fuel, servings and ingredients). Use x = B × C ÷ A.
- It is halved: the proportion is inverse (workers and days for the same job, speed and travel time for the same distance). Use x = A × B ÷ C, because the product A × B stays constant.
- Neither: the rule of three does not apply (age and height, a taxi fare with a fixed pick-up fee, tax brackets).
Worked examples
Example 1: fuel for a trip (direct)
Your car uses 6.5 L per 100 km. How much fuel do you need for 340 km?
- A = 100 km, B = 6.5 L, C = 340 km.
- x = 6.5 × 340 ÷ 100 = 2,210 ÷ 100 = 22.1 L.
- Check: 6.5 ÷ 100 = 0.065 L per km, and 0.065 × 340 = 22.1 L.
Example 2: speed and travel time (inverse)
At 90 km/h a drive takes 2 h 40 min (160 minutes). How long does it take at 120 km/h? Going faster means less time, so the proportion is inverse.
- x = 90 × 160 ÷ 120 = 14,400 ÷ 120 = 120 minutes, or 2 hours.
- A direct rule of three would give 213.3 minutes: more time at a higher speed, which is impossible. The same logic works in mph.
Example 3: the compound rule of three
5 machines make 1,200 parts in 8 hours. How many parts do 3 machines make in 10 hours? Change one quantity at a time and ask the direct/inverse question each time:
- Fewer machines, fewer parts (direct): 1,200 × 3 ÷ 5 = 720 parts in 8 hours.
- More hours, more parts (direct): 720 × 10 ÷ 8 = 900 parts.
- In one line: 1,200 × (3 ÷ 5) × (10 ÷ 8) = 900.
Table 1: test scores out of 40 converted to 100, 20 and 10
Converting a score to another scale is a direct rule of three: score × 100 ÷ 40 for a percentage. Example: 27 out of 40 = 67.5%.
| Score / 40 | Out of 100 (%) | Out of 20 | Out of 10 |
|---|---|---|---|
| 10 | 25 | 5 | 2.5 |
| 15 | 37.5 | 7.5 | 3.75 |
| 20 | 50 | 10 | 5 |
| 22 | 55 | 11 | 5.5 |
| 24 | 60 | 12 | 6 |
| 25 | 62.5 | 12.5 | 6.25 |
| 27 | 67.5 | 13.5 | 6.75 |
| 28 | 70 | 14 | 7 |
| 30 | 75 | 15 | 7.5 |
| 32 | 80 | 16 | 8 |
| 34 | 85 | 17 | 8.5 |
| 35 | 87.5 | 17.5 | 8.75 |
| 36 | 90 | 18 | 9 |
| 38 | 95 | 19 | 9.5 |
| 40 | 100 | 20 | 10 |
For any other total, the “X is what percent of Y” calculator does the same calculation.
Table 2: an inverse proportion (a job of 60 worker-days)
Four people need 15 days, so the job represents 4 × 15 = 60 worker-days. The number of days is 60 ÷ number of workers, assuming everyone works at the same pace and the task can be shared. The last column shows what a direct rule of three would wrongly give.
| Workers | Days needed | Wrong answer (direct rule) |
|---|---|---|
| 1 | 60 | 3.75 |
| 2 | 30 | 7.5 |
| 3 | 20 | 11.25 |
| 4 | 15 | 15 |
| 5 | 12 | 18.75 |
| 6 | 10 | 22.5 |
| 8 | 7.5 | 30 |
| 10 | 6 | 37.5 |
| 12 | 5 | 45 |
| 15 | 4 | 56.25 |
| 20 | 3 | 75 |
Table 3: scaling a recipe for 4 servings
Base recipe for 4: 250 g flour, 120 g sugar, 100 g butter, 300 ml milk, 3 eggs. Each quantity is multiplied by the new number of servings and divided by 4.
| Servings | Flour (g) | Sugar (g) | Butter (g) | Milk (ml) | Eggs |
|---|---|---|---|---|---|
| 2 | 125 | 60 | 50 | 150 | 1.5 |
| 4 | 250 | 120 | 100 | 300 | 3 |
| 6 | 375 | 180 | 150 | 450 | 4.5 |
| 8 | 500 | 240 | 200 | 600 | 6 |
| 10 | 625 | 300 | 250 | 750 | 7.5 |
| 12 | 750 | 360 | 300 | 900 | 9 |
Half eggs (1.5, 4.5, 7.5) are a reminder that the calculation is exact but the kitchen is not: round to the nearest whole egg or beat one and use half. For cup measures, see our cups to grams chart.
Common mistakes
- Using the direct formula on an inverse relationship. Six workers do not need 22.5 days when four need 15; they need 10.
- Mixing units. If A is in grams, C must be in grams too: 500 g for 2.40 and “2” for 2 kg gives 0.0096 instead of 9.60.
- Putting the values in the wrong cells. A and C are the same kind of quantity; B is the value that goes with A.
- Applying it to a relationship with a fixed part. A taxi that charges a pick-up fee plus a price per km is not proportional: remove the fixed fee first.
- Rounding too early. In a compound rule of three, keep all decimals until the last step.
FAQ
What is the rule of three in math? A method to find the fourth value of a proportion when three are known: x = B × C ÷ A for a direct proportion.
Is the rule of three the same as cross-multiplication? Yes. Writing A / B = C / x and multiplying across the diagonal gives A × x = B × C, so x = B × C ÷ A. Our fraction equation solver finds x wherever it sits.
How do I do an inverse rule of three? Multiply A by B and divide by C: 4 workers × 15 days ÷ 6 workers = 10 days.
Can I use it for percentages? Yes: use 100 as one of the values. 27 out of 40 → 27 × 100 ÷ 40 = 67.5%.
What about ratios like 3:2? A ratio is a proportion written differently; the ratio calculator simplifies and scales it.
Useful calculators
- Rule of three calculator: the fourth value of a proportion
- Ratio calculator: simplify and scale a ratio
- Solve for x in a fraction equation (a/b = c/d)
- X is what percent of Y
