Free Linear Equation Solver with Steps

Free linear equation solver for ax + b = cx + d and systems of 2 or 3 equations, with exact fractions, Cramer's rule steps and no/infinite solution checks.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Solve Linear Equations and Systems: Substitution to Cramer's Rule →

About the Linear Equation Solver tool

A linear equation has variables only to the first power, such as 3x + 5 = x + 17. Solving one means isolating the variable with inverse operations; solving a system means finding values that satisfy several equations at once, like 2x + 3y = 13 and x − y = −1. These are the backbone of school algebra and come up in budgeting, mixture problems, physics and economics.

This linear equation solver handles three cases. The first tab solves a single equation in the form ax + b = cx + d, so variables on both sides are fine; the steps move the x terms to one side, move the constants to the other, then divide. It recognises when the x terms cancel and tells you whether that leaves no solution or infinitely many. The second and third tabs solve systems of two equations in x and y or three in x, y and z.

Systems are solved with Cramer's rule using exact fractions: the steps give the determinant D of the coefficients and the determinants Dx, Dy (and Dz) with each column replaced by the constants, then substitute the answers back as a check. When D = 0, the solver compares the ranks of the coefficient and augmented matrices to decide between an inconsistent system and one with infinitely many solutions.

How to use Linear Equation Solver

  1. Choose “ax + b = cx + d”, “2 equations, 2 unknowns” or “3 equations, 3 unknowns”.
  2. For one variable, enter a, b, c and d — set c to 0 for the simple form ax + b = d.
  3. For a system, type each coefficient and the constant after the = sign, using negative numbers for subtraction.
  4. Read the solution; fractions are exact, with decimal equivalents shown beneath.
  5. Open “Show steps” to follow the rearrangement or Cramer's rule and the substitution check.

Features

Variables on both sides

Solves ax + b = cx + d, not just ax + b = c.

2×2 and 3×3 systems

Cramer's rule with every determinant shown.

Exact fractions

Answers like x = 7/3 stay exact instead of 2.3333.

No-solution and infinite-solution detection

Uses determinants and matrix rank to classify special cases.

Built-in check

Substitutes the solution back into every equation.

When to use it

  • Check the answer to a solve-for-x homework problem.
  • Solve a pair of simultaneous equations from a word problem about tickets or coins.
  • Find the intersection point of two lines.
  • Solve a 3×3 system from a chemistry mixture or circuit problem.
  • Show students why parallel lines give no solution.

Frequently asked questions

How do you solve an equation with variables on both sides?

Subtract the smaller x term from both sides so x appears once, move the constants to the other side, then divide by the coefficient. For 3x + 5 = x + 17: 2x + 5 = 17, 2x = 12, x = 6.

What is Cramer's rule?

A formula that solves a square linear system using determinants: each variable equals the determinant with its column replaced by the constants, divided by the determinant of the coefficients. It works whenever that determinant is non-zero.

What does it mean if a system has no solution?

The equations contradict each other — for two lines, they are parallel and never meet. The calculator detects this when the augmented matrix has a higher rank than the coefficient matrix.

What does infinitely many solutions mean?

At least one equation is a combination of the others, so there are fewer independent equations than unknowns. For two equations, both describe the same line.

Can I use fractions or decimals as coefficients?

Yes. Enter values like 1/2, −0.75 or 2 1/3; all calculations use exact fractions.

Related tools