Rule of three

Solve direct and inverse rule of three problems (proportions) with the steps shown.

loading Rule of three
About this tool

What is the rule of three?

The rule of three is a way to find a missing number when three numbers are known and all four are in proportion. If A corresponds to B, and C corresponds to an unknown X, the rule of three gives X. It is taught in school in many countries (in Brazil and across Latin America it is "regra de três" or "regla de tres"), and in English-speaking countries the same method is usually called solving a proportion or "cross-multiplying".

You use it every day without noticing: if 5 kg of apples cost 20, how much do 8 kg cost? If a car does 60 km in 2 hours, how long does it take to do 90 km? If 4 workers build a wall in 6 days, how many days will 8 workers need? There are two kinds, and picking the right one is the whole difficulty:

  • Direct rule of three. Both quantities grow together or shrink together (more apples, more money). Formula: X = (B × C) ÷ A.
  • Inverse rule of three. When one grows, the other shrinks (more workers, fewer days; more speed, less time). Formula: X = (A × B) ÷ C.

This calculator solves simple direct and inverse problems and shows each step so you can copy the reasoning into homework or a report. It accepts decimal numbers, works in your browser and does not send your numbers anywhere. It also solves the compound rule of three, where several quantities change together: for each quantity you say whether it moves the result in the same way (direct) or the opposite way (inverse), and the page multiplies the factors and shows every step.

How to solve a rule of three

  1. Decide whether the problem is direct or inverse. Ask: when the first quantity goes up, does the second go up (direct) or down (inverse)? Select the matching type.
  2. Fill A and B with the pair of values you know, so that "A corresponds to B".
  3. Fill C with the third value, which corresponds to the unknown X.
  4. Read X in the result field. It appears as soon as the three numbers are complete.
  5. Read the step-by-step explanation: the setup, the rule used and the arithmetic with your numbers.
  6. Copy the result.

Examples

Direct: price by weight

If 5 kg cost 20, how much do 8 kg cost? A = 5, B = 20, C = 8. X = (20 × 8) ÷ 5 = 32.

Direct: distance and time

A car travels 60 km in 2 hours. How long for 90 km at the same speed? A = 60, B = 2, C = 90. X = (2 × 90) ÷ 60 = 3 hours.

Inverse: workers and days

4 workers build a wall in 6 days. How many days for 8 workers? A = 4, B = 6, C = 8, inverse rule. X = (4 × 6) ÷ 8 = 3 days.

Inverse: speed and time

At 80 km/h a trip takes 5 hours. How long at 100 km/h? A = 80, B = 5, C = 100, inverse. X = (80 × 5) ÷ 100 = 4 hours.

Direct: scaling a recipe

A recipe for 4 people uses 300 g of rice. For 10 people: X = (300 × 10) ÷ 4 = 750 g.

Common mistakes

  • Using the direct rule for an inverse problem. If more of one thing means less of the other (workers and days), use the inverse rule. The direct answer would be the opposite of reality.
  • Mixing units. Put hours with hours and kilograms with kilograms. Convert first, for example 90 minutes to 1.5 hours.
  • Putting the values in the wrong positions. A and B are the known pair; C is the value that pairs with X.
  • Dividing by zero. A cannot be 0 in a direct rule and C cannot be 0 in an inverse rule, because they are the divisors. The tool says which one to change.
  • Using the rule when the relation is not proportional. Things like speed with fuel use or age with height do not grow in a straight line.
  • Confusing it with percentages. A percentage is a rule of three where one side is 100; for that, the percentage calculator is faster.

Frequently asked questions

How do I know if it is direct or inverse?

Increase the first quantity in your head. If the second also increases, it is direct. If it decreases, it is inverse.

What is the formula of the rule of three?

Direct: X = B × C ÷ A. Inverse: X = A × B ÷ C.

What is the compound rule of three?

A rule with more than two related quantities. Use the Compound option: mark each quantity as direct or inverse and the page multiplies the factors for you.

Is the rule of three the same as a proportion?

It is the method for solving a proportion A/B = C/X. The ratio calculator simplifies ratios and shares totals.

Can I use it for discounts and interest?

For a discount yes, as a percentage; the discount calculator does it in one step, and the loan and interest calculator handles compound growth.

Report a problem