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.
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.
-4. x itself can also solve out to a negative value.The cross-multiplication formula
A proportion sets two fractions equal:
Cross-multiplying gives one universal identity, no matter which term is unknown:
Whichever term is x, divide both sides by the number multiplied against it to isolate x. For example, if x is : .
Why cross-multiplication works
Cross-multiplying is really just multiplying both sides by 1, written as the other side's denominator over itself:
Both sides now share the denominator , so the numerators alone must be equal: . Nothing about the proportion's value changed, since multiplying by or is multiplying by 1.
Worked examples
Example 1 — x is a numerator:
Cross-multiply: , so .
Example 2 — x is a denominator:
Cross-multiply: , so — a whole number, so no mixed form or decimal is shown.
Example 3 — matches the source example,
Cross-multiply: , so .
Example 4 — x stays a fraction:
Cross-multiply: , so .
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, cross-multiplies to and , 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 ).
Frequently asked questions
- What does "solve for x" mean in a proportion?
- A proportion is two equal fractions, like . "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: . 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, cross-multiplies to , so . 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.