Solve 2×2 and 3×3 systems of linear equations with exact fractions, and see every elimination step that gets you to the answer.
Each box takes an integer (−3), a decimal (2.5) or a fraction (3/4). A blank box counts as 0.
The two lines cross at exactly one point.
The solver writes the system as an augmented matrix: one row per equation, holding the coefficients of x, y (and z), then a bar, then the constant. It then uses Gauss-Jordan elimination, which is the elimination method with the equations written as rows. Only three moves are allowed: scale a row by a nonzero number, subtract a multiple of one row from another, and swap two rows. None of them change the solutions, and together they turn the left side into ones on the diagonal and zeros everywhere else, so each row ends up reading one variable = its value.
Every entry is kept as an exact fraction, so 1/3 stays 1/3 instead of turning into 0.333333. The solver also finds the determinant of the coefficient matrix and substitutes the answer back into each original equation as a check.
Solve 2x + 3y = 7 and x − y = 1. The augmented matrix is [2, 3 | 7] over [1, −1 | 1].
Those are the default values above, so you can compare each line of this working with the solver's steps.
With two variables, each linear equation is a line, and there are only three ways two lines can sit:
The determinant tells you quickly whether there is exactly one solution: nonzero means one, zero means none or infinitely many. To tell those last two apart you need the ranks. If rank(A) is less than rank([A | b]), there is no solution. If the two ranks are equal but smaller than the number of variables, there are infinitely many. The same rules hold for three equations, where each equation is a plane instead of a line.
For a slower walk through each method by hand, read the guide to solving systems of equations. The guide to systems of linear equations in 3 variables covers the 3×3 case, and the matrix operations guide explains row operations and determinants. Every tool here is free, needs no sign-up and shows its working: use it to check a problem you have already tried yourself. More calculators are on the free tools page.
A system of equations is a set of two or more equations that share the same unknowns and must all be true at once. Solving the system means finding the values, such as x = 2 and y = 1, that make every equation true together. With two variables, each linear equation is a line, and the solution is the point where the lines cross.
They all give the same answer, because they are the same algebra organized in different ways. Substitution solves one equation for a variable and plugs it into the others. Elimination adds multiples of equations to cancel a variable. The matrix method used here is elimination written as rows of numbers, which keeps the bookkeeping tidy, especially with three variables. Use whichever method your class asks for.
No solution means the equations contradict each other: elimination ends in a row that says 0 = c with c not zero, like two parallel lines that never meet. Infinitely many solutions means at least one equation adds no new information, like two equations for the same line. You then write the answer in parametric form: let a free variable be t, for example y = t, and write the others in terms of it, such as x = 3 − 2t, where t can be any real number.
Elimination divides by pivots, and decimals like 1/3 = 0.3333 never end. Rounding at each step can pile up error, and it can even make a system with no solution look like it has one. Keeping every entry as an exact fraction means each row operation in the steps is exactly what you would write by hand, and the final answer checks perfectly when you substitute it back.
No. The solver handles linear equations only, where each variable appears to the first power and is multiplied by a number. Terms like xy, x² or √x are not supported. A system such as y = x² and y = x + 2 needs substitution and a quadratic, which you can then check with the quadratic formula calculator.
Work the problem yourself first, then take a photo of it. Solver AI on iPhone and iPad shows each step of the solution, so you can see where your answer went wrong.