Ratio Calculator
This ratio calculator simplifies an A:B ratio, scales both parts to a total, and solves for a missing part.
How to use
- Enter the two parts of the ratio to simplify them.
- Enter a desired total to scale the parts so they add up to that total.
- 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.
Related tools
- SchoolSlope CalculatorFind the slope between two points, plus the angle, percent grade, and line equation.
- SchoolPercentage CalculatorFind X% of Y, what percent one number is of another, percent change, and an optional percent table.
- SchoolHigh School GPA CalculatorWeighted and unweighted 4.0 GPA from your courses, credits, and level.
- Building / DIYSquare Footage CalculatorLength × width for rooms in feet, inches, or meters, plus sq ft ↔ sq m.
- Building / DIYConcrete CalculatorCubic yards, cubic feet, and 60- or 80-lb bag counts for slabs, footings, and columns.
- FinanceMargin CalculatorMargin percent, markup percent, and dollar profit from cost and selling price.
- BusinessGoogle Review Link Generator + QR CodeTurn a Maps URL or Place ID into a Google review link, QR code, and counter card.