Ratio Calculator
Solve a proportion a:b = c:d by cross-multiplication, filling in the one missing value.
What this calculator does
A proportion states that two ratios are equal: a:b = c:d. Enter three of the four values and the calculator solves the missing one by cross-multiplication. At its defaults, 2:3 = 4:6 holds because the cross products match: 2 × 6 = 12 and 3 × 4 = 12. Change any one value and the calculator restores the balance — blank out d with a, b and c at 2, 3 and 4, and it returns d = 6 again.
The cross-multiplication formula
Cross-multiplication turns two fractions into one linear equation. If a:b = c:d, then a⁄b = c⁄d, and multiplying both sides by b and d clears the denominators to give a × d = b × c. Solving for each position gives four rearrangements, all from the same identity:
- Missing d: d = b × c ÷ a. With 2, 3, 4: 3 × 4 ÷ 2 = 6.
- Missing c: c = a × d ÷ b. With 2, 3, 6: 2 × 6 ÷ 3 = 4.
- Missing b: b = a × d ÷ c. With 2, 4, 6: 2 × 6 ÷ 4 = 3.
- Missing a: a = b × c ÷ d. With 3, 4, 6: 3 × 4 ÷ 6 = 2.
Worked example: 2 books weigh 3 kg
If 2 books weigh 3 kg, how much do 4 books weigh? Set up the proportion 2:3 = 4:d, where the left pair is books to kilograms for the first stack and the right pair is the same for the second. Cross-multiply: 2 × d = 3 × 4 = 12, so d = 12 ÷ 2 = 6 kg. The scaling factor is visible without algebra too: 4 books is 2 × the first stack, so the weight doubles from 3 kg to 6 kg.
The same setup handles a mix of units. If 3 cans cost $4.50, then 7 cans cost d from 3:4.50 = 7:d, giving d = 4.50 × 7 ÷ 3 = $10.50. Unit price is a rate version of the same proportion: $4.50 ÷ 3 = $1.50 per can, and 7 × 1.50 = $10.50.
Equivalent ratios
| Ratio | Simplified | As a fraction of the whole |
|---|---|---|
| 2 : 3 | 2 : 3 | 2/5 vs 3/5 |
| 4 : 6 | 2 : 3 | 2/5 vs 3/5 |
| 10 : 15 | 2 : 3 | 2/5 vs 3/5 |
| 6 : 9 | 2 : 3 | 2/5 vs 3/5 |
Multiplying or dividing both terms by the same number produces an equivalent ratio — 2:3, 4:6, 10:15 and 6:9 all describe the same relationship. That is why the calculator can verify the defaults: 2:3 and 4:6 are the same ratio wearing different sizes. Reducing both terms by their GCD gives the canonical form, exactly as a fraction reduces to lowest terms.
Part-to-part versus part-to-whole
A ratio of 2:3 compares two parts of a 5-part whole. Converting to fractions means dividing by the total: one side is 2 ÷ 5 = 40% of the whole and the other is 3 ÷ 5 = 60%, not "2 out of 3". Reading 2:3 as the fraction 2/3 is one of the most common proportion errors — it overstates the first share. Concrete check: mixing paint 2 parts blue to 3 parts yellow makes 5 parts total, of which blue is 2/5. A 10-liter batch needs 4 liters of blue and 6 of yellow, and 4:6 reduces back to 2:3.
Where proportions show up
- Cooking. A rice ratio of 1 part rice to 1.5 parts water scales to any pot: 2 cups rice takes 3 cups water, 3 cups takes 4.5.
- Fuel and distance. If 240 miles used 8 gallons, 400 miles needs d from 240:8 = 400:d, so d = 8 × 400 ÷ 240 ≈ 13.3 gallons.
- Maps and models. A 1:50,000 map means 1 cm on paper is 50,000 cm (500 m) on the ground; 4 cm is 2 km.
- Screen sizes and aspect ratios. A 16:9 display that is 32 inches wide is 32 × 9 ÷ 16 = 18 inches tall.
- Currency and unit conversion. Any fixed conversion factor is a proportion: $1 to 1.08 € means $250 converts to 1.08 × 250 = €270.
Ratio, fraction and rate
These three are related but not interchangeable. A ratio compares two quantities of the same kind (2 cups flour to 3 cups water). A fraction puts a part over a whole (flour is 2/5 of the mix). A rate compares different units (60 miles per hour, $1.50 per can). Proportions solve all three, but the setup differs: ratios keep like-with-like on each side, while rates must keep unit pairs aligned — miles over gallons on the left must stay miles over gallons on the right, never flipped.
Common mistakes
- Reading 2:3 as "2 out of 3". The whole is 5 parts, so the first share is 2/5 = 40%, not 2/3 ≈ 66.7%.
- Flipping one side of a rate proportion. 240:8 = 400:d works; 240:8 = d:400 gives d = 4.8, which answers nothing sensible.
- Adding instead of scaling. Doubling a 2:3 recipe means 4:6, not 2+2 : 3+2 = 4:5, which is a different mix.
- Matching the wrong pairs. In "2 books weigh 3 kg", books must pair with books and kg with kg on the same side; pairing books with kg across the cross-multiplication scrambles the answer.
- Zero in the denominator. A ratio term of 0 makes the cross-product unsolvable; the calculator needs non-zero values in the positions it solves through.
Checking an answer without the calculator
Two independent checks catch most proportion errors. First, the cross-product test: whatever value you computed must make both diagonals multiply to the same number — for 2:3 = 4:6, both products are 12. Second, the scaling test: divide the new first term by the old first term (4 ÷ 2 = 2) and confirm the second term grew by the same factor (3 × 2 = 6). If a solution passes both, it is right; if it fails either, the proportion was set up with a flipped side or mismatched pairs. Ten seconds of checking on a recipe or a fuel estimate is cheaper than discovering the error in the pot or at the pump.
Frequently asked questions
How do I solve a proportion a:b = c:d?
Cross-multiply to get a × d = b × c, then divide to isolate the missing value. For 2:3 = 4:d, d = 3 × 4 ÷ 2 = 6.
What does a ratio of 2:3 mean?
2 parts of one thing for every 3 parts of the other, 5 parts in total — so the first share is 2/5 = 40% of the whole, not 2 out of 3.
How do I find an equivalent ratio?
Multiply or divide both terms by the same number. 2:3 becomes 4:6, 10:15 or 6:9, and all reduce back to 2:3.
If 2 books weigh 3 kg, how much do 4 books weigh?
Set up 2:3 = 4:d and cross-multiply: 2 × d = 12, so d = 6 kg. Doubling the quantity doubles the weight.
How do I scale a recipe with a ratio?
Multiply both terms by the same factor. A 1:1.5 rice-to-water ratio for 2 cups of rice needs 2 × 1.5 = 3 cups of water.
What is the difference between a ratio and a fraction?
A ratio compares two parts; a fraction compares a part to the whole. 2:3 parts means the first is 2/5 of the total, which is not 2/3.
How do I solve for a missing middle term?
Use b = a × d ÷ c. With a = 2, c = 4 and d = 6, b = 2 × 6 ÷ 4 = 3, restoring 2:3 = 4:6.
How do ratios handle three quantities?
Chain them: a:b:c applies the same scaling factor to all terms. Doubling 2:3:5 gives 4:6:10, and each pair still cross-multiplies consistently.
Can ratio terms have decimals?
Yes. 1:1.5 is equivalent to 2:3 after multiplying both sides by 2, which is why the default ratio keeps reappearing in scaled forms.
Why did my proportion give the wrong answer?
Usually a side is flipped or the pairs are mismatched. Check that both cross products are equal: for 2:3 = 4:6 they are 12 and 12; anything else means the setup, not the arithmetic, is wrong.
Method and sources
- Cross-multiplication for proportions (a:b = c:d).