Ccalcus.app

Rule of Three Calculator

Solve the classic "A is to B as C is to X" instantly, in direct mode (more A, more B) or inverse mode (more A, less B).

Direct & inverse Live result Accepts decimals

Set-up

Type of proportion

Direct: more A, more B (recipes, prices, distances). X = (B × C) / A

A
B
C
X = 20

You can type decimals with a point (2.5). The unknown X is worked out automatically as you type.

Result X

20
If 3 → 12, then 5 → 20
Set-up (A → B)3 → 12
Known figure (C)5
Formula applied (B×C)/A(12 × 5) / 3
Result X20

Direct proportion: the two quantities rise or fall together. Up to 4 decimal places are shown, but only when they are needed.

How the direct and inverse rule of three works

Learn how to set up the right proportion and choose the correct mode for each situation

Direct rule of three

More A, more B

The two quantities move in the same direction: if one grows, the other grows in the same proportion. This is the case with recipes (more diners, more ingredients) or with prices per unit (more kilos, more pounds). The formula is X = (B × C) / A.

Everyday examples
Recipe: if a dish for 4 people needs 300 g of rice, for 6 people → (300 × 6) / 4 = 450 g.
Prices: if 3 kg of oranges cost £4.50, 5 kg will cost → (4.50 × 5) / 3 = £7.50.

Inverse rule of three

More A, less B

The quantities move in opposite directions: if one grows, the other falls proportionally. This is the classic case of workers and days on a job, or of speed and journey time. The formula changes to X = (A × B) / C.

Everyday examples
Workers and days: if 4 workers take 6 days, 8 workers will take → (4 × 6) / 8 = 3 days.
Speed and time: if at 60 mph you take 2 hours, at 80 mph you will take → (60 × 2) / 80 = 1.5 hours.

Common mistakes

Mind the mode

The most frequent slip is using the direct mode when the relationship is inverse. With the workers example: if you apply the direct rule to "4 workers take 6 days, how long for 8?", you get 12 days — exactly the opposite of reality. Before you calculate, always ask yourself: when A goes up, does B go up or down? If it goes down, the proportion is inverse.

Quick sense check
Twice as many workers can NOT take twice as long. If the result contradicts common sense, you have picked the wrong mode.

Link with percentages

A special case

Every percentage is a direct rule of three with a total of 100. Working out 15% of 80 means setting up: "100 is to 15 as 80 is to X" → X = (15 × 80) / 100 = 12. That is why this calculator also works for percentages, discounts or the VAT on an invoice.

Example
What percentage is 30 of 150? → "150 is to 100 as 30 is to X" → (100 × 30) / 150 = 20%.

Frequently asked questions about the rule of three

We answer the most common questions when solving proportions

Ask yourself a single question: when the first quantity increases, does the second one increase or decrease? If they both move the same way (more kilos → more pounds, more people → more food), it is direct. If they move in opposite directions (more workers → fewer days, more speed → less time), it is inverse. Always check that the result makes sense: twice as many workers can never take twice as long.
Yes. A percentage is a direct rule of three in which the total corresponds to 100. To work out 21% of 350, set A = 100, B = 21, C = 350 → X = (21 × 350) / 100 = 73.5. If you mainly need everyday percentage sums, you can also use our percentage calculator, with all four types of operation already set up.
Yes, without limit. Write them with a decimal point (2.5) and the calculator will handle them. The result is shown in UK format and to a maximum of 4 decimal places, which appear only when they are needed (20 is shown as "20", not as "20.0000").
It depends on where the zero is. In the direct rule of three you cannot divide by A, so A cannot be 0; in the inverse rule the divisor is C, so C cannot be 0. In those cases the calculator shows a clear warning instead of a meaningless result. A zero in the other positions is valid: 0% of any amount is 0.

What the rule of three is and how to calculate it

The rule of three is the simplest method for solving problems of proportionality: given three values of a relationship, it lets you find the fourth. The classic set-up is "A is to B as C is to X", where X is the unknown. It is probably the most widely used piece of maths in everyday life: scaling the quantities in a recipe, comparing prices per kilo, splitting a bill, converting currencies or estimating how long a task will take if you change the pace.

The only tricky part is picking the right type of proportion. There are two variants and each has its own formula: the direct rule of three, when the two quantities grow or shrink together, and the inverse rule of three, when one grows while the other shrinks. This calculator solves both live: enter A, B and C, choose the mode and you get X straight away, with a breakdown of the formula applied.

Direct rule of three: more A, more B

In direct proportion, the ratio between the quantities stays constant: if one doubles, so does the other. The formula is X = (B × C) / A. This is the case with cooking recipes: if a recipe for 4 people uses 300 grams of rice, for 6 people you will need (300 × 6) / 4 = 450 grams. And with prices per unit: if 3 kilos of oranges cost £4.50, 5 kilos will cost (4.50 × 5) / 3 = £7.50. In both examples, as the first quantity increases the second one increases too, which is why direct is the correct choice.

Inverse rule of three: more A, less B

In inverse proportion, what stays constant is the product of the quantities, not the ratio. The formula changes to X = (A × B) / C. The classic example is workers and days on a job: if 4 workers build a wall in 6 days, 8 workers (twice the hands) will do it in half the time: (4 × 6) / 8 = 3 days. Another everyday case is speed and journey time: if at 60 mph you take 2 hours to arrive, at 80 mph you will take (60 × 2) / 80 = 1.5 hours. The faster you go, the less time you need: opposite directions, inverse proportion.

Table of worked examples

Problem Type Formula Result
If 3 tickets cost £12, how much do 5 cost? Direct (12 × 5) / 3 £20
If 2.5 m of fabric cost £10, how much do 7 m cost? Direct (10 × 7) / 2.5 £28
If 4 workers take 6 days, how long do 8 workers take? Inverse (4 × 6) / 8 3 days
If at 60 mph you take 2 h, how long at 80 mph? Inverse (60 × 2) / 80 1.5 hours

The most common mistake: using direct when the relationship is inverse

The slip that produces the most absurd results is using the direct formula on an inverse problem. Take the workers example: if you apply the direct rule to "4 workers take 6 days, how long for 8?", you get (6 × 8) / 4 = 12 days — that is, twice as many workers take twice as long. Obviously it is the other way round. The defence is always the same: before you calculate, put the relationship into words ("if I add more workers, do the days go up or down?") and check that the final result moves in the direction you expect. Another frequent error is mixing units (grams with kilos, minutes with hours): convert everything to the same unit before you set up the proportion.

The rule of three and percentages

Percentages are a special case of the direct rule of three in which one of the quantities is always 100. "15% of 80" is set up as "100 is to 15 as 80 is to X" → X = (15 × 80) / 100 = 12. And the other way round: "what percentage is 30 of 150?" is set up as "150 is to 100 as 30 is to X" → X = (100 × 30) / 150 = 20%. Mastering the rule of three lets you solve any percentage, discount, mark-up or proportional split without memorising different formulas: they are all the same proportion under different names.

Note: This rule of three calculator is a general-purpose tool. For specific calculations of tax, discounts or dates, we recommend our dedicated calculators for percentages, discounts, days between dates and VAT, linked below.