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- Equation 1
- Equation 2
- 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
| Step | Operation | Row | x | y | = |
|---|---|---|---|---|---|
| Start | as typed | R1 | 2 | 3 | 7 |
| R2 | 1 | -1 | 1 | ||
| 1 | R1 ↔ R2 | R1 | 1 | -1 | 1 |
| R2 ↔ R1; R2 → R2 - 2·R1 | R2 | 0 | 5 | 5 | |
| 2 | R1 → R1 + R2 | R1 | 1 | 0 | 2 |
| R2 → R2 ÷ 5 | R2 | 0 | 1 | 1 |
System of Equations Calculator with Steps
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.
How to use the system of equations calculator
- 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 asx/2or1/3ywork.Add equationgives another row; pasting several lines fills several rows. - Or choose
Enter: Augmented matrixand type each equation's numbers as a row, the number after = last:2 3 7is 2x + 3y = 7. - Choose the
Method:Elimination (Gauss-Jordan)shows the matrix after each step with the row operation beside each row,Substitutionsolves one equation for one unknown and puts it into the others,Cramer's ruleworks out the determinants. - Read the solution at the top, then the type of system, the ranks, the determinant, the
Working, andCheck, 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.Examplesfills seven systems.
Example
2x + 3y = 7 and x - y = 1, solved by substitution.
Equation 1: 2x + 3y = 7
Equation 2: x - y = 1
Method: SubstitutionSolution: 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 ✓Details
- A system of linear equations is a set of equations in the same unknowns, each a sum of numbers times unknowns (no x², xy or 1/x). Solving it means finding values that make every equation true at once. 2x + 3y = 7 and x - y = 1 have one such pair: x = 2, y = 1. Each equation with two unknowns is a straight line, so the solution is the point where the lines cross.
- Elimination (Gauss-Jordan) writes the numbers as an augmented matrix [A | b], one row per equation, and changes it with three row operations that do not change the answers: swap two rows, multiply a row by a number that is not 0, and add a multiple of one row to another. Column by column it makes a 1 (the pivot) with zeros above and below, until each row reads one unknown = a number. The table shows the matrix after each step, with each operation beside the row it changed, such as R2 → R2 - 2·R1.
- Substitution solves one equation for one unknown (x - y = 1 gives x = 1 + y), puts that into the other equations so they lose an unknown, and repeats; then it works back up to find the rest. It is the quickest by hand when an unknown has a coefficient of 1. Cramer's rule divides determinants: x = Dx / D, where D is the determinant of the coefficients and Dx the same with the x column replaced by the numbers after =. For x + y + z = 6, 2y + 5z = -4, 2x + 5y - z = 27 it gives D = -21 and x = 5, y = 3, z = -2.
- Not every system has one answer. x + y = 2 and 2x + 2y = 5 are parallel lines: elimination ends with a row that reads 0 = 1, so there is no solution. x + y + z = 3 and x - y = 1 have fewer equations than unknowns, and the calculator gives the general solution, x = 2 - 0.5z and y = 1 - 0.5z with z any number, and one of them: x = 2, y = 1, z = 0. The rank row says which case it is: The ranks differ, so there is no solution (Rouché–Capelli).
- Answers are exact. Every number is held as a fraction, so x/2 + y/3 = 1 and x - y = 1/2 give x = 1.4, y = 0.9 with no rounding, and a fraction that is not a short decimal is written as a fraction with its decimal beside it. The augmented matrix rows 2 3 7 and 1 -1 1 are the same system as the first example, so they give x = 2, y = 1 too; with more than three columns the unknowns are named x₁, x₂, x₃ and so on.
Limits
- Linear equations only: a product of unknowns, a power or an unknown under a fraction line is refused with the reason. "Equation 1 (x^2 + y = 3): An unknown to the power 2 is not linear; this calculator solves linear equations (x, not x² or 1/x)."
- Each unknown is one letter or a letter and a number (x, y, z, x1, x2); two letters side by side are read as a product, which is not linear, so write 2x + 3y, not 2xy. Numbers are whole numbers, decimals or fractions; √ and other functions are not read. A matrix row uses spaces, commas, tabs or | between numbers, so mixed numbers such as 1 1/2 must be typed as 3/2.
- There is no limit on the number of equations or unknowns, but the elimination table lists every row of the matrix at every step, so a very large system gives a long table, and exact fractions can grow long digits: a dense 50×50 system takes about a second and 70×70 several. A large system is solved in the background with a Cancel button, so the page keeps working while it runs. With Cramer's rule a system that is not square, or has D = 0, is solved by elimination instead, which the working says. The chart is drawn for two unknowns only.
FAQ
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.