System of Equations Calculator with Steps

: Solve a system of linear equations in 2, 3 or more unknowns, typed as equations or an augmented matrix, by elimination, substitution or Cramer's rule, with exact fractions, every step and a check
System
Equations · 2
  1. Equation 1
  2. Equation 2
One equation per row (or several on a row, separated by ;). Terms on either side, as you write them: 2x + 3y = 7, y = 2x - 1, 3(x - y) = z + 4, x/2 + 0.5y = 1. Unknowns are single letters (x, y, z) or a letter and a number (x1, x2). Paste lines to fill rows.
Every method gives the same answer; this picks the working shown.
Exact: every number is kept as a fraction, so the answer has no rounding; a fraction also gets its decimal to 6 places (≈). Everything is worked out in your browser.
Result
Solution
x = 2, y = 1
As a point
(x, y) = (2, 1)
x
2
y
1
Type
One solution: consistent and independent
2 equations in 2 unknowns.
Rank
rank A = 2, rank [A | b] = 2
Both equal the number of unknowns (2), so the solution is unique.
Determinant
D = -5
D ≠ 0: exactly one solution.
Working
Write the numbers of each equation as a row of [A | b], then use row operations (swap rows, multiply a row by a number, add a multiple of one row to another) until each pivot is 1 with zeros above and below it. Each row now reads one unknown = a number: x = 2, y = 1.
Check
(1) 2·2 + 3·1 = 7 ✓ (2) 2 - 1 = 1 ✓
The solution put back into each equation.
Equations read as
(1) 2x + 3y = 7 (2) x - y = 1
The lines in the xy-plane
Gauss-Jordan elimination, step by step
StepOperationRowxy=
Startas typedR1237
R21-11
1R1 ↔ R2R11-11
R2 ↔ R1; R2 → R2 - 2·R1R2055
2R1 → R1 + R2R1102
R2 → R2 ÷ 5R2011

A system of equations calculator that solves two, three or more linear equations at once and shows every step. Type the equations as you have them, such as 2x + 3y = 7 and y = 2x - 1, or the rows of an augmented matrix, and pick the method: elimination (Gauss-Jordan), substitution or Cramer's rule. The answer comes as exact fractions with decimals, it says when there is no solution or infinitely many, and it checks the answer in each equation.

  1. Type one equation per row in Equations, with terms on either side: 2x + 3y = 7, y = 2x - 1, 3(x - y) = z + 4. Decimals and fractions such as x/2 or 1/3y work. Add equation gives another row; pasting several lines fills several rows.
  2. Or choose Enter: Augmented matrix and type each equation's numbers as a row, the number after = last: 2 3 7 is 2x + 3y = 7.
  3. Choose the Method: Elimination (Gauss-Jordan) shows the matrix after each step with the row operation beside each row, Substitution solves one equation for one unknown and puts it into the others, Cramer's rule works out the determinants.
  4. Read the solution at the top, then the type of system, the ranks, the determinant, the Working, and Check, which puts the answer back into every equation. With two unknowns the chart draws each equation as a line; the solution is where they cross. Examples fills seven systems.

2x + 3y = 7 and x - y = 1, solved by substitution.

Input
Equation 1: 2x + 3y = 7
Equation 2: x - y = 1
Method: Substitution
Output
Solution: x = 2, y = 1
Determinant: D = -5

Working:
From equation 2: x - y = 1, so x = 1 + y
Put it into equation 1: 5y = 5
From equation 1: 5y = 5, so y = 1
Back-substitute: x = 1 + y = 2

Check:
(1) 2·2 + 3·1 = 7 ✓
(2) 2 - 1 = 1 ✓

How do you solve a system of equations?

By substitution (solve one equation for one unknown and put it into the others), by elimination (add multiples of the equations to cancel unknowns one at a time) or with matrices (Gauss-Jordan elimination or Cramer's rule). All three give the same answer; for 2x + 3y = 7 and x - y = 1 it is x = 2, y = 1. The Method menu shows the working of each.

How do I know if a system has no solution or infinitely many?

Elimination tells you. A row that ends as 0 = a number that is not 0 means no solution (the equations contradict each other, like parallel lines). A row that ends as 0 = 0, leaving fewer useful equations than unknowns, means infinitely many solutions, with some unknowns free to be any number. In terms of ranks: rank A smaller than rank [A | b] means none, both equal to the number of unknowns means one, both smaller means infinitely many.

Can it solve 3 equations with 3 unknowns?

Yes, and four, five or more. Type x + y + z = 6, 2y + 5z = -4 and 2x + 5y - z = 27 and it gives x = 5, y = 3, z = -2, with the elimination steps, the substitutions or the 3×3 determinants of Cramer's rule worked out in full.

What is an augmented matrix?

The numbers of a system written as a grid: each row is one equation, each column one unknown, and a last column holds the numbers after the = signs. 2x + 3y = 7 and x - y = 1 become the rows 2 3 | 7 and 1 -1 | 1. Gauss-Jordan elimination works on this grid; choose Enter: Augmented matrix to type it directly.

When can Cramer's rule be used?

When there are as many equations as unknowns and the determinant of the coefficients, D, is not 0. Then each unknown is its own determinant divided by D. If D = 0 the system has no solution or infinitely many and Cramer's rule cannot say which; the calculator then shows elimination instead.

Runs entirely in your browser. Nothing is uploaded.