How to use the linear equation solver
- Type a linear equation with one unknown.
- Press Solve to get x and the steps.
- Use the check line to confirm both sides are equal.
How linear equations work
A linear equation has the unknown only to the first power, like 5x − 7 = 3x + 9. The goal is always to get x alone, and the rule is simple: whatever you do to one side, do to the other.
Method in four moves
- Remove brackets and fractions. Multiply every term by the common denominator.
- Collect the x terms on one side and the numbers on the other.
- Combine like terms.
- Divide by the coefficient of x, then check by substituting.
Example: variables on both sides
Solve 5x − 7 = 3x + 9
- Subtract 3x from both sides: 2x − 7 = 9.
- Add 7 to both sides: 2x = 16.
- Divide by 2: x = 8.
- Check: 5(8) − 7 = 33 and 3(8) + 9 = 33.
Answer: x = 8
Example: fractions
Solve (x + 1)/2 = (2x − 3)/3
- Cross-multiply, which is the same as multiplying both sides by 6: 3(x + 1) = 2(2x − 3).
- Expand: 3x + 3 = 4x − 6.
- Move terms: 3 + 6 = 4x − 3x, so x = 9.
- Check: (9 + 1)/2 = 5 and (18 − 3)/3 = 5.
Answer: x = 9
Special cases: no solution and infinitely many
Parallel lines never meet, which is the graph of the first case. Two identical lines meet everywhere, which is the second.
| Equation | After simplifying | Result |
|---|---|---|
| 2x + 3 = 2x + 5 | 3 = 5, which is false | No solution |
| 2(x + 1) = 2x + 2 | 2 = 2, which is always true | Every real number is a solution |
Frequently asked questions
Can I solve equations with decimals?
Yes. Type them as they are, for example 0.5x + 1.2 = 3.7. The solver gives x = 5.
What about two unknowns?
Use the system of equations solver. One linear equation in two unknowns has infinitely many solutions; two independent equations pin down one pair.
Other calculators
Equation SolverSolve linear, quadratic, cubic, rational, radical, exponential, log and trig equations for x with full step-by-step working and a graphQuadratic Equation SolverSolve ax² + bx + c = 0 by factoring or the quadratic formulaSystem of EquationsSolve 2×2, 3×3 and larger systems by elimination, substitution, Cramer's rule or Gauss–Jordan row reduction, with every step shownInequality SolverSolve linear, compound, quadratic, polynomial, rational and absolute value inequalities with a sign chart and interval notationSimplify & ExpandSimplify algebraic expressions, expand brackets with FOIL, cancel rational expressions, find partial fractions and evaluate expressions step by step