About Ratio Calculator
A surprising number of everyday sums are proportion problems in disguise. A recipe serves four and you are cooking for six. An image is 1920 × 1080 and needs to be 1280 wide. A mix is 2 parts to 3 and you only know one of the quantities. This calculator solves that kind of problem directly: enter the original ratio in fields A and B and it shows the ratio simplified to its lowest terms and as decimals; then enter a known value, say whether it belongs to A or to B, and it returns the matching value that keeps the ratio the same.
Under the hood it is cross-multiplication, also called the rule of three: new B = C × B ÷ A. Results are rounded to a sensible number of decimals instead of a long floating-point tail.
Why use it
- Solves direct proportions in a second without setting up the equation yourself.
- Useful in the kitchen, design work, map reading, DIY mixes and unit scaling.
- Shows the original ratio next to the answer so you can sanity-check your inputs.
- Accepts decimals, which suits grams, millilitres, metres and pixel sizes.
- Free, no sign-up, and it runs in your browser.
How to use
Enter the original ratio
Put the first term in A and the second in B. For a recipe that needs 300 g of flour for 4 people: A = 4, B = 300.
Enter the new value of A
Type the new value for the first term in C; in the example, 6 people.
Click Calculate
You'll see the ratio A:B as entered and, below it, the matching value of B. Here it is 450 g.
Round the answer
If the result has a long decimal tail such as 2.3333333333333335, round it to the precision you need, for example 2.33.
Examples
Scaling a recipe
300 g of flour serves 4. A = 4, B = 300, C = 6 gives 450 g for six people.
Resizing an image without distortion
A 1920 × 1080 image needs to be 1280 wide. A = 1920, B = 1080, C = 1280 gives a height of 720 px.
Reading a map scale
2 cm on the map equals 5 km. You measured 7 cm: A = 2, B = 5, C = 7 gives 17.5 km.
Mixing concrete
Cement and sand at 1 to 3, and you have 4 bags of cement. A = 1, B = 3, C = 4 gives 12 bags of sand.
| A | B | C (new A) | New B |
|---|---|---|---|
| 4 servings | 300 g | 6 | 450 |
| 1920 | 1080 | 1280 | 720 |
| 16 | 9 | 1080 | 607.5 |
| 3 | 5 | 12 | 20 |
| 2 cm | 5 km | 7 | 17.5 |
Tips
- Make sure C belongs to the same term as A and uses the same unit, or the answer will be off.
- If the value you know belongs to B, choose B in "The known value is for" — no need to swap the numbers.
- A can't be zero, because the calculation divides by A.
- This is for direct proportion only. If one quantity goes down as the other goes up, such as workers versus days to finish a job, it is inverse proportion and needs a different formula.
- For a percentage of a number, like 15% of 200, use the Percentage Calculator.
The calculation runs in your browser; the numbers you type are never sent to a server.
Frequently asked questions
What formula does it use?
New B = C × B ÷ A. That is direct proportion, or the rule of three: when A changes to C, B changes by the same factor.
What do A, B and C mean?
A and B are the two terms of your original ratio, such as 4 servings and 300 g. C is the new value of A, and the calculator returns the B that matches it.
Does it simplify ratios?
Yes. It shows the simplified ratio automatically, so 12:18 becomes 2:3, and it works with decimals too.
Will the answer have lots of decimals?
No. Results are rounded to at most eight decimal places with trailing zeros removed, so 7 ÷ 3 shows as 2.33333333.
Can I use decimals?
Yes. Values like 2.5 or 0.75 work in every field, which is useful for precise quantities and measurements.
How do I find a 16:9 height?
Enter A = 16, B = 9 and your target width in C. A width of 1080 gives 607.5, so round to 608 or pick a width that divides evenly by 16.
What about inverse proportion?
This tool handles direct proportion. For inverse problems, like 4 workers finishing in 6 days and wanting to know how long 8 workers take, use A × B ÷ C: 4 × 6 ÷ 8 = 3 days.
What if A is zero?
The calculation divides by A, so a zero gives an invalid result. Enter a value greater than zero.
Can it split profits between partners?
It can scale one partner's share proportionally. Splitting an amount among several parties at once means adding up the shares and dividing the total by them. For important financial arrangements, follow your agreement or ask an accountant.
Does it understand units?
No, it works with plain numbers. The answer is in B's unit, provided C is in the same unit as A.
Is anything I enter saved?
No. Nothing is stored or transmitted.
Is it free?
Yes, completely free on mobile and desktop with no account needed.
Last updated: