← All blog posts

Ratio Calculator formula — how it actually works

WhiteUI · A plain-English guide to the Ratio Calculator

The Ratio Calculator uses two short formulas. The first simplifies the ratio; the second splits a total by it. Both are simple division, and both are worth knowing, because they let you check the calculator's answer by hand.

Formula 1 — simplify with the greatest common divisor

Find the greatest common divisor (GCD) — the largest whole number that divides both parts exactly — and divide both parts by it. For 15 and 25, the GCD is 5: work it out by repeated division, 25 ÷ 15 leaves 10, 15 ÷ 10 leaves 5, and 10 ÷ 5 leaves 0, so the last divisor, 5, is the GCD. Then 15 ÷ 5 = 3 and 25 ÷ 5 = 5, so 15:25 simplifies to 3:5.

Simplified ratio = (first ÷ GCD) : (second ÷ GCD)
15:25 → (15 ÷ 5) : (25 ÷ 5) = 3:5

Formula 2 — split a total

Each share is the total multiplied by its part, divided by the sum of the parts. Splitting ₹8,000 in the ratio 3:5: the parts add to 8, so one part is worth ₹8,000 ÷ 8 = ₹1,000. The first share is 3 × ₹1,000 = ₹3,000 and the second is 5 × ₹1,000 = ₹5,000.

First share = total × first ÷ (first + second)
Second share = total × second ÷ (first + second)
₹8,000 in 3:5 → ₹3,000 and ₹5,000

At a glance

15:25 is the same split as 3:515 : 25 — before simplifying3 : 5 — after dividing both parts by 5

Dividing both parts of 15:25 by 5 gives 3:5 — the same split, written smaller.

The mistake to avoid

Dividing only one part by the GCD. Take 15:25 and divide just the 15 by 5, and you get 3:25 — a different ratio, with a different split. The rule is strict: whatever you do to one part, do to the other, or the proportion changes.

Two ways to find the GCD — which one to use?

There are two ways to find the greatest common divisor, and they suit different numbers. Listing the factors works well when the numbers are small: the factors of 15 are 1, 3, 5 and 15, and the factors of 25 are 1, 5 and 25, so the largest they share is 5. It is plain to see, but it gets slow fast — listing every factor of 180 is a chore nobody enjoys.

Repeated division, the method in the first formula above, scales better. Take 48 and 180: 180 ÷ 48 leaves 36, 48 ÷ 36 leaves 12, and 36 ÷ 12 leaves 0, so the last divisor, 12, is the GCD. Then 48 ÷ 12 = 4 and 180 ÷ 12 = 15, so 48:180 simplifies to 4:15. The same answer comes out of either method, so use listing for numbers under 30 and repeated division for anything bigger — and use the calculator when you want the answer without the working.

What to check in your own working

Three checks keep the two formulas honest. First, whatever you do to one part, do to the other: dividing only the 15 in 15:25 by 5 gives 3:25, a different ratio entirely. Second, check that the simplified ratio divides back — 4:15 times 12 gives 48:180, the ratio you started with. Third, check every split by adding the shares: split ₹9,500 in the ratio 4:15 and the parts add to 19, so each part is ₹9,500 ÷ 19 = ₹500, and the shares are 4 × ₹500 = ₹2,000 and 15 × ₹500 = ₹7,500, which add to exactly ₹9,500.

If the shares do not add up, the usual cause is a part counted wrong — the parts of 4:15 add to 19, not 15. Add the parts first, divide second, multiply last, and the formula does the rest.

Frequently asked questions

What is the GCD?

The greatest common divisor: the largest whole number that divides both parts exactly. For 15 and 25 it is 5.

What if the parts have no common divisor except 1?

Then the ratio is already in its simplest form. 3:5 cannot be simplified further.

How do I split a total by hand?

Add the parts, divide the total by that sum to get one part's value, then multiply. ₹8,000 in 3:5 means 8 parts at ₹1,000 each.

Why does the calculator show a decimal ratio too?

As a decimal, 3:2 is 1.5 to 1. It is the same ratio written another way, handy when you need to multiply by it.

More guides on the Ratio Calculator

Try it yourself

A free calculator that simplifies a ratio to lowest terms and splits a total amount by it.

Open the Ratio Calculator