Free Algebra Solver
System of equations

System of Equations Calculator

Enter two to four linear equations separated by commas. The calculator eliminates variables one at a time and checks the answer in every equation.

Interpreted as: 2x + 3y = 7, x - y = 1 (Solve system) Ready
Examples
Solution

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

Worked example. Edit the problem above and press Solve system to solve your own.

Problem2x + 3y = 7, x - y = 1
  1. Line up the variables in each equation

    Move every variable term to the left and the constant to the right, keeping the variables in the same order.

    2x + 3y = 7
    Equation 1
    x − y = 1
    Equation 2

    Rearranging terms on one equation does not change its solutions.

  2. Eliminate one variable

    Scale an equation so one variable has coefficient 1, then subtract multiples of it from the other equations to remove that variable.

    E1 ÷ 2: x + 3/2y = 7/2
    Make the x-coefficient 1
    E2 − (1)·E1: −5/2y = −5/2
    Eliminate x from equation 2
    E2 ÷ −5/2: y = 1
    Make the y-coefficient 1
    E1 − (3/2)·E2: x = 2
    Eliminate y from equation 1

    Adding a multiple of one equation to another keeps every common solution.

  3. Read off the solution

    After elimination each equation contains one variable, so its value can be read directly (this is the same as back-substitution).

    x = 2
    From the reduced system
    y = 1
    From the reduced system

    Each row now says one variable equals a number.

  4. Check the solution in every original equation

    Substitute the values into each original equation.

    2(2) + 3(1) = 7
    Equation 1 is true
    1(2) + −1(1) = 1
    Equation 2 is true

    A solution of a system must make every equation true at the same time.

Answerx = 2, y = 1

Systems guide

How the system of equations calculator solves your problem

The system of equations calculator above solves 2 to 4 linear equations by elimination and shows every step. Below you will find how to solve the same systems by hand with elimination or substitution, and what it means when there is no single answer.

How do you solve a system of equations?

To solve a system of linear equations, find the values that make every equation true at the same time. Use elimination to add or subtract the equations so one variable cancels, or substitution to solve one equation for a variable and plug it into the other. For 2x + 3y = 7 and x − y = 1, the answer is x = 2, y = 1.

What is a system of equations?

A system of equations is two or more equations that share the same variables. The solution is the set of values that works in all of them at once.

With two variables, each linear equation is a straight line. The solution is the point where the lines cross. For 2x + 3y = 7 and x − y = 1, the lines meet at (2, 1), and the calculator draws both lines so you can see it.

How does the system of equations calculator use elimination?

Multiply one or both equations so a variable has opposite coefficients, then add the equations to cancel it. Solve for the variable that is left and substitute back to find the other.

Equation 1
2x + 3y = 7
Equation 2 × 3
3x − 3y = 3
Add
5x = 10, so x = 2
Substitute
2 − y = 1, so y = 1
Check
2(2) + 3(1) = 7 and 2 − 1 = 1

An elimination method calculator does the same thing in a more organized way. This one uses Gauss-Jordan elimination, scaling and combining rows until each equation has one variable left. Its steps look slightly different from the hand method, but the answer is the same.

How do you solve by substitution?

Solve one equation for one variable, then substitute that expression into the other equation. Substitution is easiest when a variable already has a coefficient of 1.

The calculator itself always uses elimination, so it is not a substitution method calculator. You can still check your substitution work against its answer, since both methods give the same solution.

Solve equation 2 for x
x = y + 1
Substitute into equation 1
2(y + 1) + 3y = 7
Simplify
5y + 2 = 7, so y = 1
Back substitute
x = 1 + 1 = 2

Here is another one where substitution fits well: y = 2x − 1 and 3x + 2y = 12. Replace y to get 3x + 2(2x − 1) = 12, so 7x = 14 and x = 2. Then y = 2(2) − 1 = 3.

Should you use elimination or substitution?

