Skip to content

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 type
Form
Which form is your equation in? ?
Your equation
Try an example (click to load)
Coefficients
Coefficient a ?
x
Constant b ?
Right-hand side c ?
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
  1. Equation:
  2. Rearrange:
  3. Isolate x:
  4. 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).