Solve for X in a Proportion Calculator

Solve the unknown x in a proportion like x/4 = 3/8 using cross-multiplication, with the exact fraction, mixed number, and decimal shown step by step.

Loading calculator…

How to use this calculator

Type the letter x into exactly one of the four boxes of the proportion — it can be either numerator or either denominator. Fill the other three boxes with whole numbers (positive or negative). The calculator cross-multiplies, isolates x, and shows the exact fraction, the mixed number (if x is improper), and the decimal, along with every intermediate step.

Tip: Any of the three known boxes can be negative — type the minus sign directly, like -4. x itself can also solve out to a negative value.

The cross-multiplication formula

A proportion sets two fractions equal:

n1d1=n2d2\frac{n_1}{d_1} = \frac{n_2}{d_2}

Cross-multiplying gives one universal identity, no matter which term is unknown:

n1×d2=d1×n2n_1 \times d_2 = d_1 \times n_2

Whichever term is x, divide both sides by the number multiplied against it to isolate x. For example, if x is n1n_1: x×d2=d1×n2x=d1×n2d2x \times d_2 = d_1 \times n_2 \Rightarrow x = \dfrac{d_1 \times n_2}{d_2}.

Why cross-multiplication works

Cross-multiplying is really just multiplying both sides by 1, written as the other side's denominator over itself:

n1d1×d2d2=n2d2×d1d1    n1d2d1d2=n2d1d1d2\frac{n_1}{d_1} \times \frac{d_2}{d_2} = \frac{n_2}{d_2} \times \frac{d_1}{d_1} \;\Rightarrow\; \frac{n_1 d_2}{d_1 d_2} = \frac{n_2 d_1}{d_1 d_2}

Both sides now share the denominator d1d2d_1 d_2, so the numerators alone must be equal: n1d2=d1n2n_1 d_2 = d_1 n_2. Nothing about the proportion's value changed, since multiplying by d2d2\frac{d_2}{d_2} or d1d1\frac{d_1}{d_1} is multiplying by 1.

Worked examples

Example 1 — x is a numerator: x4=38\dfrac{x}{4} = \dfrac{3}{8}

Cross-multiply: x×8=4×3=12x \times 8 = 4 \times 3 = 12, so x=128=32=112=1.5x = \dfrac{12}{8} = \dfrac{3}{2} = 1\dfrac{1}{2} = 1.5.

Example 2 — x is a denominator: 2x=46\dfrac{2}{x} = \dfrac{4}{6}

Cross-multiply: 2×6=x×412=4x2 \times 6 = x \times 4 \Rightarrow 12 = 4x, so x=124=3x = \dfrac{12}{4} = 3 — a whole number, so no mixed form or decimal is shown.

Example 3 — matches the source example, 56=x18\dfrac{5}{6} = \dfrac{x}{18}

Cross-multiply: 5×18=6×x90=6x5 \times 18 = 6 \times x \Rightarrow 90 = 6x, so x=906=15x = \dfrac{90}{6} = 15.

Example 4 — x stays a fraction: 23=x7\dfrac{2}{3} = \dfrac{x}{7}

Cross-multiply: 2×7=3×x14=3x2 \times 7 = 3 \times x \Rightarrow 14 = 3x, so x=143=4234.666667x = \dfrac{14}{3} = 4\dfrac{2}{3} \approx 4.666667.

Checking your answer

Once you have a value for x, substitute it back into its original box and cross-multiply once more. If the two cross products come out equal, the proportion holds and the answer is confirmed — for Example 3 above, 56=1518\dfrac{5}{6} = \dfrac{15}{18} cross-multiplies to 5×18=905 \times 18 = 90 and 6×15=906 \times 15 = 90, which match.

Precision note

Every value is computed as an exact fraction using arbitrary-precision integers (BigInt), never floating-point numbers — so the cross product and the reduced answer are always exact. Only the decimal display, when x isn't a whole number, is limited to 6 digits after the point (with a trailing ellipsis for repeating decimals like 143=4.666666\frac{14}{3} = 4.666666\ldots).

Frequently asked questions

What does "solve for x" mean in a proportion?
A proportion is two equal fractions, like ab=cd\frac{a}{b} = \frac{c}{d}. "Solve for x" means one of the four numbers has been replaced with the letter x, and the goal is to find the value that makes both sides equal.
How do you solve for x using cross-multiplication?
Cross-multiply the two fractions: ab=cda×d=b×c\frac{a}{b} = \frac{c}{d} \Rightarrow a \times d = b \times c. Whichever term is x, isolate it by dividing both sides by the number multiplied against it.
Can x be a fraction instead of a whole number?
Yes. For example, x4=38\frac{x}{4} = \frac{3}{8} cross-multiplies to 8x=128x = 12, so x=128=32=112x = \frac{12}{8} = \frac{3}{2} = 1\frac{1}{2}. This calculator always shows the exact fraction first, then the mixed number and decimal.
What if x comes out negative?
That is a valid answer. If any of the three known numbers is negative, x can be negative too — the cross-multiplication rule works the same way for signed numbers, it is just regular algebra.
Why can a denominator never be zero?
Dividing by zero is undefined, so any fraction with a zero denominator has no value. This calculator checks both denominators of the proportion (not just the one used to isolate x) and reports an error if either one is zero.
How do I check that my answer for x is correct?
Substitute the value back into the original box and cross-multiply again. If both cross products are equal, the answer is correct — this calculator shows that check as its final step.
Does it matter which of the four positions x is in?
No. Whether x is a numerator or a denominator, on the left side or the right side, the same cross-multiplication rule applies — only the final division step changes depending on which number ends up multiplied against x.

Related calculators