Skip to content

Rule of Three Calculator: Direct, Inverse, Compound

Direct, inverse and compound rule of three, solved step by step.

Your details

Type of rule of three

Read the problem as “A corresponds to B, so C corresponds to x”.

Same kind of quantity as A, in the same unit.

Results update as you type

Unknown value x

20

Ratio B ÷ A
4

Step-by-step solution
  1. 3 → 12, 5 → x (directly proportional)
  2. Cross-multiply: A × x = B × C
  3. x = (B × C) ÷ A = (12 × 5) ÷ 3 = 60 ÷ 3 = 20
  4. Check with the unit value: B ÷ A = 4 per unit, × 5 = 20

The rule of three is the quickest way to find a missing value when two quantities change together. If 3 kg of apples cost 12, what do 5 kg cost? If 4 painters need 12 days, how long do 6 painters need? This rule of three calculator answers both kinds of question and shows the working, so you can copy the method into your homework or check a quote.

Pick the type that fits your problem:

  • Direct — the quantities grow together (more kilograms, higher price). The calculator uses cross multiplication.
  • Inverse — one grows while the other shrinks (more workers, fewer days). The product of the two quantities stays fixed.
  • Compound — several factors change at once (workers, hours per day and length of wall). Mark each factor as direct or inverse and the calculator chains them.

It works with decimals and negative numbers, and every result is checked a second way (unit value or constant product) in the steps. For ratios such as 16:9 or splitting an amount in a ratio, use the ratio calculator.

How to use this calculator

  1. Choose Direct, Inverse or Compound.
  2. For a simple rule of three, write the problem as “A goes with B, C goes with x” and type A, B and C. A and C must be the same kind of quantity in the same unit.
  3. For a compound rule of three, enter the known value of the quantity you are looking for, then one row per factor that changes, with its old value, its new value and its relation.
  4. Read x at the top and open the steps to see the calculation.

The formula

Direct rule of three. If AA corresponds to BB and the quantities are proportional, the ratio stays the same: BA=xC\frac{B}{A} = \frac{x}{C}. Cross multiplication gives

x=B×CAx = \frac{B \times C}{A}

Inverse rule of three. If the quantities are inversely proportional, their product stays the same: A×B=C×xA \times B = C \times x, so

x=A×BCx = \frac{A \times B}{C}

Compound rule of three. Start from the known value YY and multiply by one ratio per factor: newold\frac{\text{new}}{\text{old}} for a direct factor, oldnew\frac{\text{old}}{\text{new}} for an inverse one:

x=Y×∏directbiai×∏inverseajbjx = Y \times \prod_{\text{direct}} \frac{b_i}{a_i} \times \prod_{\text{inverse}} \frac{a_j}{b_j}

Worked example

Direct: 3 kg of apples cost 12. Five kilograms cost x=12×53=20x = \frac{12 \times 5}{3} = 20. The unit price, 12÷3=412 \div 3 = 4 per kilogram, confirms it: 4×5=204 \times 5 = 20.

Inverse: 4 painters finish a house in 12 days. With 6 painters working at the same pace, x=4×126=8x = \frac{4 \times 12}{6} = 8 days. The amount of work, 48 painter-days, has not changed.

Compound (the calculator's default): 8 workers, working 6 hours a day, build 300 m of wall in 15 days. How many days do 10 workers need, at 8 hours a day, for 400 m?

  • More workers → fewer days: inverse, × 8/10 = × 0.8
  • More hours per day → fewer days: inverse, × 6/8 = × 0.75
  • More metres → more days: direct, × 400/300 = × 1.333333
x=15×0.8×0.75×43=12 daysx = 15 \times 0.8 \times 0.75 \times \tfrac{4}{3} = 12 \text{ days}

Direct or inverse? A quick test

Ask what happens to the answer if you double the known quantity. If the answer doubles too (twice the fuel, twice the distance), the relationship is direct. If it halves (twice the speed, half the time), it is inverse. If it does neither — the price of a taxi ride with a fixed pick-up fee, for example — the rule of three does not apply, and you need a linear equation instead (see the linear interpolation calculator).

Frequently asked questions

What is the rule of three in maths?

It is a method for finding the fourth value of a proportion when three are known. You line up the two pairs (A with B, C with x), check whether the quantities are directly or inversely proportional, and solve with cross multiplication or with the constant product.

Is cross multiplication the same as the rule of three?

For direct proportions, yes. Writing B/A = x/C and multiplying across gives A·x = B·C, which is the direct rule of three. Cross multiplication does not apply directly to inverse problems: there you equate the products A·B and C·x.

How do I solve a compound rule of three?

Split it into simple rules of three, one per factor that changes. For each factor ask whether more of it means more or less of the result, multiply the known value by new/old or old/new accordingly, and chain the ratios. The calculator does exactly this and lists every ratio in the steps.

Can the rule of three handle percentages?

Yes. A percentage is a direct rule of three with 100: if 100 % is 250, then 18 % is 250 × 18 ÷ 100 = 45. For discounts, increases and percentage change, the percentage calculator is faster.

Why does the calculator refuse A = 0?

In a direct rule of three the formula divides by A, and a quantity of zero cannot correspond to a non-zero amount in a proportion. In an inverse rule of three the same is true of C. Check that you have not swapped the values.

Last updated:

More Math calculators

People also use