Ratio Calculator

About this calculator

The Ratio Calculator has two modes. Solve a proportion A:B = C:D by filling in any three values and leaving one blank, or scale a ratio of up to three terms by multiplying or dividing it by a number.

Leave exactly one of A, B, C, D empty.
times
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

What is a ratio?

A ratio compares the sizes of two or more quantities. Written A:B, read "A to B," it says that for every A units of the first thing there are B units of the second. The ratio 2:1 means the first quantity holds twice as much as the second, and it can also be written as the fraction 2/1 or as "2 to 1." Ratios have no units of their own as long as both quantities use the same unit.

Equivalent ratios and proportions

Multiplying or dividing every term of a ratio by the same non-zero number gives an equivalent ratio. 3:4, 6:8 and 9:12 all describe the same relationship. Setting two ratios equal produces a proportion, A:B = C:D, which can be written A/B = C/D.

Solving for a missing value

In a proportion the cross products are equal: A × D = B × C. Rearranging gives the missing term.

A = B × C / D   B = A × D / C
C = A × D / B   D = B × C / A

Example: if 3:4 = 9:D, then D = 4 × 9 / 3 = 12, so 3:4 = 9:12. A recipe that uses 3 cups of flour for 4 servings needs 9 cups for 12 servings.

Scaling a ratio

Scaling multiplies each term by one factor. Imagine a recipe where butter, sugar and flour are in the ratio 1:2:3 and you want five batches. Enlarging by five times gives 5:10:15, and each term is then multiplied by the amount that one unit represents in your recipe. Shrinking works the same way with division, which is useful for reducing a mix to a smaller job.

Simplifying a ratio

To reduce a ratio of whole numbers, divide each term by their greatest common factor. For 18:24 the greatest common factor is 6, so the simplified ratio is 3:4. The calculator shows A:B in simplest form whenever both terms are whole numbers.

Where ratios appear

UseExample
CookingRice to water 1:2
Maps and modelsScale 1:50,000
FinanceDebt-to-income 36:100
MixturesConcrete 1:2:3 cement, sand, gravel
ScreensAspect ratio 16:9

Common pitfalls

  • Mixing units. Convert both quantities to the same unit before building a ratio.
  • Reversing the order. 3:4 and 4:3 are different ratios.
  • Confusing part-to-part with part-to-whole. A 1:3 ratio of red to blue paint means red is one quarter of the total, not one third.

Part-to-whole conversion

For a ratio of parts a:b:c, each part's share of the whole is that part divided by the sum of all parts. In 1:2:3 the sum is 6, so the shares are 1/6, 2/6 and 3/6, about 16.7%, 33.3% and 50%.

Frequently asked questions

How do I solve a ratio with a missing number?
Cross-multiply. For A:B = C:D, A × D equals B × C, so divide the product of the two known diagonal terms by the remaining known term.
How do I simplify a ratio?
Divide every term by their greatest common factor. 18:24 simplifies to 3:4.
What is the difference between a ratio and a fraction?
A fraction compares a part with a whole, while a ratio can compare any two or more quantities. A ratio of two terms can be written as a fraction.
How do I scale a recipe with a ratio?
Multiply every term by the same factor. Doubling a 1:2:3 ratio gives 2:4:6.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.