About Linear Equation Solver
Type a system of equations such as 2x + y − z = 8, one per line, or paste its augmented matrix. The solver reduces it by Gauss–Jordan elimination and shows every row operation with the matrix after it, so you can follow or check the working by hand.
Arithmetic is exact, in fractions, so the answer is never thrown off by rounding. If the system has a single solution you get each unknown; if it has infinitely many you get the general solution in terms of the free variables; if it has none, the contradictory row is shown. Up to 10 equations in 10 unknowns.
How it works
- Each equation is read into a row of the augmented matrix [A | b]: the coefficient of every unknown, then the constant. Terms can appear on either side of the equals sign.
- Gauss–Jordan elimination swaps rows, scales each pivot to 1 and clears the rest of its column, until the matrix is in reduced row echelon form. A pivot of 1 or −1 is chosen when one is available, to keep the steps simple.
- If a row reads 0 = c with c not zero, there is no solution. Otherwise every unknown without a pivot is free, and the others are written in terms of it.
- All arithmetic uses exact fractions; decimals are only for display, when you choose them.
Questions
How should I type the equations?
One equation per line, with terms like 3x, -y, 0.5z or 2/3w and a single equals sign. Unknowns can be any letters, and terms may be on either side: x + 2 = y is fine.
What does "free variable" mean?
When the equations do not pin down every unknown, some of them can take any value. Choose values for those free variables and the formulas give the remaining unknowns.
Can it solve equations with x² or brackets?
No. It solves linear systems only, where each term is a number times one unknown. Expand brackets first; for one equation in x², use the quadratic equation solver.
How big a system can it handle?
Up to 10 equations and 10 unknowns, with up to 15 digits in each number. The number of equations does not have to match the number of unknowns.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.