Ratio Calculator
Simplify a ratio to its lowest terms and solve for a missing value in an equivalent ratio.
Enter two non-zero terms to simplify the ratio.
Simplifying a ratio
A ratio is simplified by dividing both sides by their greatest common divisor (GCD). For example, 8 : 12 has a GCD of 4, so it simplifies to 2 : 3.
Solving equivalent ratios
To find a missing value in A : B = C : D, cross-multiply. If you know three of the four values, the fourth is found by (B × C) ÷ A or the equivalent arrangement.
How to use the ratio calculator
- Pick a mode at the top: Simplify a ratio or Solve A:B = C:D.
- In Simplify mode, enter Term A and Term B. The result appears as soon as both values are valid.
- Read the simplified ratio along with the same ratio written as a decimal (A ÷ B) and as a percentage.
- In Solve mode, enter A, B and C. The calculator returns the missing fourth value D so that A : B = C : D.
- Use the copy or share buttons on the result card to save or send the answer.
What the results mean
- Simplified ratio — both terms divided by their greatest common divisor. If the GCD is 1, as with 16 : 9, the ratio is already in lowest terms and is shown unchanged.
- As decimal (A÷B) — the first term divided by the second, to four decimal places. 3 : 4 gives 0.75.
- As percentage — A expressed as a percentage of B, so 3 : 4 gives 75%. This is not A's share of the total; that would be 3 ÷ (3 + 4) ≈ 42.86%.
- Missing value (D) — calculated as (B × C) ÷ A and shown with up to four decimal places, together with the completed proportion.
Worked examples
- Simplify 18 : 24 — the GCD is 6, so the ratio becomes 3 : 4.
- Screen aspect ratio — 1920 : 1080 simplifies to 16 : 9.
- Scale a recipe — a recipe uses 2 cups of flour to 3 cups of milk. With 8 cups of flour, solve 2 : 3 = 8 : D to get D = 12 cups of milk.
- Read a map — on a 1 : 50,000 map, 3.5 cm of map distance gives 1 : 50000 = 3.5 : D, so D = 175,000 cm, or 1.75 km.
Limitations and tips
- Simplify mode works with whole numbers. Decimal entries are rounded to the nearest whole number before the GCD is found, so 2.5 : 5 is treated as 3 : 5. To simplify decimals exactly, multiply both terms by 10 or 100 first — 2.5 : 5 becomes 25 : 50, which simplifies to 1 : 2.
- Neither term can be zero in Simplify mode, and A cannot be zero in Solve mode, because those cases would require dividing by zero.
- The calculator handles two-term ratios. For a three-part ratio such as 6 : 9 : 15, divide every part by the GCD shared by all of them (3) to get 2 : 3 : 5.
- Order matters: 3 : 4 and 4 : 3 describe different relationships, so keep the terms in the same order on both sides of a proportion.
- All calculations run in your browser and nothing you type is sent to a server.
How the greatest common divisor is found
The calculator uses the Euclidean algorithm. It divides the larger number by the smaller one, replaces the larger number with the remainder, and repeats until the remainder is zero. The last non-zero remainder is the GCD. For 84 : 36, dividing 84 by 36 leaves 12, and dividing 36 by 12 leaves nothing, so the GCD is 12 and the ratio simplifies to 7 : 3. Because each step needs only one division, even very large terms such as 1,048,576 : 786,432 are reduced instantly, in this case to 4 : 3. Negative signs are ignored when the divisor is found.