Skip to main content
ponderloop

Ratio Calculator

12 : 18 simplifies to 2 : 3: divide every term by their greatest common divisor, 6. Decimals work too, so 1.5 : 2.5 is 3 : 5. To split a total in a ratio, add the terms and divide the total by that sum: 500 in the ratio 3 : 2 is 300 and 200 (5 parts of 100 each). The same calculator scales a ratio up or down, compares two ratios, and writes a ratio of two to four terms as fractions and percentages, with every step shown.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

Two to four numbers separated by colons, like 12:18, 1.5:2.5 or 2:3:5. Whole numbers and decimals both work.

To solve a : b = c : x for a missing number, use theproportion calculator.

12 : 18 = 2 : 3

2 : 3

12 : 18 simplifies to 2 : 3: every term was scaled by the same amount, so the ratio is unchanged.

Lowest terms
2 : 3
Greatest common divisor
6
First ÷ second
2/3 ≈ 0.6667
Per 1 of the first term
1 : 1.5
Total parts
5
Share of the whole
40% : 60%

The working, step by step

  1. Start with the ratio 12 : 18.
  2. Find the greatest common divisor: GCD(12, 18) = 6. Divide every term by 6: 12 ÷ 6 = 2; 18 ÷ 6 = 3.
  3. The simplified ratio is 2 : 3.

Common ratios in lowest terms, as fractions and percentages

Each row is the calculator: the ratio is simplified, then every term is written as a fraction of the sum of the terms and as a percentage.
RatioLowest termsFractions of the wholePercentages
12 : 182 : 32/5, 3/540%, 60%
10 : 152 : 32/5, 3/540%, 60%
4 : 62 : 32/5, 3/540%, 60%
6 : 83 : 43/7, 4/7≈ 42.8571%, ≈ 57.1429%
25 : 1001 : 41/5, 4/520%, 80%
50 : 752 : 32/5, 3/540%, 60%
1.5 : 2.53 : 53/8, 5/837.5%, 62.5%
0.2 : 0.81 : 41/5, 4/520%, 80%
8 : 12 : 202 : 3 : 51/5, 3/10, 1/220%, 30%, 50%
2 : 3 : 52 : 3 : 51/5, 3/10, 1/220%, 30%, 50%
1 : 1 : 21 : 1 : 21/4, 1/4, 1/225%, 25%, 50%
3 : 1 : 13 : 1 : 13/5, 1/5, 1/560%, 20%, 20%

Splitting a total in a ratio

The exact shares can be fractions or decimals. When the units cannot be cut, each share is rounded down and the leftover units go to the largest remainders (the earlier term wins a tie), so the shares still add up to the total.
Total and ratioExact sharesWhole units
500 in 3 : 2300 and 200300 and 200
50 in 1 : 125 and 2525 and 25
100 in 2 : 340 and 6040 and 60
60 in 1 : 2 : 310, 20 and 3010, 20 and 30
1000 in 5 : 3 : 2500, 300 and 200500, 300 and 200
100 in 1 : 2≈ 33.3333 and ≈ 66.666733 and 67
100 in 1 : 1 : 1≈ 33.3333, ≈ 33.3333 and ≈ 33.333334, 33 and 33
10 in 1 : 1 : 1≈ 3.3333, ≈ 3.3333 and ≈ 3.33334, 3 and 3
7 in 1 : 13.5 and 3.54 and 3

Mix ratios as plain ratios

Examples of the arithmetic only, not recommended mixes: follow the maker’s instructions for anything where strength or safety matters. The amounts are the total shared out in the ratio.
MixRatioTotalAmountsPercentages
Concrete: cement : sand : gravel, by volume1 : 2 : 360 litres10, 20 and 30 litres≈ 16.6667%, ≈ 33.3333%, 50%
Salad dressing: oil : vinegar3 : 1200 ml150 and 50 ml75%, 25%
Cordial: concentrate : water1 : 4750 ml150 and 600 ml20%, 80%
Cleaning dilution: concentrate : water1 : 101100 ml100 and 1,000 ml≈ 9.0909%, ≈ 90.9091%
Trail mix: nuts : raisins : chocolate chips2 : 1 : 1400 g200, 100 and 100 g50%, 25%, 25%

