Skip to content
FiftyCalc Free calculators for all 50 states

Ratio Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Enter a ratio A:B and a new first term C to find the matching D, so that A:B = C:D.

Result

Sample figures

D, so that A:B = C:D—

A ÷ B as a decimal —

  • A as a share of A + B—
  • B as a share of A + B—
  • Ratio written as 1 : n (n = B ÷ A)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Ratio Calculator

A (first term of the ratio): enter a number. Prefilled example: 3.

B (second term of the ratio): enter a number. Prefilled example: 4.

C (new first term): enter a number. Prefilled example: 9.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. A (first term of the ratio): enter a number.
  2. B (second term of the ratio): enter a number.
  3. C (new first term): enter a number.
  4. Read the result: D, so that A:B = C:D; the panel also shows A ÷ B as a decimal, A as a share of A + B, B as a share of A + B and Ratio written as 1 : n (n = B ÷ A).

How this calculator works

Two ratios are equal when their cross products are equal: A:B = C:D means A × D = B × C, so D = B × C ÷ A. This is the rule of three taught in US middle-school math (Common Core 6.RP and 7.RP).

Scaling a ratio multiplies both terms by the same factor C ÷ A, so the relationship between the parts does not change.

The shares show each term as a percent of the whole: A ÷ (A + B) and B ÷ (A + B).

The formula

  1. D=b×ca
Symbols used in the formula
SymbolMeaning
aA (first term of the ratio)
bB (second term of the ratio)
cC (new first term)
DD, so that A:B = C:D

Worked example

A (first term of the ratio)3
B (second term of the ratio)4
C (new first term)9
A ÷ B as a decimal0.75
A as a share of A + B42.86%
B as a share of A + B57.14%
Ratio written as 1 : n (n = B ÷ A)1.3333
  1. D=4×93=12

D, so that A:B = C:D 12

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is a ratio?

A comparison of two quantities by division. 3:4 means 3 parts of the first for every 4 parts of the second.

How do I solve 3:4 = 9:x?

Cross-multiply: 3 × x = 4 × 9 = 36, so x = 12.

Is a ratio the same as a fraction?

A two-part ratio A:B can be written as the fraction A/B, but a ratio compares parts with each other, while a fraction usually compares a part with the whole: 3:4 means 3 out of 7 in total.

Questions answered

Related calculators