Linear Equation Solver
Solve linear equations in one variable — simple, general, or from free-form text. Verified solution with step-by-step derivation.
Equation details
Updates as you typeForm
Which form is your equation in? ?
Your equation
Try an example (click to load)
Coefficients
Coefficient a ?
—
x
Constant b ?
Right-hand side c ?
Left side
Coefficient a ?
x
Constant b
Right side
Coefficient c ?
x
Constant d
Paste or type the whole equation ?
Display (optional)
Answer format ?
Formulas
Simple form
ax
+
b
=
c
→
x
=
c − b
a
General form
ax
+
b
=
cx
+
d
→
x
=
d − b
a − c
- a
- Coefficient of x on the left side
- b
- Constant term on the left side
- c
- Right-hand constant (simple form) or coefficient of x on the right side (general form)
- d
- Constant term on the right side (general form only)
Worked example — your numbers
- Equation: —
- Rearrange: —
- Isolate x: —
- x = —
A linear equation in one variable always has exactly one solution when the coefficient of x is non-zero. If the x terms cancel out, the equation is either always true (infinitely many solutions) or a contradiction (no solution).