Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem

Systems of Equations Calculator

Enter one linear equation per line and get the exact solution, every elimination step, and a clear verdict when a system has no solution or infinitely many.

Up to 6 linear equations in up to 6 variables. Separate equations with new lines or semicolons; fractions and decimals are fine.

Examples

About the Systems of Equations Calculator

A system of equations asks for values that satisfy several equations at the same time. Two lines on a graph meet at one point, never meet, or lie on top of each other, and the same three outcomes exist for systems in any number of variables. This calculator decides which case you have and, when the solution is unique, gives it as exact fractions instead of rounded decimals.

It uses Gauss–Jordan elimination, the systematic method behind substitution and elimination taught in school. Every row operation is listed, so you can follow the arithmetic, compare it with your own elimination, and see exactly where a variable disappears or a contradiction appears.

What is a system of linear equations?

A linear equation has each variable to the first power only, such as 2x+3y=72x + 3y = 7. A system is a collection of such equations sharing the same variables. A solution is an assignment of values that makes every equation true at once.

In two variables, each equation is a straight line and a solution is an intersection point. In three variables, each equation is a plane. The system can be consistent with a unique solution, consistent with infinitely many solutions (dependent equations), or inconsistent with no solution at all.

How to use the Systems of Equations Calculator

  1. Type each equation on its own line, for example 2x + 3y = 7 on the first line and x - y = 1 on the second.
  2. Use any letters as variables. Terms may appear on both sides; the calculator moves them into standard form.
  3. Fractions and decimals are accepted, such as 0.5x + y/3 = 2; decimals are converted to exact fractions.
  4. Press Solve system. Read the standard form and augmented matrix, then the list of row operations.
  5. Read the verdict: a unique solution, a parametric description of infinitely many solutions, or the contradiction that shows there is none.

Formulas

Matrix form

Ax=bA\mathbf{x} = \mathbf{b}

Coefficients form AA, constants form b\mathbf{b}; the augmented matrix is [A∣b][A \mid \mathbf{b}].

Elementary row operations

Ri↔Rj,Ri→kRi (k≠0),Ri→Ri+kRjR_i \leftrightarrow R_j,\quad R_i \to kR_i\ (k \ne 0),\quad R_i \to R_i + kR_j

None of these change the solution set.

Cramer's rule (2 × 2)

x=∣ebfd∣∣abcd∣,y=∣aecf∣∣abcd∣x = \frac{\begin{vmatrix} e & b \\ f & d \end{vmatrix}}{\begin{vmatrix} a & b \\ c & d \end{vmatrix}},\quad y = \frac{\begin{vmatrix} a & e \\ c & f \end{vmatrix}}{\begin{vmatrix} a & b \\ c & d \end{vmatrix}}

For ax+by=eax + by = e, cx+dy=fcx + dy = f with a non-zero determinant.

Worked example: 2x + 3y = 7, x − y = 1

The example solves 2x+3y=72x + 3y = 7 and x−y=1x - y = 1. The engine writes the augmented matrix, scales the first row so its leading entry is 1, clears xx from the second row, then clears yy from the first row.

The reduced matrix reads directly as x=2x = 2 and y=1y = 1. Substituting gives 2(2)+3(1)=72(2) + 3(1) = 7 and 2−1=12 - 1 = 1, so both equations hold.

The solution below is generated by the same engine that powers the calculator above.

Final answer

x=2, y=1x = 2,\ y = 1

How we read your problem

2 linear equations in 2 unknowns (x, y).

