What is a ratio?
A ratio compares two quantities by showing how many parts of one there are for each part of the other. A ratio of 12 to 18 means for every 12 of the first thing there are 18 of the second. Written as 12 : 18, it looks clumsy — and it is, because the same relationship can be written more simply as 2 : 3. That is what this calculator does: it reduces any ratio to its simplest form and shows each part as a percentage share.
Ratios are everywhere once you start looking. A recipe that mixes rice and water 2 : 3, a classroom with 12 boys and 18 girls, a paint colour made of 2 parts blue to 3 parts white — all of these are ratios. They describe proportions, not amounts: 2 : 3 could be 2 cups to 3 cups, or 200 grams to 300 grams. The ratio stays the same while the amounts scale up and down.
This calculator takes two numbers and gives you the simplified ratio, plus each part as a percentage of the total. For 12 and 18, the simplified ratio is 2 : 3, the first part is 40% of the total, and the second part is 60%. Everything runs in your browser, with no sign-up and nothing uploaded.
How a ratio calculator works
Simplifying a ratio means dividing both parts by their greatest common divisor — the biggest number that divides both evenly. For 12 and 18, the greatest common divisor is 6. Divide both by 6 and 12 : 18 becomes 2 : 3. The relationship is unchanged, because both parts were scaled by the same factor, but the numbers are now as small as they can be.
Finding the greatest common divisor is done with Euclid’s method, which is older than most of mathematics: divide the bigger number by the smaller, take the remainder, and repeat until the remainder is zero. For 12 and 18, 18 ÷ 12 leaves 6, then 12 ÷ 6 leaves 0, so 6 is the divisor. The calculator runs this in a blink, even for numbers in the millions.
The percentage shares come from the total. Add the parts — 12 + 18 = 30 — then divide each part by the total and multiply by 100. The first part is 12 ÷ 30 × 100 = 40%, and the second is 18 ÷ 30 × 100 = 60%. Those two percentages always add up to 100, which is a handy check: if they do not, something was typed wrong.
Ratios, fractions, and percentages: three views of one idea
A ratio, a fraction, and a percentage are three ways of saying the same thing. The ratio 2 : 3 means the first part is 2/5 of the total — the fraction 2/5 — which is 40%. The second part is 3/5, or 60%. If you can switch between the three forms, you can use whichever tool fits the question: ratios for mixing, fractions for exact maths, percentages for comparing.
The conversion is simple. To turn a ratio a : b into a fraction of the total, put a over a + b. For 2 : 3, that is 2/5 and 3/5. To turn it into a percentage, multiply by 100: 40% and 60%. To go the other way, a percentage of 40% means 40 parts out of 100, which simplifies to the ratio 2 : 3. A percentage calculator handles the percentage side of this switch.
This matters because different jobs prefer different forms. A cook thinks in ratios (2 parts rice to 3 parts water). A student thinks in fractions (2/5 of the marks). A shopkeeper thinks in percentages (40% off). They are the same numbers wearing different clothes, and the calculator shows two of the three forms at once so you never have to convert by hand.
A worked example: 12 : 18, 25 : 75, and 8 : 8
Start with the default: 12 and 18. The greatest common divisor is 6, so divide both by 6 and the ratio is 2 : 3. The total is 30, so the first share is 12 ÷ 30 = 40% and the second is 18 ÷ 30 = 60%. If this were a class of 12 boys and 18 girls, 40% of the class would be boys and 60% girls — and the simplified ratio 2 : 3 says the same thing in fewer digits.
Next, 25 and 75. The greatest common divisor is 25, so the ratio simplifies to 1 : 3. The total is 100, so the shares are 25% and 75% — unusually clean numbers, because the total happened to be 100. A ratio of 1 : 3 means the second part is three times the first, which is a pattern worth recognising: 1 : 2 means double, 1 : 3 means triple, 1 : 4 means four times.
Last, 8 and 8. The greatest common divisor is 8, so the ratio is 1 : 1 — equal parts. The total is 16, so each share is 50%. A 1 : 1 ratio is the simplest of all, and it shows up whenever something is split evenly: half and half, fifty-fifty. If your ratio ever simplifies to 1 : 1, the two parts were equal all along.
Where ratios do real work
Cooking is the most familiar use. A rice-to-water ratio of 1 : 2 works for one cup or ten — scale the amounts, keep the ratio. A cake recipe in ratio form can be doubled or halved without rewriting anything, which is why professional bakers write recipes as ratios rather than fixed weights. Get the ratio right and the dish works at any size.
Money uses ratios constantly. A debt-to-income ratio, a profit split between partners, a portfolio divided 60 : 40 between equity and debt — all of these are ratios. Two business partners who put in 12,000 and 18,000 rupees split profits 2 : 3, which is 40% and 60%. A salary calculator uses the same split logic when it breaks a pay packet into basic pay, HRA, and allowances.
Maps, models, and screens run on ratios too. A scale of 1 : 50 means one centimetre on the drawing is 50 centimetres in real life. A phone screen with an aspect ratio of 16 : 9 is 16 units wide for every 9 tall. A length converter changes the units; a ratio keeps the shape. Whenever the question is about proportion rather than size, the ratio is the right tool.
Ratio calculator vs working it out by hand
For small numbers, simplifying by hand is easy: 12 : 18 is 2 : 3 because both divide by 6, and most people can spot that. The calculator earns its keep on the awkward pairs — 1,847 : 3,920, or 576 : 1,024 — where the greatest common divisor is not obvious and long division would take minutes. It also never slips a digit, which hand division does at exactly the wrong moment.
One useful hand trick is to divide by small primes in turn: if both numbers are even, halve them; if both end in 0 or 5, divide by 5; if both digits sum to a multiple of 3, divide by 3. For 12 : 18, halving gives 6 : 9, and dividing by 3 gives 2 : 3. Repeating small steps beats hunting for the biggest divisor in one go.
For scaling a ratio up — the opposite job — multiply both parts by the same number. A recipe at 2 : 3 for 5 people becomes 4 : 6 for 10 people, which is the same ratio written bigger. And if you need the total split into actual amounts, work out one part first: in a 2 : 3 split of 150 rupees, one part is 150 ÷ 5 = 30, so the shares are 60 and 90.
Common ratio mistakes
The first mistake is adding ratios. A 2 : 3 mix plus a 2 : 3 mix is still 2 : 3, not 4 : 6 — well, 4 : 6 is the same ratio, but the point is that ratios do not add like numbers. Mixing two batches of the same ratio gives the same ratio, just more of it. Adding the parts only makes sense when the totals are the same size.
The second mistake is reading the ratio backwards. In 2 : 3, the first number belongs to the first thing named, and swapping them gives 3 : 2 — a different mixture entirely. A recipe that says “rice to water 2 : 3” is not the same as “water to rice 2 : 3”. Always check which quantity the question lists first.
The third mistake is confusing a ratio with a fraction of the total. In a 2 : 3 ratio, the first part is 2/5 of the total, not 2/3. The fraction 2/3 would mean 2 parts out of 3 total, which is a different split. The denominator of the fraction is the sum of the ratio parts — 5, not 3 — and forgetting that is the classic ratio error.
The fourth mistake is simplifying only one side. Dividing 12 by 6 but leaving 18 alone gives 2 : 18, which is wrong and looks plausible. Whatever you do to one part, do to the other. The calculator divides both by the same divisor, which is the whole point of the operation.
How to use this ratio calculator
Type the first part into the A box and the second part into the B box — 12 and 18, or whatever your numbers are. The simplified ratio appears instantly, with each part shown as a percentage of the total underneath. There is nothing else to set and no button to press.
If your ratio has more than two parts, simplify it in pairs: take the first two numbers, find their common divisor, then check the third against the result. This calculator handles two parts, which covers the recipes, splits, and mixtures that come up most often.
Everything runs in your browser. No account, no form, no data sent anywhere — the numbers you type never leave your device. Use it for recipes, profit splits, mixtures, or class counts, and pair it with the percentage calculator linked above whenever you need the same split as a share of a hundred. Ratios scale anything — in the kitchen, our recipe scaler scales a recipe from one serving count to another by the same ratio. The best-known ratio in the kitchen is coffee to water — our coffee ratio calculator works out the water for your grams of coffee at 1:15, 1:16 or 1:17.