How this calculator works
- Step 1Write[A | b]Coefficients and constants as rows.
- Step 2Eliminaterow operationsSwap, scale and subtract rows.
- Step 3Readx, y, z, …Or spot no or infinitely many solutions.
Each equation becomes a row of numbers: its coefficients and its constant. Row operations change the equations without changing their solution.
When the left side becomes the identity, the right-hand column is the answer. A row of zeros with a non-zero constant means the equations contradict each other.
Worked example: three equations
- Goal
reduce [A | b] to [I | x]
- Augmented rows2 1 −1 8 / −3 −1 2 −11 / −2 1 2 −3
- After elimination1 0 0 2 / 0 1 0 3 / 0 0 1 −1
- Solutionx = 2, y = 3, z = −1
Substituting back: 2(2) + 3 − (−1) = 8, as the first equation says.
Read the result
- One solutionx = 2, y = 12x + y = 5 and x − y = 1 cross once.
- No solutionno solutionx + 2y = 3 and 2x + 4y = 7 are parallel.
Answers stay exact: 3x − 2y = 7 and 5x + 4y = 3 give x = 17/11, y = −13/11. Writing one line twice gives infinitely many solutions.
Assumptions and limits
- LinearNo powers or products of unknowns.
- Square systemsAs many equations as unknowns, 2 to 6.
- ExactFractions, not rounded decimals.
- No general formInfinite cases are flagged, not parametrised.
Related algebra tools
A system of linear equations is a matrix problem written out in full.
To work with the coefficients as a matrix, use the matrix calculator. Single equations of higher degree are handled by the quadratic formula calculator and the cubic equation calculator.
Common mistakes
Mistake: Changing the order of unknowns between lines.
Instead: Keep x, y, z in the same order on every line.
Mistake: Leaving out a missing unknown.
Instead: Type 0 for its coefficient.
Checking the method
A separate script solves every system with Cramer’s rule and determinants in exact fractions, and classifies the rest by rank.
Read how we test our calculators, or browse more maths calculators.