Skip to content
The Calculatorz
Algebra

System of Linear Equations Solver (2 or 3 Variables)

Solve two or three simultaneous linear equations in x, y and z, and detect systems with no solution or infinitely many solutions.

Equations

System

How to use this calculator

Type one equation per line using the variables x, y and z, for example 2x + 3y = 7. Terms can appear on either side of the equals sign, coefficients can be decimals or fractions, and a variable with no number has a coefficient of 1. Enter two equations for two unknowns or three for three.

Formula

The equations are rewritten as an augmented matrix and solved by Gaussian elimination with partial pivoting. If elimination produces a row 0 = c with c ≠ 0, there is no solution; if there are fewer independent equations than unknowns, there are infinitely many.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewIfrahMSc Mathematics

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

What methods can solve a system of equations?

Substitution, elimination, matrices (Gaussian elimination or Cramer's rule) and graphing all work. This calculator uses Gaussian elimination, which is reliable for any size.

What does no solution mean?

The equations contradict each other; for two variables, the lines are parallel. For example, x + y = 2 and x + y = 5 cannot both be true.

What does infinitely many solutions mean?

At least one equation is a combination of the others, so they describe the same line or plane. The calculator shows that the system is dependent.

Can I use other letters?

Use x, y and z. Rename other unknowns (such as a, b, c) to x, y, z before entering them.

Can I enter equations like 3x = 2y + 4?

Yes. Terms can be on both sides; the calculator moves them across the equals sign automatically.

How can I check the answer?

Substitute the values back into each original equation. The result lists each equation's left and right sides at the solution.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Abramson, J. (2021). College algebra 2e. OpenStax. View source
  2. Marecek, L., Anthony-Smith, M., & Honeycutt Mathis, A. (2020). Intermediate algebra 2e. OpenStax. View source
  3. Strang, G. (2016). Introduction to linear algebra (5th ed.). Wellesley-Cambridge Press. View source
  4. Abramson, J. (2021). Precalculus 2e. OpenStax. View source