Arithmetic & Numbers

Ratio Calculator

A ratio compares amounts, such as 12 to 18, written 12 : 18.

Try

Separate the terms (2 to 8) with colons; 1920x1080 also works. Decimals and fractions such as 1.5 or 3/4 are fine.

Result

12 : 18 in simplest form: 2 : 3

12 : 18 in simplest form

2 : 3

Greatest common divisor (GCD)
6
As a fraction (first ÷ second)
2/3 ≈ 0.6667
Unit ratio 1 : n
1 : 1.5
Unit ratio n : 1
0.6667 : 1
Share of the first part2 of 5 equal parts
2/5 = 40.00%
Share of the second part3 of 5 equal parts
3/5 = 60.00%

12 : 18 simplifies to 2 : 3. Every term was divided by 6, so the parts keep the same proportions.

The parts of 2 : 3
0123AmountPart 1 (2): 2Part 1 (2)Part 2 (3): 3Part 2 (3)
Ratios equivalent to 2 : 3
Multiply byEquivalent ratio
12 : 3
24 : 6
36 : 9
48 : 12
510 : 15
1020 : 30
Step-by-step working (2 steps)
  1. Find the greatest common divisor of 12, 18

    gcd(12,18)=6\gcd(12, 18) = 6
  2. Divide every term by 6

    126:186=2:3\tfrac{12}{6} : \tfrac{18}{6} = 2 : 3

To simplify it, divide every term by their greatest common divisor: 12:18=2:312 : 18 = 2 : 3. This ratio calculator also solves proportions like 4 : 7 = x : 21, scales recipes, splits a total, compares two ratios and turns a percentage into a ratio, with every step shown.

By Hira Noor, mathematicianLast reviewed Free, no sign-up, runs in your browserReport a problem

How to use this calculator

  1. Choose what you want to do: simplify, solve a proportion, scale, split a total, compare or convert a percentage.
  2. Type the ratio with colons between the terms, such as 12:18 or 1:2:3. Up to 8 terms, and decimals or fractions such as 1.5 or 3/4 are fine.
  3. To solve a proportion, type it in one line with x for the missing term, such as 4:7 = x:21 (the older form 4:7::x:21 works too).
  4. Read the answer, then the steps panel, which shows the GCD, the cross-multiplication or the value of one part with your numbers filled in.
  5. Set Decimal places for scaled or split amounts. Use Copy or Share to keep the result; a shared link opens with your numbers in place.

Formulas

Simplifying a ratio

a:b=ag:bg,g=gcd(a,b)a : b = \frac{a}{g} : \frac{b}{g}, \quad g = \gcd(a, b)

Plain-text formula: a:b = a/g:b/g, g = gcd(a, b)

a, b
the terms of the ratio (any number of terms works the same way)
g
the greatest common divisor of the terms

Divide every term by the greatest common divisor of all the terms. If a term is a decimal or fraction, first multiply every term by the same number to make them whole: 1.5:2.251.5 : 2.25 becomes 150:225150 : 225, then 2:32 : 3.

Solving a proportion

ab=cd⟺a×d=b×c\frac{a}{b} = \frac{c}{d} \;\Longleftrightarrow\; a \times d = b \times c

Plain-text formula: a/b = c/d ⟺ a × d = b × c

Two ratios are equal when their cross products are equal. For 4:7=x:214 : 7 = x : 21, 7x=4×21=847x = 4 \times 21 = 84, so x=12x = 12.

Splitting a total in a ratio

parti=T×rir1+r2+⋯+rn\text{part}_i = T \times \frac{r_i}{r_1 + r_2 + \cdots + r_n}

Plain-text formula: part_i = T × r_i/(r_1 + r_2 + ⋯ + r_n)

T
the total being shared
r_i
the term for share i

Add the terms to get the number of equal parts, divide the total by that number to get one part, then multiply by each term. 25 in the ratio 3 : 2 is 5 parts of 5, so 15 and 10.

Reading the result

A ratio says how many of one thing there are for each of another. 2 : 3 means 2 parts to 3 parts, so the first amount is 2/5 of the total, not 2/3 of it. The share lines in the result give each part of the whole.

Order matters. 2 : 3 and 3 : 2 are different ratios. Keep the terms in the order the question names them, such as cement : sand : gravel.

A ratio has no units once both terms are in the same unit. Convert first (for example 50 cm : 2 m is 50 : 200 = 1 : 4), or the simplified form will be wrong.

How to simplify a ratio

1. Make every term a whole number. If a term has decimals or is a fraction, multiply every term by the same power of 10 or common denominator. 0.5:1.250.5 : 1.25 becomes 50:12550 : 125.

2. Find the greatest common divisor of all the terms. For 12:1812 : 18 it is 6; for 50:12550 : 125 it is 25.

