Ratio Calculator
This ratio calculator solves proportions of the form A : B = C : D. Fill in any three of the four boxes and the fourth is solved for you as you type, with no button to press. A second mode, Split a total, shares an amount between the two parts of a ratio. Use it to scale a recipe, resize an image to new dimensions, work out a missing side or divide a bill. Decimals and negative numbers are accepted, and everything runs in your browser, so nothing you type is uploaded.
How to use the ratio calculator
- Choose a mode in Calculation type: Find missing value (the default) or Split a total.
- In Find missing value, type numbers into any three of the boxes A, B, C and D. The boxes read as A : B = C : D.
- The empty box fills in with the answer, highlighted. It updates as you edit any of the three numbers.
- To solve for a different box, clear it and fill in the one that held the answer. The note under the boxes tells you what is expected.
A and B hold the ratio you know. C and D hold the second ratio. Keep the same kind of quantity in A and C, and the other in B and D: if A is flour, C is flour as well.
Find the missing value in a ratio
The calculator cross-multiplies. Whichever box is empty is solved from the other three:
| Empty box | Formula | Example |
|---|---|---|
| A | C × B ÷ D | ? : 4 = 9 : 12 gives A = 3 |
| B | A × D ÷ C | 3 : ? = 9 : 12 gives B = 4 |
| C | A × D ÷ B | 3 : 4 = ? : 12 gives C = 9 |
| D | B × C ÷ A | 3 : 4 = 9 : ? gives D = 12 |
The answer is rounded to 4 decimal places and shown as a plain number. For 3 : 7 = 5 : ? the answer is 11.6667. The decimal separator follows the language of the page, so type the mark your keyboard layout uses.
Examples: scaling an image or a recipe
- Image dimensions. A 16 : 9 picture that must be 1280 wide: enter 16 in A, 9 in B and 1280 in C. D shows 720, the matching height.
- Recipe. 2 cups of flour to 3 cups of water, and you want to use 10 cups of flour: enter 2, 3 and 10 in A, B and C. D shows 15 cups of water.
- Missing first number. To find A in ? : 4 = 9 : 12, leave A empty and fill in B, C and D. A shows 3.
- Negative values. -2 : 4 = 3 : ? gives -6.
If you type into the highlighted box, your number replaces the computed one and counts as a value you entered. With all four boxes filled the note reads All four boxes are filled. Clear one to solve for it.
Split a total by a ratio
Select Split a total to share an amount between two parts. A and B, the ratio, stay in place when you switch modes. Enter the amount in Total, and the two result cells Share for A and Share for B fill in as you type. Each share is the total times its part, divided by A + B.
| Ratio A : B | Total | Share for A | Share for B |
|---|---|---|---|
| 3 : 2 | 100 | 60 | 40 |
| 5 : 3 | 250 | 156.25 | 93.75 |
| 1 : 2 | 1000 | 333.3333 | 666.6667 |
The two shares always add back up to the total. This mode shares a total between two parts. For three parts, split one part off at a time, as the FAQ below shows. To split a bill by how much each person consumed, use the Proportional Bill Splitter.
Decimals, negatives and zero
- Decimals work in every box, for example 1.5 : 2 = 4.5 : ? gives 6.
- A minus sign in front of a number makes it negative.
- A zero is allowed as long as it does not force a division by zero. A and D divide by each other, and so do B and C. To solve D, A cannot be 0; to solve A, D cannot be 0; the same goes for B and C.
- If the answer would need that division, the box stays blank and the note reads That would divide by zero, so there is no result.
- In Split a total, if A + B is 0 (such as 1 and -1) the note reads The two parts add up to zero, so a total cannot be split.
Rounding. Answers are rounded to 4 decimal places and there is no rounding setting. When the answer is an amount of money or a measurement, round it to the precision you need.
Related calculators
To turn a ratio into a percentage, use the Percentage Calculator. To scale a whole recipe at once, use the Recipe Scaler. For a mix of concentrate and water, the Dilution Ratio Calculator works from the ratio directly.
Frequently Asked Questions
How do you find the missing number in a ratio?
Write the ratio as A : B = C : D and cross-multiply. The missing number is the two numbers it does not share a pair with, multiplied together and divided by the third. For 3 : 4 = 9 : ? that is D = 4 × 9 ÷ 3 = 12. Type 3, 4 and 9 into boxes A, B and C and the solved value appears in box D.
How do you solve a proportion?
A proportion says two ratios are equal, such as 2 : 5 = 6 : x. Cross-multiply and divide: x = 5 × 6 ÷ 2 = 15. Type 2, 5 and 6 into boxes A, B and C and leave D empty, and D shows 15. The unknown can sit in any of the four positions; the empty box is always the one that gets solved.
How do you divide a number into a ratio?
Add the parts of the ratio, divide the number by that sum, then multiply by each part. To divide 100 in the ratio 3 : 2, 3 + 2 = 5 and 100 ÷ 5 = 20, so the shares are 60 and 40. Select Split a total, enter 3 in A, 2 in B and 100 in Total: Share for A shows 60 and Share for B shows 40.
How do you share money in a ratio?
Use Split a total the same way: the ratio goes in A and B and the amount in Total. Sharing 250 in the ratio 5 : 3 gives 156.25 and 93.75. Results are rounded to 4 decimal places, so 1000 shared 1 : 2 shows 333.3333 and 666.6667; round those to the cent yourself if you are dealing with currency.
How do you split a total into three or more parts?
Split a total handles two parts, so split off one part at a time. To share 60 in the ratio 1 : 2 : 3, first compare the first part with the other two together, which is 1 : 5. Enter 1 and 5 with a total of 60 to get 10 and 50. Then split that 50 in the ratio 2 : 3 to get 20 and 30. The three shares are 10, 20 and 30.
What is the difference between ratio and proportion?
A ratio compares two quantities, such as 3 : 2. A proportion states that two ratios are equal, such as 3 : 2 = 9 : 6. This calculator works with proportions: you give it one complete ratio and one half of the second, and it finds the missing half.
How do you find an equivalent ratio?
Multiply or divide both parts of the ratio by the same non-zero number. To scale 3 : 4 up so the first part is 9, enter 3 and 4 in A and B and 9 in C. Box D shows 12, so 3 : 4 = 9 : 12 is an equivalent ratio. Fill in D instead of C if the second part is the number you know.
How do you use a ratio calculator for recipes?
Take the ratio from the recipe and the new amount of one ingredient. If a dough uses 2 cups of flour to 3 cups of water, enter 2 and 3 in A and B, then 10 in C for the new amount of flour. Box D shows 15, the water to match. Keep the same ingredient in A and C, and the other in B and D, with the same unit on both sides.
Can a ratio be negative?
In recipes, screens and shared costs the parts are positive, but the arithmetic works with negatives too, so the calculator accepts them. Type a minus sign before the number: -2 : 4 = 3 : ? gives -6. In Split a total, a negative total gives negative shares, for example -100 split 3 : 2 shows -60 and -40.
Why does the ratio calculator show no result?
The box being solved would need a division by zero. A and D divide by each other, and so do B and C: to solve D the number in A cannot be 0, to solve A the number in D cannot be 0, and so on. The box stays blank and a note says so. In Split a total the same happens when A + B = 0, for example 1 and -1. If all four boxes hold numbers there is nothing to solve, so clear one.
Recommended
-
Casio fx-991ES Plus 2 Scientific CalculatorCheck your proportion homework with a calculator you can trust on exams.
-
Etekcity Digital Food Scale with BowlWeigh the scaled-up amounts exactly once the ratio tells you how much.
-
Wacom Intuos Small Drawing TabletResize artwork by the exact ratio and redraw it by hand on a tablet.
Helps keep the tools free. ✨
Images are for illustration only. As an Amazon Associate I earn from qualifying purchases.