Math & Basic

Ratio Calculator

Ratios and proportional splits of two values.

Auto-calculates as you type

① Simplify to the lowest ratio

Simplest ratio

2 : 3

What is the Ratio Calculator?

A ratio compares two values in the form A:B. This tool simplifies a ratio to its lowest integer form and solves the unknown x in a proportion A:B = C:x.

How to use it

Section ① reduces two values to the simplest integer ratio using their GCD. Section ② keeps the same ratio as A:B and solves for x given C — useful for scaling recipes, map scales, and aspect ratios.

Formulas
Ratio formulas
TypeFormulaExample
Simplest ratioA÷gcd(A,B) : B÷gcd(A,B)12:18 → 2:3
Proportionx = B×C ÷ A2:3=10:x → x=15
Where Ratios Show Up — Scaling Recipes, Map Scales, and Screen Aspect Ratios

Say a recipe for 2 servings calls for 100g sugar to 300g flour, and you want to scale it to 5 servings. Reducing 100:300 by their GCD of 100 first reveals the underlying ratio, 1:3. The serving multiplier is 5 ÷ 2 = 2.5, so scaling both amounts by 2.5 gives 250g sugar and 750g flour — reduce 250:750 and you get 1:3 again, so the original ratio is preserved. Simply adding a flat amount to both ingredients, or scaling only one of them, breaks the ratio; you must multiply the original ratio by the same factor.

Maps rely on ratios too. A map at scale 1:50,000 means 1cm on the map equals 50,000cm (500m) in reality. Entering A=1, B=50000, C=2 into this calculator's ② Proportion tab returns x=100,000cm, i.e. 1km — so a 2cm distance measured on the map is actually 1km on the ground.

The familiar 16:9 screen aspect ratio is another example. Reducing the common Full HD resolution 1920×1080 by its GCD of 120 gives 16:9 (1920÷120=16, 1080÷120=9) — the exact reduction behind the term "widescreen 16:9" used for TVs, monitors, and video editing.

Outer and Inner Terms — the Mistake of Multiplying the Wrong Pair

In a proportion A:B = C:D, A and D (the outermost values) are called the outer terms, and B and C (the innermost values) are the inner terms. Because the product of the outer terms always equals the product of the inner terms (A×D = B×C), you can solve for an unknown — but pairing the wrong two numbers gives a completely different answer.

Take 2:3 = 6:9: the outer terms are 2 and 9, and the inner terms are 3 and 6. Multiplying correctly, outer × outer gives 2×9=18 and inner × inner gives 3×6=18 — they match. But mixing them up — multiplying the two numbers on the same side, 2×6=12 and 3×9=27 — gives mismatched values that make the proportion look broken. Always multiply diagonally (outer with outer, inner with inner) to avoid this error.

How do I simplify a ratio to the lowest integers?
Divide both numbers by their greatest common divisor (GCD). For example, 12:18 has a GCD of 6, so it simplifies to 2:3.
What is a proportion?
A proportion is an equation stating two ratios are equal, A:B = C:D. The cross-multiplication property (A×D = B×C) lets you solve for an unknown value.
Can I enter decimal values for ratios?
Yes. Decimal inputs are scaled to integers by multiplying by a power of 10 based on their decimal places, then reduced by GCD — so both whole numbers and decimals produce an integer ratio.
How do I scale a recipe's ingredient ratio for a different number of servings?
Reduce the original ratio to its lowest terms, then multiply each ingredient by the target servings divided by the original servings. Scaling a 2-serving recipe of 100g sugar : 300g flour (1:3) to 5 servings means multiplying by 5÷2=2.5, giving 250g sugar and 750g flour.
Why does mixing up outer and inner terms change the answer?
In a proportion A:B=C:D, the product of the outer terms (A,D) always equals the product of the inner terms (B,C). For 2:3=6:9, outer product 2×9=18 matches inner product 3×6=18 — but pairing the wrong numbers on the same side, like 2×6 and 3×9, gives mismatched values (12 and 27) that make the proportion look invalid.