Skip to content
√Solver AI
Study guidesFree toolsAbout
Get the app
√Solver AI

Step-by-step homework help for math and science, in your pocket.

Contact: support@solverai.app

Download on the App Store

Solvers

  • Algebra solver
  • Calculus solver
  • Geometry solver
  • Trigonometry solver
  • Statistics solver
  • Equation solver
  • Chemistry solver
  • Physics solver

Help with

  • Fractions
  • Derivatives
  • Integrals
  • Quadratics
  • Percentages
  • Matrices

Free tools

  • Quadratic formula calculator
  • Fraction calculator
  • Percentage calculator
  • Standard deviation calculator
  • Kinematics calculator (SUVAT)
  • Slope calculator
  • Molar mass calculator
  • System of equations solver
  • All tools

Solver AI

  • Study guides
  • About
  • Support
  • Best math solver apps
  • Privacy policy
  • Terms of use

© 2026 Solver AI. All rights reserved.

  1. Home
  2. Free tools
  3. System of equations solver

System of equations solver

Solve 2×2 and 3×3 systems of linear equations with exact fractions, and see every elimination step that gets you to the answer.

Number of equations

Each box takes an integer (−3), a decimal (2.5) or a fraction (3/4). A blank box counts as 0.

x +
y =
x +
y =
Try an example
One solutionx = 2y = 1

The two lines cross at exactly one point.

Determinantdet A = −5Nonzero, so there is exactly one solution.
The system2x + 3y = 7x − y = 1
Check2(2) + 3(1) = 7 ✓, matches the constant(2) − (1) = 1 ✓, matches the constant

Step by step

  1. Write the system as the augmented matrix [A | b]:
    2371−11
  2. R1 → (1/2)R1
    13/27/21−11
  3. R2 → R2 − R1
    13/27/20−5/2−5/2
  4. R2 → −(2/5)R2
    13/27/2011
  5. R1 → R1 − (3/2)R2
    102011
  6. Reduced row echelon form:
    102011
    Each row now reads one variable = its value.

How it works

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.

Worked example

Solve 2x + 3y = 7 and x − y = 1. The augmented matrix is [2, 3 | 7] over [1, −1 | 1].

  1. R1 → (1/2)R1 makes the first pivot 1: the first row becomes [1, 3/2 | 7/2].
  2. R2 → R2 − R1 clears x from the second row: [0, −5/2 | −5/2].
  3. R2 → −(2/5)R2 makes the second pivot 1: [0, 1 | 1], so y = 1.
  4. R1 → R1 − (3/2)R2 clears y from the first row: [1, 0 | 2], so x = 2.
  5. The solution is x = 2, y = 1.
  6. Determinant: det A = 2(−1) − 3(1) = −5. It is not zero, which confirms there is exactly one solution.
  7. Check: 2(2) + 3(1) = 7 and 2 − 1 = 1. Both equations hold.

Those are the default values above, so you can compare each line of this working with the solver's steps.

One solution, no solution or infinitely many

With two variables, each linear equation is a line, and there are only three ways two lines can sit:

  • One solution. The lines cross at a single point. The determinant is nonzero, and elimination puts a pivot in every column.
  • No solution. The lines are parallel, like x + 2y = 3 and 2x + 4y = 5. Elimination leaves a row that says 0 = c with c not zero, which is impossible. The rank of A is smaller than the rank of [A | b].
  • Infinitely many solutions. Both equations describe the same line, like x + 2y = 3 and 2x + 4y = 6. Elimination leaves a row of all zeros, 0 = 0. The rank is less than the number of variables, so one variable is free and the answer is written with a parameter: x = 3 − 2t, y = t.

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.

Frequently asked questions

What is a system of equations?

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.

Is elimination, substitution or the matrix method better?

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.

What do no solution and infinitely many solutions mean?

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.

Why does the solver use exact fractions?

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.

Can it solve nonlinear systems?

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.

Check your algebra homework

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.

Download on the App StoreTry a free tool →