⚡
usefultools.dev
x,y

System of Equations Solver with Steps

NEW

Solve 2×2, 3×3 and 4×4 systems of linear equations with exact fractions. See every Gauss-Jordan row operation, Cramer’s rule determinants, and whether there is one solution, none or infinitely many.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

Examples:
Equations
x+y+z=
x+y+z=
x+y+z=

Type integers, decimals (1.5) or fractions (3/4). Use a minus sign for negative coefficients; an empty box counts as 0.

Exactly one solution
  • x = 2
  • y = 3
  • z = -1

Rank of the coefficient matrix: 3 of 3.

Gauss-Jordan elimination (9 steps)
Augmented matrix [A | b]:
21-18
-3-12-11
-212-3
Step 1: R1 → 1/2·R1
11/2-1/24
-3-12-11
-212-3
Step 2: R2 → R2 + 3·R1
11/2-1/24
01/21/21
-212-3
Step 3: R3 → R3 + 2·R1
11/2-1/24
01/21/21
0215
Step 4: R2 → 2·R2
11/2-1/24
0112
0215
Step 5: R1 → R1 − 1/2·R2
10-13
0112
0215
Step 6: R3 → R3 − 2·R2
10-13
0112
00-11
Step 7: R3 → -1·R3
10-13
0112
001-1
Step 8: R1 → R1 + R3
1002
0112
001-1
Step 9: R2 → R2 − R3
1002
0103
001-1

Ri is row i. “R1 ↔ R2” swaps two rows, “R1 → 1/2·R1” scales a row, “R2 → R2 − 3·R1” subtracts a multiple of another row. The changed row is highlighted.

Cramer's rule (determinants)

D is the determinant of the coefficient matrix. Dx, Dy… are determinants of the same matrix with that variable's column replaced by the right-hand side. When D ≠ 0, each unknown equals its determinant divided by D.

  • D = det(A) = -1
  • Dx = -2 ⇒ x = Dx / D = 2
  • Dy = -3 ⇒ y = Dy / D = 3
  • Dz = 1 ⇒ z = Dz / D = -1
⚡

Quick Examples

Typical inputs and the results this tool produces.

3 × 3
2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3
x = 2, y = 3, z = −1
2 × 2
3x + 2y = 12, x − y = −1
x = 2, y = 3
Dependent
x + 2y − z = 3, 2x + 4y − 2z = 6, x − y + z = 0
Infinitely many: x = 1 − 1/3·z, y = 1 + 2/3·z
Inconsistent
x + y + z = 2, 2x + 2y + 2z = 5, x − y = 1
No solution (inconsistent)
📖

Overview

This solver handles systems of 2, 3 or 4 linear equations with the same number of unknowns (x, y, z, w). You type the coefficients and the right-hand side into a grid, and it solves the system with Gauss-Jordan elimination using exact fractions, so answers like 19/15 are not rounded.

Every row operation is listed with the matrix after it, which makes the method easy to follow or check against homework. The tool also tells you which case you are in: exactly one solution, no solution because the equations contradict each other, or infinitely many solutions written in parametric form with the free variables named.

For 2×2 and 3×3 systems a Cramer’s rule view shows the determinant D and the determinants for each variable. Everything is calculated in your browser.

Why use this tool?

  • Step-by-step Gauss-Jordan elimination
  • Exact fractions instead of rounded decimals
  • Detects no solution and infinitely many
  • Parametric form for dependent systems
  • Cramer’s rule determinants for 2×2 and 3×3
⭐

Features

🪜

Every step shown

Row swaps, row scaling and row additions are written as R2 → R2 − 3·R1 with the matrix after each one.

➗

Exact arithmetic

Coefficients can be integers, decimals or fractions, and the answer stays an exact fraction.

🔎

All three cases

One solution, no solution or infinitely many, with the reason shown in plain words.

📐

Parametric answers

For dependent systems each unknown is written in terms of the free variables.

🧮

Cramer’s rule

D, Dx, Dy and Dz are shown for 2×2 and 3×3 systems, with x = Dx / D when D ≠ 0.

📋

Copy the answer

Copy the equations and the solution as plain text.

🛠️

How to Use

1

Choose the size

Pick 2 × 2, 3 × 3 or 4 × 4, or load one of the examples.

2

Enter the coefficients

Type each coefficient and the number after the equals sign. Use a minus sign for subtraction; empty boxes count as 0.

3

Read the result

The solution type and the values appear at once, with decimals available if you want them.

4

Follow the steps

Open the elimination steps or Cramer’s rule to see how the answer was reached.

🤔

Frequently Asked Questions