Maths / Linear algebra

System of Equations Solver: 2–4 Unknowns with Steps

Solve linear systems with two, three or four unknowns using exact fractions. See elimination steps and distinguish a unique answer, no solution and infinitely many solutions.

System of Equations Solver: 2–4 Unknowns with Steps: Simultaneous equations ask for values that satisfy every equation at once. This solver starts with a three-variable example and shows x₁ = 2, x₂ = 3 and x₃ = −1. Replace the augmented matrix with your own coefficients and right-hand sides. For 2x + y = 7, the row is 2 1 7; keep the same variable order in every row. Missing variables need a zero coefficient. The last entry is always the right-hand side, not another unknown. Elimination scales rows and subtracts multiples of one row from another until each leading variable is isolated. Fractions and entered decimals are kept exactly throughout those operations, so a result such as 2/3 stays 2/3. Use the [matrix calculator](/matrix-calculator) when you also need products, determinants or inverses, and the [scientific calculator](/scientific-calculator) to combine the answer with other functions. Runs 100% locally in your browser with zero server file uploads.

Runs
In your browser
Cost
Free · no sign-up
Availability
Ready to use
Scientific calculatorLocal processing

Runs entirely in your browser

Equation
x1
2 ≈ 2
x2
3 ≈ 3
x3
-1 ≈ -1
Elimination steps

R1 ÷ 2

111/20.5-1/2-0.544
-3-3-1-122-11-11
-2-21122-3-3

R2 − -3 × R1

111/20.5-1/2-0.544
001/20.51/20.511
-2-21122-3-3

R3 − -2 × R1

111/20.5-1/2-0.544
001/20.51/20.511
00221155

R2 ÷ 1/2

111/20.5-1/2-0.544
00111122
00221155

R1 − 1/2 × R2

1100-1-133
00111122
00221155

R3 − 2 × R2

1100-1-133
00111122
0000-1-111

R3 ÷ -1

1100-1-133
00111122
000011-1-1

R1 − -1 × R3

11000022
00111122
000011-1-1

R2 − 1 × R3

11000022
00110033
000011-1-1

Systems use exact rational elimination. Cubic and quartic roots are numerical approximations checked against the polynomial; repeated or closely spaced roots are less accurate.

Quadratic equation solver · Matrix calculator

Focused calculator pages

Linear systems

OpenStax College Algebra, Systems of Linear Equations: Three Variables (https://openstax.org/books/college-algebra-2e/pages/7-2-systems-of-linear-equations-three-variables), introduces simultaneous equations and dependent systems. Its worked examples use elimination.

Row operations

OpenStax College Algebra, Solving Systems with Gaussian Elimination (https://openstax.org/books/college-algebra-2e/pages/7-6-solving-systems-with-gaussian-elimination), explains augmented matrices and elementary row operations. The book is CC BY 4.0.

How to use it

  1. Enter one equation per row as coefficients followed by its right-hand side.
  2. Use the same number of equations and unknowns, from two to four; decimals and fractions are allowed.
  3. Read exact variable values or the system status, then open the elimination steps.

Privacy & limitations

Equations are solved in your browser and are not uploaded.

Related tools

Frequently asked questions

How do I enter a three-variable system?

Enter four values per row: the coefficients of x₁, x₂ and x₃, followed by the right-hand side. Enter three rows. For example, 2 1 -1 8 means 2x₁ + x₂ − x₃ = 8. Fractions such as -1/2 are accepted.

What does no solution mean?

The equations contradict each other. During elimination, a row with zero coefficients and a nonzero right-hand side means 0 equals a nonzero value. No choice of the unknowns can satisfy that row.

What does infinitely many solutions mean?

Some equations repeat information already present in the others. One or more variables remain free, and the leading variables are written in terms of them. The free-variable labels and elimination steps help explain the family of solutions.

Free tool · runs in your browser · no account required