Ratio Calculator
Simplify ratios, find equivalent ratios, compare two ratios, and solve for missing values.
What Is a Ratio?
A ratio is a mathematical expression that compares two or more quantities showing their relative sizes. Written as a:b or as a fraction a/b, a ratio tells you how many times one number contains another. For example, a class with 15 boys and 20 girls has a boy-to-girl ratio of 15:20, which simplifies to 3:4. Ratios are dimensionless — the actual units cancel out — making them useful for comparing quantities across different scales.
Ratios appear everywhere in daily life: the aspect ratio of your screen (16:9), a map scale (1:50,000), a recipe (2 cups flour to 1 cup butter), and even financial statements (debt-to-equity ratio). Understanding how to simplify, scale, and compare ratios is a foundational mathematical skill used from primary school through university-level mathematics and professional work.
How to Simplify a Ratio (Using GCD)
To simplify a ratio a:b, find the Greatest Common Divisor (GCD) of a and b, then divide both parts by it. For example, to simplify 12:18:
- List factors of 12: 1, 2, 3, 4, 6, 12
- List factors of 18: 1, 2, 3, 6, 9, 18
- GCD = 6 (the largest common factor)
- 12 ÷ 6 = 2 and 18 ÷ 6 = 3
- Result: 12:18 simplifies to 2:3
A faster approach uses the Euclidean algorithm: GCD(12, 18) = GCD(18 mod 12, 12) = GCD(6, 12) = 6. This calculator applies the Euclidean algorithm automatically for any input.
Equivalent Ratios Explained
Two ratios are equivalent if they simplify to the same value. You can generate equivalent ratios by multiplying or dividing both terms by any non-zero number. The ratio 1:3 is equivalent to 2:6, 3:9, 4:12, 5:15 — you multiply both by 2, 3, 4, and 5 respectively. This is exactly how unit conversions, recipe scaling, and map reading work in practice.
The concept of equivalent ratios underlies the rule of three in proportion problems: if a:b = c:d, then ad = bc (cross-multiplication). This identity is used to solve for any missing value in a proportion, which is what the Solve for X mode on this calculator does.
Ratio vs Proportion vs Fraction
| Concept | Definition | Example |
|---|---|---|
| Ratio | Comparison of two quantities | 3:4 |
| Fraction | Part of a whole, written as a/b | 3/7 |
| Proportion | Statement that two ratios are equal | 3:4 = 6:8 |
A ratio and a fraction look similar but differ in meaning. The ratio 3:4 compares group A to group B — it does not imply they are parts of the same whole. The fraction 3/7 means 3 out of 7 parts of one whole. When a ratio a:b is used as a fraction a/(a+b), it represents each part's share of the total (a out of a+b).