Known values: A corresponds to B
The question: C corresponds to X
Result
Formula and your calculation
Fill in A, B and C to find X.
This free rule of three calculator finds the missing number X in a proportion. If A corresponds to B, what does C correspond to? Choose a direct or an inverse proportion, type A, B and C, and X appears at once with the calculation written out using your numbers and a one-sentence explanation. Both the dot and the comma work as a decimal mark, and everything runs in your browser.
How to use the rule of three calculator
- Pick the type of proportion: direct if both quantities grow together, inverse if one goes up when the other goes down.
- Fill in the known pair: A corresponds to B.
- Fill in C, the quantity you want to match. X is calculated as you type.
- Read the formula and your calculation, then copy the result. If a box is invalid, or if the division would be by zero, a message tells you which box to correct.
What is the rule of three?
The rule of three is a quick way to solve a proportion when you know three values and need a fourth. There are two cases.
Direct proportion
Both quantities change in the same direction: double one and the other doubles too. The formula is X = B × C ÷ A. It is the same as cross-multiplying A / B = C / X.
Example: 4 notebooks cost 12. How much do 10 notebooks cost? X = 12 × 10 ÷ 4 = 30.
Inverse proportion
The quantities move in opposite directions: double one and the other is halved. The product stays constant, so A × B = C × X, and the formula is X = A × B ÷ C.
Example: 4 workers finish a job in 6 days. How long will 8 workers take? X = 4 × 6 ÷ 8 = 3 days.
More worked examples
- A recipe (direct): 250 g of flour for 4 people. For 6 people: X = 250 × 6 ÷ 4 = 375 g.
- A percentage (direct): 100% corresponds to 250, so 18% corresponds to X = 250 × 18 ÷ 100 = 45. For more percentage calculations, see the percentage calculator.
- A map scale with decimals (direct): 1 cm on the map is 5 km. For 3.5 cm: X = 5 × 3.5 ÷ 1 = 17.5 km.
- Speed and time (inverse): a trip takes 2 hours at 60 km/h. At 90 km/h: X = 60 × 2 ÷ 90 = 1.333333 hours, which is 1 hour 20 minutes.
Direct or inverse: how to choose
Ask yourself: if the first quantity doubles, what happens to the second? If it also doubles, the proportion is direct (price and quantity, ingredients and guests). If it is halved, the proportion is inverse (workers and days, speed and travel time). Before you calculate, make sure the two values of the same kind use the same unit, for example both in hours or both in kilometers.
When you can use it
- Scaling a recipe up or down.
- Working out the price of a different quantity at the same unit price.
- Estimating a travel time at another speed, or a job time with more or fewer people.
- Reading a map or a plan with a scale, and homework on proportionality.
The rule of three only fits situations that really are proportional. A price with a fixed fee, or a discount that changes with the quantity, does not follow it. For related tools, see the GCF and LCM calculator, which simplifies ratios and fractions, and the unit converter to get your units in line first.
Frequently asked questions
What is the formula of the rule of three?
For a direct proportion, X = B × C ÷ A. For an inverse proportion, X = A × B ÷ C. A and B are the known pair, C is the new value and X is the answer.
What is the difference between direct and inverse proportion?
In a direct proportion, both quantities grow or shrink together, like price and quantity. In an inverse proportion, one grows when the other shrinks, like the number of workers and the days needed. With 4 workers in 6 days, 8 workers need 3 days.
Is the rule of three the same as cross-multiplication?
For a direct proportion, yes. Writing A / B = C / X and cross-multiplying gives A × X = B × C, so X = B × C ÷ A. The calculator does this for you and shows the result.
Why does the calculator say A cannot be 0?
In a direct proportion the formula divides by A, and dividing by zero is impossible. In an inverse proportion the formula divides by C, so C cannot be 0 there. The message names the box to correct.
Can I use decimals, with a comma or a dot?
Yes. Type 3.5 or 3,5 and the calculator understands both. Results are shown with up to 6 decimals and use the number format of the page language.
How do I calculate a percentage with the rule of three?
Treat 100% as A, the whole amount as B and the percentage as C. To find 18% of 250: A = 100, B = 250, C = 18, so X = 250 × 18 ÷ 100 = 45.
Can I enter negative numbers?
The calculator accepts them and applies the same formula, but proportions in everyday problems (prices, times, quantities) use positive values.
Are my numbers sent anywhere?
No. The calculation runs in your browser and nothing is uploaded or stored.