{2x+3y=7x−y=1\begin{cases} 2x+3y = 7 \\ x- y = 1 \end{cases}

Step-by-step solution

  1. Write every equation in standard form

    Move all variable terms to the left and constants to the right.

    {2x+3y=7x−y=1\begin{cases} 2x + 3y = 7 \\ x - y = 1 \end{cases}
  2. Build the augmented matrix [A | b]

    Columns: x, y | constant.

    [2371−11]\begin{bmatrix}2 & 3 & 7 \\ 1 & -1 & 1\end{bmatrix}
  3. Gauss–Jordan elimination

    Use row operations to make each pivot 1 and clear the rest of its column.

  4. Divide R1 by 2

    R1→12R1: [132721−11]R_{1} \to \tfrac{1}{2} R_{1}:\ \begin{bmatrix}1 & \frac{3}{2} & \frac{7}{2} \\ 1 & -1 & 1\end{bmatrix}
  5. Clear column 1 using the pivot in R1

    R2→R2−1R1: [132720−52−52]R_{2} \to R_{2} - 1R_{1}:\ \begin{bmatrix}1 & \frac{3}{2} & \frac{7}{2} \\ 0 & -\frac{5}{2} & -\frac{5}{2}\end{bmatrix}
  6. Divide R2 by -5/2

    R2→1−52R2: [13272011]R_{2} \to \tfrac{1}{-\frac{5}{2}} R_{2}:\ \begin{bmatrix}1 & \frac{3}{2} & \frac{7}{2} \\ 0 & 1 & 1\end{bmatrix}
  7. Clear column 2 using the pivot in R2

    R1→R1−32R2: [102011]R_{1} \to R_{1} - \frac{3}{2} R_{2}:\ \begin{bmatrix}1 & 0 & 2 \\ 0 & 1 & 1\end{bmatrix}
  8. Reduced row-echelon form

    [102011]\begin{bmatrix}1 & 0 & 2 \\ 0 & 1 & 1\end{bmatrix}
  9. Read off the unique solution

    x=2, y=1x = 2,\ y = 1

Formulas used

  • Matrix form

    Ax=bA\mathbf{x} = \mathbf{b}
  • Elementary row operations

    Ri↔Rj,Ri→kRi,Ri→Ri+kRjR_i \leftrightarrow R_j,\quad R_i \to kR_i,\quad R_i \to R_i + kR_j

The system has exactly one solution; substituting it back satisfies every equation.

Verification

  • Equation 1: 2x + 3y = 7 ✓
  • Equation 2: x - y = 1 ✓

Detailed explanation

Elimination, substitution and matrices

Substitution solves one equation for a variable and replaces it in the others. Elimination adds multiples of equations so a variable cancels. Gauss–Jordan elimination is elimination done in a fixed order on the augmented matrix: pick a pivot in each column, scale it to 1, and clear every other entry in that column.

The matrix version is not a different method, just tidier bookkeeping. Each row is an equation with the variable names removed, and each row operation is something you could do to the equations by hand. Because the arithmetic uses exact fractions, no rounding error can turn a dependent system into a false unique solution.

Recognising no solution and infinitely many solutions

If elimination produces a row such as [0 0∣5][0\ 0 \mid 5], it says 0=50 = 5, which is impossible, so the system is inconsistent. Geometrically, parallel lines never meet.

If a row becomes all zeros, [0 0∣0][0\ 0 \mid 0], that equation was a combination of the others and adds no information. When there are fewer pivots than variables, the variables without pivots are free. The calculator names them as parameters and writes the other variables in terms of them, describing the whole line or plane of solutions.

Larger systems

Three equations in three unknowns follow the same pattern with one extra column. The method extends to any size, and the calculator handles systems with more equations than unknowns or fewer, reporting the outcome honestly in each case.

Common mistakes

  • Multiplying only one side of an equation, or only some terms, when scaling it.
  • Losing a negative sign when subtracting one equation from another; subtract every term, including the constant.
  • Assuming a system always has exactly one solution. Check for contradictions and zero rows.
  • Writing terms in a different variable order in different equations, which misaligns the columns of the matrix.
  • Rounding fractions midway, which can make a consistent system look slightly inconsistent.

Tips

  • Line up variables in the same order in every equation before you start.
  • Choose to eliminate the variable with the simplest coefficients first.
  • Substitute your answer into every original equation, not just the last one you used.
  • For two variables, sketch the two lines to predict whether they meet once, never or everywhere.

Frequently asked questions

How many equations do I need to solve for three variables?

Usually three independent equations. With fewer, there are free variables and infinitely many solutions; with more, the extra equations must be consistent with the others.

What does it mean when the calculator says no solution?

Elimination produced an impossible statement such as 0 = 5. The equations contradict each other; for two variables, the lines are parallel.

What are free variables?

Variables without a pivot after elimination. They can take any value, and the other variables are expressed in terms of them, giving infinitely many solutions.

Can I enter equations with variables on both sides?

Yes. Each equation is rearranged into standard form, with variable terms on the left and the constant on the right, before elimination begins.

Why are the answers fractions instead of decimals?

The engine works in exact rational arithmetic, so answers such as 7/3 stay exact. Convert to a decimal only at the end if your course asks for it.

Can it solve non-linear systems like x squared plus y squared equals 25?

No. This calculator is for linear systems. For a single polynomial equation, use the equation solver; for intersections of curves, the graphing calculator can show them visually.

Solve your system

Type your equations one per line above and follow each row operation to the exact answer.

More math calculators