System of Equations Calculator

Solve a system of two or three linear equations and see the work. Switch between substitution and elimination, get exact fractions, and find out right away if a system has no solution or infinitely many. Everything runs in the browser.

  • 2x2 and 3x3 systems
  • Substitution steps
  • Elimination steps
  • Stays on your device
System size
xy
xy

Enter the coefficients of each equation in the form ax + by = d. Use 0 for a missing variable. Decimals and fractions like 1/3 work.

Step-by-step work

  1. Start: R1: 2x + y = 5 | R2: x − y = 1
  2. Divide R1 by 2 to make the x coefficient 1: R1: x + (1/2)y = 5/2
  3. Eliminate x from R2: R2 − R1 → R2: −(3/2)y = −3/2
  4. Divide R2 by −3/2 to make the y coefficient 1: R2: y = 1
  5. Eliminate y from R1: R1 − 1/2 × R2 → R1: x = 2
  6. Read off the answer: x = 2, y = 1

Numbers stay on this device. Nothing is uploaded, and there is no account.

Solve a system of equations by substitution or elimination

Substitution solves one equation for a variable and plugs it into the rest. Elimination adds or subtracts multiples of the equations until a variable cancels. Both reach the same answer, so use whichever is easier to follow. This solve system of equations calculator writes out both methods.

Example: a 2x2 system

Solve 2x + y = 5 and x − y = 1. Adding the equations cancels y and gives 3x = 6, so x = 2. Then 2(2) + y = 5, so y = 1. The solution is (2, 1), the point where the two lines cross.

Example: a 3x3 system

Solve x + y + z = 6, 2y + 5z = −4, and 2x + 5y − z = 27. Eliminating x from the third equation leaves 3y − 3z = 15, which simplifies to y − z = 5. Combining that with 2y + 5z = −4 gives z = −2, then y = 3 and x = 5.

Each equation is a line, so you can find a line's steepness with the slope calculator. If one equation has an x² term, use the quadratic formula calculator. You can also simplify fractions in your answers with the GCF calculator or browse more tools in the Math hub.

How to use the system of equations calculator

  1. Choose a 2x2 or 3x3 system.
  2. Enter the coefficients and the constant for each equation, using 0 for a missing variable.
  3. Read the solution, the system type, and the determinant in the result panel.
  4. Switch between Elimination and Substitution to see the steps written out.

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. A solution is a set of values that makes every equation true at the same time. A 2x2 system has two equations and two unknowns (x and y), and a 3x3 system has three equations and three unknowns (x, y, and z).

How do I solve a system of equations by substitution?

Solve one equation for one variable, then substitute that expression into the other equations. For x + y = 5 and 2x − y = 1, the first gives y = 5 − x. Substituting into the second gives 2x − (5 − x) = 1, so 3x = 6 and x = 2. Then y = 5 − 2 = 3. The calculator writes out each of these steps on the Substitution tab.

How do I solve a system of equations by elimination?

Add or subtract multiples of the equations so that one variable cancels. For x + y = 5 and 2x − y = 1, adding the equations gives 3x = 6, so x = 2, and then y = 3. For three equations, eliminate one variable from two pairs to get a 2x2 system, then finish as usual. The Elimination tab shows each row operation, such as R2 − 2 × R1.

What does it mean when there is no solution?

The equations contradict each other, so no values of the variables satisfy all of them. For x + y = 2 and 2x + 2y = 5, doubling the first equation gives 2x + 2y = 4, which cannot also equal 5. While solving you end up with a false statement such as 0 = 1. Graphically, the two lines are parallel and never meet.

What does it mean when there are infinitely many solutions?

One equation is just a multiple or combination of the others, so they describe the same line (or plane). For x + y = 2 and 2x + 2y = 4, every point on the line works. While solving you end up with 0 = 0. The determinant of the coefficients is 0 in this case, just as it is for no solution, so the steps tell you which case you have.

What is the determinant of a system?

The determinant is a number built from the coefficients (ad − bc for a 2x2 system). If it is not 0, the system has exactly one solution. If it is 0, the system has either no solution or infinitely many. This system of equations calculator shows the determinant next to the answer.

Can I enter fractions and decimals?

Yes. Enter integers, decimals like 2.5, or fractions like 1/3 in any box, and use 0 for a variable that is missing from an equation. Answers are computed with exact fractions, so a result like x = 2/3 is shown exactly, along with its decimal value, instead of being rounded early.

Is my information saved or uploaded?

No. The system of equations calculator runs entirely in your browser. Numbers are not sent to a server or stored, and there is no account.