Rule of Three: Direct, Inverse and Compound (Examples and Tables)

How to solve a rule of three: cross-multiplication, direct vs inverse proportion, the compound rule of three, worked examples and three ready-to-use tables.

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 / 40Out of 100 (%)Out of 20Out of 10
102552.5
1537.57.53.75
2050105
2255115.5
2460126
2562.512.56.25
2767.513.56.75
2870147
3075157.5
3280168
3485178.5
3587.517.58.75
3690189
3895199.5
401002010

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.

WorkersDays neededWrong answer (direct rule)
1603.75
2307.5
32011.25
41515
51218.75
61022.5
87.530
10637.5
12545
15456.25
20375

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.

ServingsFlour (g)Sugar (g)Butter (g)Milk (ml)Eggs
212560501501.5
42501201003003
63751801504504.5
85002402006006
106253002507507.5
127503603009009

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

AllCalculs Team
AllCalculs Team

The AllCalculs team builds free online calculators and writes these guides. Every formula and example is checked against the calculator it links to.

Articles: 96