System of Equations Calculator
Solve 2x2, 3x3, and 4x4 linear systems by elimination, with every row operation shown, exact fractions, a substitution check, and a graph of the lines.
Two unknowns need two equations, three unknowns need three. Fractions such as 1/2 and brackets both work.
Your solution will appear here
Enter your equations on the left, or tap an example to see the full working.
Two unknowns, three, or four — with the working shown
Most solvers hand back a pair of numbers and leave you guessing how they got there. This one prints the augmented matrix after every row operation, so you can hold it next to your own paper and find the exact line where the arithmetic went sideways. It also says plainly when a system has no solution or infinitely many, instead of returning an error.
What this solver gives you
Every row operation, in order
Swap, divide, subtract — each step appears with the matrix as it stood at that moment. This is the part a graphing calculator hides.
Exact fractions, never rounded
Coefficients are stored as rationals, so an answer of 5/7 stays 5/7. A rounded decimal sits underneath when you need one for a report.
The awkward cases named properly
Parallel lines, repeated equations, more equations than unknowns. Each gets a plain explanation rather than a blank result.
A check you can trust
The solution is substituted back into your original equations and both sides are printed, so the answer is verified rather than asserted.
Which method fits which system
Coursework usually names three ways to solve a linear system. They all reach the same answer; the difference is how much work each one takes.
- SubstitutionFastest when one equation already has an unknown on its own, such as y = 2x + 1.
- EliminationBest once you reach three or four unknowns. This is what the calculator runs.
- Cramer's ruleHandy for a square system when you only need one unknown and the determinant is not zero.
- GraphingUseful for two unknowns to see the answer, but hard to read off exactly.
How this System of Equations Calculator works
Paste your equations and the calculator reads each line the way you wrote it: left side, equals sign, right side. It expands any brackets, clears fractions, and moves every unknown to the left so each line lands in the standard form ax + by = c. Those coefficients are kept as exact fractions, which is why a third stays 1/3 instead of drifting into 0.3333.
The rows then go into an augmented matrix and the solver runs Gauss-Jordan elimination. It picks a pivot in the first column, favouring one worth 1 or −1 so the printed arithmetic stays readable, divides that row down to a single unknown, and subtracts multiples of it from every other row. It repeats this column by column until each unknown sits alone in its own row.
What comes out tells you which of three things happened. If every unknown gets its own pivot, there is exactly one answer, and the calculator substitutes it back into your original equations to prove it. If a row collapses to 0 = 5, the equations contradict each other and nothing can satisfy them. If a row collapses to 0 = 0, one equation repeated another, so the calculator names the free unknowns and writes the rest in terms of them.
Square systems also get their determinant and the Cramer's rule numerators. Systems with two unknowns get a graph of both lines. All of it runs in your browser.
How to use this System of Equations Calculator
Enter your equations
Put one equation on each line, such as 2x + 3y = 12. Or switch to the grid and type the coefficients into boxes.
Press Solve
The calculator lines the equations up, eliminates one unknown at a time, and reports whether you get one answer, none, or a whole family.
Check the working
Compare each row against your own paper, read the substitution check, and open the graph when the system has two unknowns.
Example Usage
Solving three equations with three unknowns:
Frequently Asked Questions
How many equations do I need to solve for three unknowns?
Does this calculator use substitution or elimination?
Can it handle 3 x 3 and 4 x 4 systems?
Why does it say there is no solution?
What does "infinitely many solutions" actually mean?
How do I type fractions, decimals, and brackets?
Can I use letters other than x, y, and z?
Will it solve a nonlinear system such as x² + y² = 25?
Why is the answer shown as a fraction instead of a decimal?
What is the determinant used for here?
Can I use this to check my homework?
Is anything I type uploaded?
Related Tools
Scientific Calculator
Run trigonometry, logarithm, power, and root calculations in your browser.
Algebra Calculator
Solve linear and quadratic equations, simplify expressions, and work through systems of equations with the steps shown.
Integral Calculator
Find antiderivatives and evaluate definite integrals, with the integration rules and numeric area shown for each step.
Quadratic Formula Calculator
Solve any ax² + bx + c = 0 equation and see the discriminant, both roots, the vertex, and every step of the working.
Percentage Calculator
Work out what percent of a number, what percent one number is of another, percentage increase and decrease, and discounts or markups. Five calculators on one page.
Standard Deviation Calculator
Calculate population and sample standard deviation, mean, variance, and full summary statistics for any data set.
The System of Equations Calculator is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

