Everyday tool

Ratio & Proportion Calculator

Enter three values to solve the fourth value in a:b = c:x.

Runs in your browser. No upload.
:=:

Solve A:B = C:X, then see the simplified A:B ratio.

Missing value X
—
Simplified A:B
—

About this tool

Ratio & Proportion Calculator made simple.

For A:B = C:X, the missing value is X = B × C ÷ A. For example, 2:3 = 8:X gives X = 12. With integer inputs, the tool also simplifies A:B; all three inputs must be greater than zero.

Guide

Using Ratio & Proportion Calculator

The Ratio and Proportion Calculator finds the missing number in a pair of equal ratios written as A : B = C : X. You type A, B and C, press the button, and it gives X. It also shows A : B in its smallest form when your numbers are whole. People use it to scale recipes, resize drawings, mix paint or fuel, and compare unit rates. It solves one missing value at a time and only for positive numbers. It does not split a total into parts.

How to use it

  1. Write your problem as A : B = C : X. A and B are the first pair you know. C is the number that matches A, and X is what you want to find.
  2. Type A in the first box, B in the second box and C in the third box. All three must be above zero.
  3. Press the Solve proportion button to find the missing number.
  4. Read the missing value X in the Missing value X line. The box marked with a question mark shows the same answer.
  5. Look at Simplified A:B to see the first ratio in its smallest whole-number form.
  6. Press Clear to empty the boxes and start a new problem.

Worked examples

The classic 2:3 = 8:X

You enter
A
2
B
3
C
8
You get
X
12
Simplified
2:3

X is B times C divided by A, so 3 times 8 is 24, and 24 divided by 2 is 12.

Run through the tool’s own code.

A ratio that can be reduced

You enter
A
12
B
18
C
30
You get
X
45
Simplified
2:3

12 and 18 share a factor of 6, so the ratio is the same as 2:3. X is 18 times 30 over 12, which is 45.

Run through the tool’s own code.

An answer with decimals

You enter
A
3
B
4
C
10
You get
X
13.3333
Simplified
3:4

4 times 10 is 40, and 40 divided by 3 never ends. The tool shows four decimal places when X is 1 or more.

Run through the tool’s own code.

An answer smaller than one

You enter
A
5
B
2
C
1
You get
X
0.4
Simplified
5:2

2 times 1 over 5 is 0.4. For answers below 1 the tool keeps up to six decimal places.

Run through the tool’s own code.

A decimal input is not reduced

You enter
A
0.5
B
2
C
3
You get
X
12
Simplified
0.5:2

X is 2 times 3 over 0.5, which is 12. Because 0.5 is not a whole number, the tool shows A:B as typed instead of reducing it.

Run through the tool’s own code.

A recipe with larger numbers

You enter
A
250
B
400
C
3
You get
X
4.8
Simplified
5:8

400 times 3 over 250 is 4.8. The first ratio 250:400 reduces by 50 to 5:8.

Run through the tool’s own code.

When it helps

  • Scale a recipe up or down when you know how much of one ingredient you have.
  • Resize a photo or a drawing while keeping its shape, once you know one new side.
  • Read a map or model scale to find a real distance or a model length.
  • Mix paint, cleaning fluid or garden feed at a stated ratio for a larger container.
  • Compare prices or rates, such as how many miles for a given amount of fuel.
  • Check homework on cross-multiplying and equal ratios.

Limits to keep in mind

  • All three of A, B and C must be greater than zero. Zero, negative numbers and empty boxes give the error: Enter three positive numbers.
  • It solves for the fourth term X only, in the fixed form A : B = C : X. If your unknown is in another position, reorder the problem first.
  • When X is 1 or more it is rounded to 4 decimal places, and when X is below 1 it is rounded to 6. A tiny answer below 0.000001 would show as 0.
  • The simplified ratio is only reduced when A, B and C are all whole numbers. With any decimal, it shows A and B as typed.
  • It does not split a total into parts. For a task like sharing 100 in the ratio 2:3, you must work out the parts yourself.
  • It treats the four numbers as equal ratios. It does not check whether the real situation is truly proportional.

Tips

  • Line up the units. If A and C are both in cups, then B and X should share a unit too.
  • Cross-check the answer by multiplying: A times X should be the same as B times C.
  • Use the resulting X in a bigger plan, but round it in a sensible way, such as to a whole egg or a whole screw.
  • If you want the ratio only, enter your two numbers as A and B and any positive number as C, then read Simplified A:B.
  • Write the ratio the same way on both sides. Putting the larger number first on the left and the smaller first on the right gives a wrong answer.
  • Press Clear between problems so an old answer does not stay on screen.

Sources

Common questions

About Ratio & Proportion Calculator.

How do I solve a proportion?

Enter the three known numbers as A, B and C and press the button. The tool computes X as B times C divided by A. That is the same as cross-multiplying A : B = C : X and then dividing.

What does A : B = C : X mean?

It says the ratio of A to B is the same as the ratio of C to X. If 2 cups of flour go with 3 eggs, then 8 cups of flour go with 12 eggs. X is the number you want to find.

How do I solve 2:3 = 8:X?

Use X = B × C ÷ A: 3 × 8 ÷ 2 = 12. Enter 2, 3 and 8 in the A, B and C fields to get X = 12.

Can it simplify a ratio such as 12:18?

Yes, when A, B and C are whole numbers. It divides A and B by their greatest common divisor, so 12:18 becomes 2:3. You need to give a positive C too, but any positive number will do.

Why does it say to enter three positive numbers?

The calculator accepts only values above zero. A zero in A would mean dividing by zero, and negative or empty boxes are not read. Put a positive number in each of the three boxes.

Why is my answer rounded?

The tool shows 4 decimal places for an answer of 1 or more, and up to 6 for an answer under 1. A value like 40 over 3 is cut at 13.3333. Round again to match your task, such as whole units.

Can I use it for recipes and scale drawings?

Yes. Both are equal ratio problems. Put the old amount of one item in A and its new amount in C. Put the old amount of a second item in B, and X is the new amount of that second item.

What is the difference between a ratio and a proportion?

A ratio compares two quantities, like 2:3. A proportion states that two ratios are equal, like 2:3 = 8:12. This tool takes the proportion with one missing term and fills it in.

Does the page send my numbers anywhere?

No. The calculation happens in your browser on your own device. The numbers are not uploaded and no account is needed. The answer is also placed in a read-only box on the page.

When should I not trust the answer?

Do not rely on it when the two sides are not truly in proportion. For example, cooking times, medicine doses and tax do not always scale in a straight line. Check with the recipe, the label or a professional.

Can I use this for recipes and scale drawings?

Yes. Ratios are useful for adjusting recipes, comparing quantities and scaling measurements.

Can this calculator simplify a ratio such as 12:18?

Yes. When A, B and C are whole numbers, it reduces A:B by their greatest common divisor, so 12:18 becomes 2:3. Enter positive values only.