Screen and image sizes as ratios

A width and a height are a two-term ratio. To resize to a target shape and find the missing side, use the aspect ratio calculator.
Width : heightLowest termsWidth ÷ height
1920 : 108016 : 916/9 ≈ 1.7778
1280 : 72016 : 916/9 ≈ 1.7778
3840 : 216016 : 916/9 ≈ 1.7778
1600 : 90016 : 916/9 ≈ 1.7778
1024 : 7684 : 34/3 ≈ 1.3333
800 : 6004 : 34/3 ≈ 1.3333
1280 : 10245 : 45/4 = 1.25
2560 : 108064 : 2764/27 ≈ 2.3704
1080 : 13504 : 54/5 = 0.8
1080 : 19209 : 169/16 = 0.5625

Scaling a ratio up and down

Every term is multiplied by the same factor, so the lowest terms never change.
RatioScale byScaled ratioLowest terms
2 : 3× 48 : 122 : 3
12 : 18× 0.56 : 92 : 3
3 : 5× 2.57.5 : 12.53 : 5
4 : 6× 1/22 : 32 : 3
1 : 2 : 3× 1010 : 20 : 301 : 2 : 3
5 : 8first term = 2020 : 325 : 8
2 : 3 : 5third term = 2510 : 15 : 252 : 3 : 5

Comparing two ratios

Two ratios are equal when they have the same lowest terms.
Ratio ARatio BLowest terms (A and B)Result
3 : 49 : 123 : 4 and 3 : 4Equal ratios
2 : 33 : 52 : 3 and 3 : 5Not equal
5 : 77 : 105 : 7 and 7 : 10Not equal
0.5 : 1.51 : 31 : 3 and 1 : 3Equal ratios
1 : 2 : 32 : 4 : 61 : 2 : 3 and 1 : 2 : 3Equal ratios
1 : 2 : 33 : 2 : 11 : 2 : 3 and 3 : 2 : 1Not equal

How to simplify a ratio

  1. Write the ratio. Put the terms in order with colons between them, like 12 : 18. Two to four terms, whole numbers or decimals.
  2. Clear any decimals. If a term is a decimal, multiply every term by the same power of 10, or by the least common multiple of the denominators, until all are whole: 1.5 : 2.5 multiplied by 2 is 3 : 5.
  3. Find the greatest common divisor. The greatest common divisor is the largest whole number that divides every term. For 12 and 18 it is 6.
  4. Divide every term by it. 12 ÷ 6 and 18 ÷ 6 give 2 : 3.
  5. Check the result. Multiplying 2 : 3 by 6 gets back to 12 : 18, so nothing changed but the size of the numbers. To share a total, add the terms (5) and divide.

Frequently asked questions

What is a ratio?
A ratio compares quantities of the same kind by size, written with colons: 12 : 18 says there are 12 of one thing for every 18 of another. Only the relationship matters, so 12 : 18 and 2 : 3 describe the same comparison. A ratio can have two terms or more, such as 8 : 12 : 20 = 2 : 3 : 5.
What is the difference between a ratio, a fraction and a proportion?
A ratio compares parts to parts (2 : 3 is two parts of one to three of the other). A fraction compares a part to the whole: in the ratio 2 : 3 the first term is 2/5 of the whole, which is 40%. A proportion is a statement that two ratios are equal, like 3 : 4 = 9 : 12; solve for a missing number in one with the proportion calculator.
How do you simplify a ratio?
Divide every term by their greatest common divisor. The greatest common divisor of 12 and 18 is 6, so 12 : 18 = 2 : 3. If a term is already 1, or the terms share no factor, the ratio is already in lowest terms.
How do you simplify a ratio with decimals?
Multiply every term by the same number until all are whole, then divide by the greatest common divisor. For 1.5 : 2.5, multiplying by 2 gives 3 : 5, which has no common factor, so 1.5 : 2.5 = 3 : 5. The calculator reads decimals as exact fractions, so nothing is rounded along the way.
How do you split a total in a ratio?
Add the terms, divide the total by that sum to get the size of one part, then multiply each term by one part. For 500 in the ratio 3 : 2 there are 5 parts, one part is 100, and the shares are 300 and 200. Splitting 60 in 1 : 2 : 3 gives 10, 20 and 30.
What if the total does not divide evenly?
The exact shares are fractions: 100 in 1 : 1 : 1 is ≈ 33.3333, ≈ 33.3333 and ≈ 33.3333 when decimals are allowed. If the units cannot be cut, choose whole units: each share is rounded down and the leftover units go to the shares with the largest remainders, so 100 in 1 : 1 : 1 becomes 34, 33 and 33 and still adds up to 100. The earlier term wins a tie.
How do three-term ratios work?
The same way as two-term ones. Divide all three terms by their greatest common divisor (8 : 12 : 20 becomes 2 : 3 : 5), and to split a total add all three terms: 2 : 3 : 5 has 10 parts, so the shares of the whole are 20%, 30%, 50%. The calculator accepts up to four terms.
How do you scale a ratio up or down?
Multiply every term by the same number. Scaling 2 : 3 by 4 gives 8 : 12, and scaling 12 : 18 by 1/2 gives 6 : 9. To scale to a target, say the first term of 5 : 8 must be 20, divide the target by that term (20 ÷ 5 = 4) and multiply the other terms by the same factor: 20 : 32.
How do I know if two ratios are equal?
Put both in lowest terms: equal ratios reduce to the same numbers. 3 : 4 and 9 : 12 both reduce to 3 : 4, so they are equal ratios. For two terms you can also cross-multiply: 3 × 12 = 36 and 4 × 9 = 36. In contrast 3 : 4 and 2 : 3 give 9 and 8, which differ.
How do I turn a ratio into a percentage or a fraction?
Divide each term by the sum of all the terms. For 2 : 3 the sum is 5, so the terms are 2/5, 3/5 of the whole, which is 40%, 60%. A ratio like 1 : 2 gives 1/3, 2/3, shown as ≈ 33.3333%, ≈ 66.6667% because the thirds repeat. Do not confuse this with one term as a percent of the other: in 2 : 3 the first is ≈ 66.6667% of the second.
Does the order of the terms matter?
Yes. 3 : 2 and 2 : 3 are different ratios: sharing 500 in 3 : 2 gives 300 and 200, while 2 : 3 gives 200 and 300. Keep the terms in the order of the things they describe.
Can a term be a decimal, or can the total have decimals?
Yes to both. A ratio like 0.25 : 0.75 : 1 simplifies to 1 : 3 : 4, and a total of 7.5 shared in 5 : 3 gives 4.6875 and 2.8125. Whole-unit sharing needs a whole-number total, and ratio terms cannot be negative.
How is this different from the proportion calculator?
The proportion calculator solves a : b = c : x for a missing number by cross-multiplying. This one works on a single ratio, or two when comparing: it simplifies, scales, compares, converts to fractions and percentages, and splits a total, including whole-unit splits with the leftover handled.

How it works

Every term you type is read as an exact fraction of two whole numbers (decimals become digits over a power of 10), and all arithmetic is done on those fractions, so nothing is rounded until a number is written out; a rounded number is marked with “≈”. To simplify, every term is multiplied by the least common multiple of the denominators so that all are whole numbers, then divided by their greatest common divisor, found with Euclid’s algorithm. To scale, every term is multiplied by one factor, which is either the number you give or the target value divided by the chosen term. Two ratios with the same number of terms are equal when their lowest terms are the same; for two terms the cross products are shown as well. The fraction of the whole for each term is the term divided by the sum of the terms in lowest terms, and the percentage is that fraction times 100. To split a total, it is divided by the sum of the lowest-terms ratio to get one part, and each share is its term times one part. For whole units, each share is rounded down and the leftover units, always fewer than the number of terms, are given one each to the largest fractional remainders, with ties going to the earlier term (the largest-remainder method), so the shares always add up to the total. Terms must be 0 or more and not all 0. Everything runs in your browser and nothing you type is sent anywhere.

Sources

More: Percent, fractions and arithmeticAll math & numbersAll toolsHome & DIY calculators