Skip to content
School

Ratio Calculator

This ratio calculator simplifies an A:B ratio, scales both parts to a total, and solves for a missing part.

What do you want to calculate?

Decimals are allowed. 12:18 simplifies to 2:3.

Ratio result

Simplified ratio
2:3
Decimal (A ÷ B)
0.666667

Both parts were divided by their greatest common divisor. A ratio A:B can also be written as the decimal A ÷ B.

How to use

  1. Enter the two parts of the ratio to simplify them.
  2. Enter a desired total to scale the parts so they add up to that total.
  3. Or enter one known part and the ratio to solve for the other part.

How it works

Simplifying clears decimals first, then divides both whole numbers by their greatest common divisor. The decimal beside the reduced pair is the first part divided by the second, and it is left blank when the second part is 0. Scaling does not start from the reduced pair. The factor is the total you asked for divided by (A + B), using the parts you typed, and each part is multiplied by that factor. A missing part is the known quantity times the other side of the ratio, divided by the known side.

Example. 12 and 18 share a divisor of 6, so the reduced ratio is 2:3 and the decimal reads 0.666667. Those two parts already add to 30, so scaling them to a total of 30 leaves the parts at 12 and 18.

Example. 1.5:2.5 reduces to 3:5, and the decimal is 0.6. Spread across a total of 20, the parts are 7.5 and 12.5. If the ratio is 3:5 and the first part is already 12, the missing second part is 20.

Part-to-part is not a share of the whole

Cement to sand at 1:3 is one unit of cement for three of sand, four units in the batch. Scaling that ratio to 100 gives 25 and 75. If you wanted cement as a fraction of the whole mix, the ratio to type is 1:4, not 1:3. Mixing those two shapes is how a recipe comes out a quarter short.

Zero is allowed on one side and fatal on both. 0:5 reduces to 0:1 and the decimal is 0. 4:0 reduces to 1:0, but there is no decimal, because dividing by zero is undefined. Scaling 4:0 also fails: the parts add to nothing, so there is no factor.

Frequently asked questions

How do you simplify a ratio?

Divide both parts by their greatest common divisor. 12:18 simplifies to 2:3.

How do I scale a ratio to a total?

Add the parts, divide the desired total by that sum, then multiply each part by that factor.

Can ratios have decimals?

Yes. The tool accepts decimals and can still simplify by scaling to whole numbers when possible.

What is a part-to-part vs part-to-whole ratio?

Part-to-part compares two groups (3:5). Part-to-whole compares one group to the total (3:8).

Is a ratio the same as a fraction?

A ratio A:B can be written as the fraction A/B, but ratios often keep both parts visible for mixing.

What happens if one side of the ratio is zero?

0:5 reduces to 0:1 and the decimal is 0. 4:0 reduces to 1:0, and the decimal is blank because you cannot divide by zero. Scaling also fails when the two parts add to zero. 0:0 is rejected.

How do I find the missing part when I already know one amount?

Multiply the known amount by the other side of the ratio and divide by the known side. A 3:5 ratio with a first part of 12 has a second part of 20. The reduced ratio stays 3:5.