3. Divide every term by it. 12:18=2:312 : 18 = 2 : 3 and 50:125=2:550 : 125 = 2 : 5. The ratio is in simplest form when the terms share no factor other than 1. The GCD and LCM calculator shows the divisor step on its own.

Ratios in simplest form
RatioGCDSimplest formCheck
12 : 1862 : 3open
1920 : 1080 (screen pixels)12016 : 9open
24 : 36 : 60122 : 3 : 5open
1.5 : 2.253 (of 6 : 9)2 : 3open
1/2 : 3/41 (of 2 : 3)2 : 3open
250 ml : 1000 ml2501 : 4open

How to solve a proportion (find the missing value)

A proportion says two ratios are equal, such as 4:7=x:214 : 7 = x : 21. Write both as fractions and cross-multiply: 4×21=7x4 \times 21 = 7x, so 84=7x84 = 7x and x=12x = 12. Check: 12:2112 : 21 simplifies back to 4:74 : 7.

The unknown can sit in any of the four places. The same rule, a × d = b × c, gives it every time. This is also how you find a missing amount in a recipe, a map scale or a unit price: if 3 kg costs 7.50, then 5 kg costs 7.50×5÷3=12.507.50 \times 5 \div 3 = 12.50.

Worked proportions
ProportionCross-multiplyAnswerCheck
4 : 7 = x : 217x = 84x = 12open
3 : x = 9 : 249x = 72x = 8open
16 : 9 = 1280 : x16x = 11,520x = 720open
2 : 5 = 3 : x2x = 15x = 7.5open
Fuel mix 50 : 1 = 5000 ml : x50x = 5000x = 100 ml of oilopen

How to split a total in a ratio

Add the terms of the ratio to get the number of equal parts, divide the total by that number, then multiply by each term. To share 25 in the ratio 3 : 2: there are 3+2=53 + 2 = 5 parts, one part is 25÷5=525 \div 5 = 5, so the shares are 15 and 10.

This works for any number of terms. A concrete mix of 1 : 2 : 3 (cement : sand : gravel) using 12 buckets in total is 6 parts of 2 buckets: 2 buckets of cement, 4 of sand and 6 of gravel. When the parts do not divide evenly, the calculator rounds each one and says so, so you can put the leftover in the last share.

Totals split in a ratio
Total and ratioOne partSharesCheck
25 in 3 : 2515 and 10open
12 buckets in 1 : 2 : 322, 4 and 6open
900 in 2 : 3 : 4100200, 300 and 400open
100 in 1 : 233.3333.33 and 66.67open

Scaling a ratio: recipes, mixes and screen sizes

To scale a ratio, find the scale factor (the new value divided by the term it replaces) and multiply every term by it. A pancake recipe uses 2 cups of flour to 1.5 cups of milk. With 3 cups of flour the factor is 3÷2=1.53 \div 2 = 1.5, so you need 1.5×1.5=2.251.5 \times 1.5 = 2.25 cups of milk.

The same idea sizes images and screens. A 16 : 9 picture that must be 1280 pixels wide is 1280÷16=801280 \div 16 = 80 times larger, so it is 9×80=7209 \times 80 = 720 pixels tall. Ratios in grams or millilitres scale the same way, as long as every term uses the same unit. Type a screen size as 1920x1080 and simplify mode gives its aspect ratio.

Common screen resolutions and their aspect ratios
Resolution (pixels)GCDAspect ratioCheck
1280 × 720 (HD)8016 : 9open
1920 × 1080 (Full HD)12016 : 9open
3840 × 2160 (4K UHD)24016 : 9open
1080 × 1920 (phone, portrait)1209 : 16open
1440 × 9001808 : 5 (sold as 16 : 10)open
2560 × 1080 (ultrawide)4064 : 27 (sold as 21 : 9)open
1024 × 7682564 : 3open

Ratios, fractions and percentages

A two-part ratio a : b can be read two ways. Part to part compares the two amounts: in a class of 12 girls and 18 boys, girls : boys is 2 : 3. Part to whole compares one amount with the total: girls are 12 out of 30, which is 2 : 5, the fraction 2/5 or 40%.

To turn a percentage into a ratio, write it over 100 and simplify: 75%=75/100=3/475\% = 75/100 = 3/4, so the part-to-whole ratio is 3 : 4 and the part-to-rest ratio is 3 : 1. The fraction calculator and percentage calculator take the result further.

The same comparison written four ways
PercentageFractionPart : wholePart : rest
50%1/21 : 21 : 1
75%3/43 : 43 : 1
40%2/52 : 52 : 3
12.5%1/81 : 81 : 7
20%1/51 : 51 : 4

Which ratio tool do you need?

Search results for "ratio calculator" mix several different jobs. This page covers ratios between quantities: simplifying, proportions, scaling, splitting and comparing. Screen and image aspect ratios such as 16 : 9 are ordinary ratios, so simplify mode turns 1920 × 1080 into 16 : 9 and solve mode finds a missing width or height.

