🧮
🧮 Math & statistics

Ratio Calculator (simplify & scale A:B)

Results update as you type.

Your numbers

Understanding the ratio calculator — concept and principle

A ratio A : B compares two quantities by division: it says how many times one quantity contains the other, regardless of their actual size. It is used to simplify mixing proportions, compare group sizes, check aspect ratios and scale a plan while keeping its shape.

Ratio 12 : 18 shown as six groups of 2 : 3Twelve gold and eighteen blue dots split into six identical groups of two gold and three blue; A is 40% of the total; 1 : 1.5 and 10 : 15 are the same ratio.12 : 18 is six groups of 2 : 312 gold : 18 blue ÷ 6 (GCD) → 2 : 3A 40%B 60%1 : 1.5divide both by 1210 : 15both × 10/12
Dividing both terms by the GCD (6) leaves one group: 2 : 3.

How it is calculated

The inputs have no units, but A and B must be measured in the same unit (both grams, both people, both centimetres).

The principle

A ratio stays the same when both terms are multiplied or divided by the same non-zero number, because the quotient A ÷ B does not change. That is why 12 : 18, 6 : 9 and 2 : 3 are equivalent. Dividing by the GCD removes every common factor at once, so the result is the unique form with whole numbers that share no factor except 1. Scaling uses the same rule in the other direction: choose the multiplier that turns A into the target and apply it to B as well.

Worked example

  1. Inputs: A = 12, B = 18, scale A to k = 10.
  2. GCD(12, 18) = 6, so 12 ÷ 6 = 2 and 18 ÷ 6 = 3. Simplified ratio: 2 : 3.
  3. As 1 : x: 18 ÷ 12 = 1.5, so 1 : 1.5.
  4. Scaled: multiplier 10 ÷ 12, so B becomes 18 × 10 ÷ 12 = 15, giving 10 : 15.
  5. Share of A: 12 ÷ (12 + 18) × 100 = 12 ÷ 30 × 100 = 40%.

How to read the result

1 : 1.5 says B is one and a half times A. The percentage view is often easier to communicate: 2 : 3 means A is 40% and B is 60% of the total. When comparing two ratios, convert both to the 1 : x form or to percentages so they share a common basis.

Common mistakes

Keep in mind: Scaling a ratio assumes the relationship is strictly proportional. Real recipes, chemical mixtures and structural drawings may not scale linearly (baking times, reaction rates, material strength), so check the domain rules before relying on a scaled amount.

Frequently asked questions

How do I simplify a ratio with decimals, such as 1.5 : 2.5?

Multiply both terms by a power of 10 to clear the decimals (15 : 25), then divide by the GCD (5) to get 3 : 5.

Can a ratio have more than two terms?

Yes. A : B : C works the same way: divide all terms by their common GCD, for example 4 : 6 : 10 becomes 2 : 3 : 5.

How do I split an amount in a given ratio?

Add the terms to get the number of parts, divide the amount by that number, then multiply by each term. 100 split 2 : 3 is 40 and 60.

Sources: Euclid, Elements, Book V (theory of proportion) and Book VII, Proposition 2 (finding the greatest common measure) · G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, Oxford University Press

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

</> Add this calculator to your website (free)

Copy this code into your blog or site. It is free to use; please keep the credit link.

Preview
🧮 All math & statistics tools →🌍 Calculators by country →