Ratio Calculator: Solve A : B = C : D

Solve the missing term in a ratio proportion A:B = C:D by cross-multiplication. Enter three positive numbers and get the fourth, exact and step by step.

Loading calculator…

What is a ratio proportion?

A ratio compares two quantities, written A : B — two cups of flour to three cups of sugar, for example. A proportion sets two ratios equal to each other: A : B = C : D. Whenever three of the four terms are known, the fourth is completely determined; this calculator solves for whichever one you leave blank.

Using the calculator

Type numbers into three of the four boxes — A, B, C, D — and leave exactly one blank; that's the value the calculator solves for. Every entry must be a positive number (whole or decimal, like 1.5); negative numbers aren't valid ratio terms here. Two guardrails keep the answer meaningful:

  • Leaving zero, two, or all four boxes blank asks the calculator to solve for more (or fewer) unknowns than a single equation can determine, so it asks you to leave exactly one blank.
  • If the term diagonally opposite the blank one is zero, the cross-multiplication would require dividing by zero, which has no answer — the calculator flags this rather than guessing.

Cross-multiplication: the rule behind every answer

A : B = C : D is the same statement as the fraction equation AB=CD\frac{A}{B} = \frac{C}{D}. Multiplying both sides by BB and by DD clears the denominators and leaves:

A×D=B×CA \times D = B \times C

Whichever term is missing, you isolate it by dividing the product of the two terms diagonally across from it by the one remaining known term. Solving for D, for instance, gives D=B×CAD = \frac{B \times C}{A}.

Tip: Cross-multiplication is just fraction comparison in disguise — the same rule this site's Comparing Fractions and Solving for X calculators use to clear denominators before comparing or solving.

Step-by-step: solving 2 : 3 = x : 12

  1. Identify the unknown. The third term, x, is missing from 2 : 3 = x : 12.
  2. Cross-multiply. 2×12=3×x2 \times 12 = 3 \times x, so 24=3x24 = 3x.
  3. Solve. Divide both sides by 3: x=24÷3=8x = 24 \div 3 = 8.
  4. Check. 2×12=242 \times 12 = 24 and 3×8=243 \times 8 = 24 — the cross products match, confirming 2 : 3 = 8 : 12.

The known side, 2 : 3, is already in lowest terms (gcd(2,3)=1\gcd(2, 3) = 1), so the calculator reports it unchanged alongside the answer.

Worked example: scaling a recipe

Ratios are the natural tool for scaling recipes up or down. Say a recipe calls for 2 cups of flour for every 3 cups of sugar, and you want to know how much flour matches 12 cups of sugar. Set up the proportion exactly like the calculator does:

2:3=x:122 : 3 = x : 12

Cross-multiplying gives 2×12=3×x2 \times 12 = 3 \times x, so x=24÷3=8x = 24 \div 3 = 8 cups of flour. The same method works for currency conversion, map scales, unit rates, or mixing paint — anywhere two quantities stay in a fixed relationship.

Tip: If your known ratio uses decimals — like 1.5 : 2 for one and a half cups of one ingredient to two cups of another — the calculator still solves it exactly using fraction arithmetic, then shows the simplified whole-number ratio (3 : 4) for reference.

More worked examples

ProportionMissing termExact answer
2 : 3 = x : 12x8
5 : 7 = 15 : yy21
x : 4 = 3 : 8x3/2 (1.5)
1.5 : 2 = c : 8c6
2 : 3 = 4 : zz6

Reading the answer

The calculator returns the missing term as an exact value — a whole number when the proportion divides evenly, or a reduced fraction (with its decimal equivalent, rounded to at most six digits) otherwise. It also echoes the ratio on the side you already knew in full, simplified by its greatest common divisor, so you can double-check your original numbers at a glance.

Frequently asked questions

What does A : B = C : D mean?
It means the two ratios are equal — the same relationship between A and B holds between C and D. Written as fractions, AB=CD\frac{A}{B} = \frac{C}{D}. If you know any three of the four terms, the fourth is fixed.
How do you find the missing number in a proportion?
Cross-multiply the two ratios: A×D=B×CA \times D = B \times C. Then divide the product of the two known "diagonal" terms by the one remaining known term to isolate the unknown. For 2 : 3 = x : 12, that is 2×12=3×x2 \times 12 = 3 \times x, so x=24÷3=8x = 24 \div 3 = 8.
Why does cross-multiplication work?
Starting from AB=CD\frac{A}{B} = \frac{C}{D}, multiply both sides by BB and by DD to clear the denominators — you get A×D=B×CA \times D = B \times C. It is exactly the same algebra used to compare or add fractions, just applied to a proportion instead.
Can a ratio term be zero or negative?
No — this calculator treats A, B, C, D as positive quantities (like ingredient amounts or map distances), so it rejects negative entries. A zero value is only meaningful as an error: if the term needed as the divisor in the cross-multiplication is zero, the proportion has no solution.
How do you scale a recipe using ratios?
Write the original recipe as a ratio (2 cups flour : 3 cups sugar) and set it equal to the ratio you want (x cups flour : 12 cups sugar), then solve for the missing term the same way: x=(2×12)÷3=8x = (2 \times 12) \div 3 = 8 cups of flour.
What is 1.5 : 2 = c : 8 equal to?
c = 6. Cross-multiplying gives 1.5×8=2×c1.5 \times 8 = 2 \times c, so 12=2c12 = 2c and c=6c = 6. The known side 1.5 : 2 also simplifies to 3 : 4, which the calculator shows alongside the answer.
Is a ratio the same thing as a fraction?
They are closely related but not identical. A fraction like 23\frac{2}{3} usually describes a part of a whole, while a ratio like 2 : 3 compares two separate quantities — but the arithmetic (cross-multiplication, simplifying by the GCD) works the same way for both.
What if my known ratio is already in lowest terms?
Then the "simplified ratio" the calculator reports will match the values you typed exactly — for example 2 : 3 stays 2 : 3, since gcd(2,3)=1\gcd(2, 3) = 1. It only changes when the two known terms share a common factor, like 1.5 : 2 reducing to 3 : 4.

Related calculators