Financial ratios such as debt-to-income (DTI), price-to-earnings or current ratio are one division each, reported as a decimal or percentage rather than simplified. For those, divide the two amounts and use the percentage calculator for the percent form. Bicycle gear ratios are chainring teeth : cog teeth, such as 48 : 16 = 3 : 1, which simplify mode handles directly.

Common ratio mistakes

Each row shows a slip and the correct working.

Common mistakes and the correct working
MistakeWrongRight
Reading a part as a fraction of the other part2 : 3, so the first is 2/3 of the totalThe first is 2/(2 + 3) = 2/5 of the total
Mixing units50 cm : 2 m = 25 : 150 cm : 200 cm = 1 : 4
Adding instead of multiplying to scale2 : 3 with 2 more on each = 4 : 52 : 3 doubled = 4 : 6
Reversing the orderSand : cement 1 : 3 for 3 parts sandKeep the order named: cement : sand = 1 : 3
Dividing by only some terms12 : 18 : 20 = 2 : 3 : 20GCD of all three is 2: 6 : 9 : 10

Worked example

Sharing a cost in a ratio

Three friends share a 900 dollar holiday rental in the ratio of the nights they stay, 2 : 3 : 4. How much does each pay?

  1. Add the terms: 2+3+4=92 + 3 + 4 = 9 parts.
  2. Find one part: 900÷9=100900 \div 9 = 100.
  3. Multiply each term by one part: 2×100=2002 \times 100 = 200, 3×100=3003 \times 100 = 300, 4×100=4004 \times 100 = 400.
  4. Check: 200+300+400=900200 + 300 + 400 = 900, and 200:300:400200 : 300 : 400 simplifies back to 2:3:42 : 3 : 4.

Answer: They pay 200, 300 and 400 dollars.

Frequently asked questions

How do you calculate a ratio?

Write the two amounts in order with a colon between them, then divide both by their greatest common divisor. 12 girls and 18 boys give 12 : 18, and dividing by 6 gives 2 : 3.

How do you calculate the ratio between two numbers?

Put the first number before the colon and the second after it, then simplify. For 45 and 60 the GCD is 15, so the ratio is 3 : 4. Divide the first by the second for a single number: 45 ÷ 60 = 0.75.

How do I find the missing value in a ratio?

Set the two ratios equal and cross-multiply. For 4 : 7 = x : 21, 7x = 4 × 21 = 84, so x = 12. Type it as 4:7 = x:21 in the calculator to see each step.

How do you split an amount in a ratio such as 2:3:5?

Add the terms to get the number of parts (2 + 3 + 5 = 10), divide the amount by 10 to get one part, then multiply by each term. 500 in the ratio 2 : 3 : 5 is 100, 150 and 250.

How do I simplify a ratio with decimals or fractions?

Multiply every term by the same number to make them all whole, then divide by their GCD. 1.5 : 2.25 times 100 is 150 : 225, and dividing by 75 gives 2 : 3. For 1/2 : 3/4, multiply by 4 to get 2 : 3.

How do you convert a percentage to a ratio?

Write the percentage over 100 and simplify. 75% is 75/100 = 3/4, so the part-to-whole ratio is 3 : 4 and the part-to-rest ratio is 3 : 1.

How do I do ratios on a calculator?

Most calculators have no ratio key. Divide the first term by the second to get a decimal (2 ÷ 3 ≈ 0.667), or use a fraction key to reduce a/b to lowest terms, which gives the simplified ratio. This page does both and shows the working.

What is the difference between a ratio and a proportion?

A ratio compares two or more amounts, such as 2 : 3. A proportion is a statement that two ratios are equal, such as 2 : 3 = 8 : 12, which you can solve for a missing term.

Fraction Calculator

Add, subtract, multiply, divide and simplify fractions and mixed numbers, with every step shown.

Arithmetic & Numbers

Percentage Calculator

Percent of a number, what percent, reverse percentages, change, increase, decrease and difference, with steps.

Arithmetic & Numbers

LCM and GCF Calculator

LCM and GCF of up to 10 numbers with steps: multiples, prime factors, Euclid’s algorithm and a coprime check.

Number Theory & Bases

Mixed Number Calculator

Add, subtract, multiply and divide mixed numbers with borrowing shown, and convert to improper fractions.

Arithmetic & Numbers

Percent Change Calculator

Percent change from an old value to a new one, signed as an increase or decrease, with the working shown.

Arithmetic & Numbers

Sources and further reading

  1. Ratios and Proportional Relationships, Grade 6 (6.RP) (opens in a new tab), Common Core State Standards Initiative
  2. Ratios and Rate (Section 5.6, Prealgebra 2e) (opens in a new tab), OpenStax, Rice University
  3. Solve Proportions and their Applications (Section 6.5, Prealgebra 2e) (opens in a new tab), OpenStax, Rice University

Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?