Pick substitution when one variable is already alone or has a coefficient of 1. Pick elimination when the coefficients line up or can be matched with one multiplication.

System looks likeGood first choiceWhy
y = 2x − 1, 3x + 2y = 12Substitutiony is already isolated
x − y = 1, x + y = 5EliminationAdding cancels y right away
2x + 3y = 7, x − y = 1EitherOne multiplication sets up elimination

Graphing works too, but it only gives an exact answer when the lines cross at a clean point. Algebra gives exact values every time.

How do you set up a system from a word problem?

Give each unknown its own letter and write one equation for each fact in the problem. Then solve the system the usual way.

Say a school sold 12 tickets for $29. Adult tickets cost $3 and child tickets cost $2. Let a be adult tickets and c be child tickets. The count gives a + c = 12, and the money gives 3a + 2c = 29. Solving gives a = 5 and c = 7. Check it: 5 + 7 = 12 and 15 + 14 = 29.

How do you solve a system with three variables?

Use elimination twice to reduce three equations to two, solve that pair, then substitute back. The calculator handles systems of 3 or 4 equations the same way it handles 2.

Take x + y + z = 6, 2x − y + z = 3, and x + 2y − z = 2. Adding the first and third equations cancels z and gives 2x + 3y = 8. Adding the second and third gives 3x + y = 5. Solving that pair gives x = 1 and y = 2, and then z = 6 − 1 − 2 = 3.

What if there is no solution or infinitely many?

If elimination leaves a false statement like 0 = 2, the system has no solution. If it leaves a true statement like 0 = 0, the system has infinitely many solutions.

For x + y = 3 and 2x + 2y = 8, doubling the first equation gives 2x + 2y = 6, which can never equal 8. The lines are parallel and never meet. For x + y = 3 and 2x + 2y = 6, the second equation is just the first one doubled, so every point on the line works. The calculator writes this as x = 3 − y, with y any real number.

ResultWhat elimination showsGraph
One solutionA value for each variableLines cross at one point
No solutionA false statement like 0 = 2Parallel lines
Infinitely manyA true statement like 0 = 0Same line twice

What are common mistakes when solving systems of equations?

Multiplying only one side of an equation is the most frequent error. If you multiply x − y = 1 by 3, the right side becomes 3 too. Another is stopping after finding x and forgetting to find y.

Always check the pair in both original equations. A solution that works in one equation but not the other means a slip somewhere.

Frequently asked questions

Short answers to the questions people ask most about this topic.

How do I enter equations in the system of equations solver?

Type the equations separated by commas or semicolons, for example 2x + 3y = 7, x - y = 1. You can enter 2, 3, or 4 linear equations.

Which method does the calculator use?

It uses elimination in the Gauss-Jordan form. The steps show each row operation, then a check of the answer in every original equation.

Can it solve simultaneous equations with three unknowns?

Yes. Simultaneous equations is another name for a system. The calculator solves systems with up to 4 variables, such as x + y + z = 6, 2x − y + z = 3, x + 2y − z = 2.

Is substitution or elimination better?

Substitution is quicker when a variable has a coefficient of 1 or is already isolated. Elimination is usually faster when every variable has a coefficient other than 1. Both give the same answer.

What does the graph show?

For a two-variable system, the calculator draws both lines. The point where they cross is the solution. Parallel lines mean no solution, and overlapping lines mean infinitely many.

Can it solve nonlinear systems?

No. The calculator solves linear equations only. A system with x², xy, or variables in a denominator is not supported.

Math keypad

Solve system mode

Use the keypad below or tap the expression to use your phone keyboard.

Keyboard tips

Ctrl + Enter
Run the selected operation
^
Enter a power, such as x^2
sqrt(
Calculate an exact or simplified square root
a:b
Separate quantities in a ratio
12, 18
Separate integers in an LCM and GCD calculation
@ x =
Assign x when evaluating an expression
y =
Enter a polynomial function to graph
|
Wrap an absolute-value expression