Solve for X Fraction Calculator
Put x in any one box, enter the other three values, and get an exact fraction, decimal, mixed number and checked steps.
How to solve a fraction for x
For a proportion a/b = c/d, cross multiplication gives a × d = b × c. Isolate x by dividing both sides by its remaining coefficient. The calculator keeps rational inputs exact, reduces the result with the greatest common divisor, and then substitutes the answer back into the original proportion.
Examples checked by the calculator
| Equation | Cross product | Solution |
|---|---|---|
| 3/4 = x/20 | 3 × 20 = 4x | x = 15 |
| x/7 = 12/21 | 21x = 84 | x = 4 |
| 5/x = 15/24 | 120 = 15x | x = 8 |
| (x + 1)/3 = (2x − 5)/4 | 4(x + 1) = 3(2x − 5) | x = 19/2 = 9.5 |
Why this solver is different
- x may appear in any of the four positions of a simple proportion.
- Integers, decimals, ordinary fractions and mixed numbers remain exact instead of being rounded before solving.
- The advanced solver handles x in both numerators or denominators, detects quadratic results, and removes values that make an original denominator zero.
- Identity equations, contradictions and invalid zero denominators are reported explicitly rather than returning a misleading number.
Limits
The main solver requires exactly one x. In advanced mode, each numerator and denominator must be linear in x; cross multiplication may therefore create an equation up to degree two. Decimal results are rounded for display, while the main proportion result is retained as an exact fraction.
Related tools: use the Fraction Calculator for fraction arithmetic, the Partial Fraction Calculator for decomposition, or the System of Equations Calculator for multiple variables.