Home / Mathematics Tools / Linear Equation Solver

Linear Equation Solver

Solve for variables algebraically and graphically.

x + =

Equation: ax + b = c

Error
Graph

Methods & Formulas

One Variable

To isolate x, we first move the constant term b to the right side, then divide by the coefficient a.

x = (c - b) / a

If a is 0, and bc, there is no solution.

Cramer's Rule (2x2)

For a system of equations, we calculate the Determinant (D). If D is 0, the lines are parallel.

D = a1b2 - a2b1

If D ≠ 0:

x = (c1b2 - c2b1) / D
y = (a1c2 - a2c1) / D