Ratio Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter a ratio A:B and a new first term C to find the matching D, so that A:B = C:D.
Result
D, so that A:B = C:D
A ÷ B as a decimal
- A as a share of A + B
- B as a share of A + B
- Ratio written as 1 : n (n = B ÷ A)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- A (first term of the ratio): enter a number.
- B (second term of the ratio): enter a number.
- C (new first term): enter a number.
- Read the result: D, so that A:B = C:D; the panel also shows A ÷ B as a decimal, A as a share of A + B, B as a share of A + B and Ratio written as 1 : n (n = B ÷ A).
How this calculator works
Two ratios are equal when their cross products are equal: A:B = C:D means A × D = B × C, so D = B × C ÷ A. This is the rule of three taught in US middle-school math (Common Core 6.RP and 7.RP).
Scaling a ratio multiplies both terms by the same factor C ÷ A, so the relationship between the parts does not change.
The shares show each term as a percent of the whole: A ÷ (A + B) and B ÷ (A + B).
The formula
| Symbol | Meaning |
|---|---|
| A (first term of the ratio) | |
| B (second term of the ratio) | |
| C (new first term) | |
| D, so that A:B = C:D |
Worked example
| A (first term of the ratio) | 3 |
|---|---|
| B (second term of the ratio) | 4 |
| C (new first term) | 9 |
| A ÷ B as a decimal | 0.75 |
|---|---|
| A as a share of A + B | 42.86% |
| B as a share of A + B | 57.14% |
| Ratio written as 1 : n (n = B ÷ A) | 1.3333 |
D, so that A:B = C:D 12
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is a ratio?
A comparison of two quantities by division. 3:4 means 3 parts of the first for every 4 parts of the second.
How do I solve 3:4 = 9:x?
Cross-multiply: 3 × x = 4 × 9 = 36, so x = 12.
Is a ratio the same as a fraction?
A two-part ratio A:B can be written as the fraction A/B, but a ratio compares parts with each other, while a fraction usually compares a part with the whole: 3:4 means 3 out of 7 in total.