Rule of Three Calculator
Solve direct and inverse proportions instantly — visual layout, step-by-step working, real-world examples
Real-World Examples — click any to try it
Direct Shopping
If 5 apples cost $10, how much do 15 apples cost?
Try this example →Inverse Work Rate
If 3 workers finish a job in 12 days, how long for 6 workers?
Try this example →Direct Cooking
A recipe for 4 people uses 300 g of flour. How much for 7 people?
Try this example →Inverse Speed & Time
At 60 km/h a trip takes 4 hours. How long at 80 km/h?
Try this example →Direct Currency
If $1 = 0.92 EUR, how many euros for $250?
Try this example →Inverse Pipes & Tanks
2 pipes fill a tank in 9 hours. How long with 6 pipes?
Try this example →Plug in three known values from any proportion problem and get the missing fourth number in one click. Works for both direct proportion (more hours = more pay) and inverse proportion (more workers = fewer days), with step-by-step math shown so you can verify the result yourself.
Pick a mode, type A, B, and C into the boxes, and the answer updates as you go — no "submit" button needed for live results. And everything runs in your browser. Nothing gets uploaded.
How It Works
For direct proportion, the formula is X = (B × C) / A. Inverse proportion flips it: X = (A × B) / C. The calculator picks the right formula based on your mode selection, plugs in your numbers, and shows each arithmetic step so you can verify the answer yourself. No black box.
Examples
Scaling a Recipe for a Dinner Party
Your recipe serves 4 but you’re cooking for 7. How much flour?
Mode: Direct
A = 4 (people)
B = 300 (grams flour)
C = 7 (people)
X = 525 grams
(300 × 7) ÷ 4 = 525
Workers Finishing a Construction Job
3 workers need 12 days to paint a building. The client doubles the crew to 6. Inverse proportion — more workers means fewer days.
Mode: Inverse
A = 3 (workers)
B = 12 (days)
C = 6 (workers)
X = 6 days
(3 × 12) ÷ 6 = 6
Currency Exchange on Vacation
You know 1 USD equals 0.92 EUR. Quick check before buying something priced at 250 USD.
Mode: Direct
A = 1 (USD)
B = 0.92 (EUR)
C = 250 (USD)
X = 230 EUR
(0.92 × 250) ÷ 1 = 230
Who Uses This
Scale ingredient amounts when a recipe serves 4 but you need to feed 11.
Check homework answers on proportion and ratio problems before submitting.
Estimate how adding or removing workers changes a project timeline.
Convert currencies on the fly without hunting for a dedicated exchange app.
Common Mistakes
If more workers means fewer days, that’s inverse — not direct. Getting this backwards gives you a nonsense answer. Ask yourself: “When one value goes up, does the other go up or down?”
A and C must be the same unit (e.g., both are “number of people”). B is the related quantity you already know. Mixing up which number goes where is the most common source of wrong results.
Division by zero breaks the formula. If one of your values is actually zero, the rule of three doesn’t apply to that problem — you need a different approach entirely.
Technical Details
- Processing: 100% client-side — nothing leaves your browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Precision: JavaScript floating-point (up to 15 significant digits)
- Modes: Direct proportion and inverse proportion
Frequently Asked Questions
What is the rule of three in math?
It’s a shortcut for solving proportions. You have three known values and one unknown. Set up two ratios as equal fractions, cross-multiply, and solve. That’s it — no algebra classes required.
How do I know if it’s direct or inverse proportion?
Think about what happens when one quantity increases. If the other also increases (more items cost more money), it is direct. If the other decreases (more workers finish sooner), that’s inverse. When in doubt, test it with common sense before hitting calculate.
Can I use decimals or fractions?
Decimals work fine — type 0.92 or 3.5 just like you would on a regular calculator. The tool doesn’t accept fraction notation (like 3/4), so convert to a decimal first: 3 ÷ 4 = 0.75.
Is this the same as cross multiplication?
Yes, for direct proportion. The rule of three is basically cross multiplication with a name. You set A/B = C/X, cross-multiply to get A × X = B × C, then divide. The calculator does this same process and shows each step.
Does this tool store my data?
No. All calculations happen in your browser using JavaScript. Nothing is sent to a server, nothing is saved, nothing is logged. Refresh the page and your inputs are gone.