Fraction Calculator
Add, subtract, multiply, divide and simplify fractions and mixed numbers, with every step shown.
12 : 18 in simplest form
2 : 3
12 : 18 simplifies to 2 : 3. Every term was divided by 6, so the parts keep the same proportions.
| Multiply by | Equivalent ratio |
|---|---|
| 1 | 2 : 3 |
| 2 | 4 : 6 |
| 3 | 6 : 9 |
| 4 | 8 : 12 |
| 5 | 10 : 15 |
| 10 | 20 : 30 |
Find the greatest common divisor of 12, 18
Divide every term by 6
To simplify it, divide every term by their greatest common divisor: . 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.
Simplifying a ratio
Plain-text formula: a:b = a/g:b/g, g = gcd(a, b)
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: becomes , then .
Solving a proportion
Plain-text formula: a/b = c/d ⟺ a × d = b × c
Two ratios are equal when their cross products are equal. For , , so .
Splitting a total in a ratio
Plain-text formula: part_i = T × r_i/(r_1 + r_2 + ⋯ + r_n)
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.
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.
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. becomes .
2. Find the greatest common divisor of all the terms. For it is 6; for it is 25.
3. Divide every term by it. and . 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.
A proportion says two ratios are equal, such as . Write both as fractions and cross-multiply: , so and . Check: simplifies back to .
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 .
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 parts, one part is , 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.
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 , so you need cups of milk.
The same idea sizes images and screens. A 16 : 9 picture that must be 1280 pixels wide is times larger, so it is 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.
| Resolution (pixels) | GCD | Aspect ratio | Check |
|---|---|---|---|
| 1280 × 720 (HD) | 80 | 16 : 9 | open |
| 1920 × 1080 (Full HD) | 120 | 16 : 9 | open |
| 3840 × 2160 (4K UHD) | 240 | 16 : 9 | open |
| 1080 × 1920 (phone, portrait) | 120 | 9 : 16 | open |
| 1440 × 900 | 180 | 8 : 5 (sold as 16 : 10) | open |
| 2560 × 1080 (ultrawide) | 40 | 64 : 27 (sold as 21 : 9) | open |
| 1024 × 768 | 256 | 4 : 3 | open |
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: , 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.
| Percentage | Fraction | Part : whole | Part : rest |
|---|---|---|---|
| 50% | 1/2 | 1 : 2 | 1 : 1 |
| 75% | 3/4 | 3 : 4 | 3 : 1 |
| 40% | 2/5 | 2 : 5 | 2 : 3 |
| 12.5% | 1/8 | 1 : 8 | 1 : 7 |
| 20% | 1/5 | 1 : 5 | 1 : 4 |
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.
Each row shows a slip and the correct working.
| Mistake | Wrong | Right |
|---|---|---|
| Reading a part as a fraction of the other part | 2 : 3, so the first is 2/3 of the total | The first is 2/(2 + 3) = 2/5 of the total |
| Mixing units | 50 cm : 2 m = 25 : 1 | 50 cm : 200 cm = 1 : 4 |
| Adding instead of multiplying to scale | 2 : 3 with 2 more on each = 4 : 5 | 2 : 3 doubled = 4 : 6 |
| Reversing the order | Sand : cement 1 : 3 for 3 parts sand | Keep the order named: cement : sand = 1 : 3 |
| Dividing by only some terms | 12 : 18 : 20 = 2 : 3 : 20 | GCD of all three is 2: 6 : 9 : 10 |
Three friends share a 900 dollar holiday rental in the ratio of the nights they stay, 2 : 3 : 4. How much does each pay?
Answer: They pay 200, 300 and 400 dollars.
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.
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.
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.
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.
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.
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.
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.
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.
Add, subtract, multiply, divide and simplify fractions and mixed numbers, with every step shown.
Percent of a number, what percent, reverse percentages, change, increase, decrease and difference, with steps.
LCM and GCF of up to 10 numbers with steps: multiples, prime factors, Euclid’s algorithm and a coprime check.
Add, subtract, multiply and divide mixed numbers with borrowing shown, and convert to improper fractions.
Percent change from an old value to a new one, signed as an increase or decrease, with the working shown.
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?