System of Equations Calculator

Solve a system of two linear equations in x and y.













Enter the coefficients, then press Calculate.

System of Equations Calculator: Solve Linear Equations With Step-by-Step Solutions

The first time a system of equations saved me real money was at a school fair, and the System of Equations Calculator is the tool I reach for now whenever two unknowns hide in two equations. I was selling tickets at the gate: adult tickets at $5, child tickets at $3, and by the end of the evening we had sold 100 tickets for $420. I knew the total tickets and the total money, but not how many of each kind we had sold. Two equations, two unknowns: adult plus child equals 100, and five times adult plus three times child equals 420. I worked them together and found 60 adult tickets and 40 child tickets, and the money checked out exactly. I have used the same idea ever since, on mixtures, on boat speeds and on shop bills, because two equations together answer questions one equation cannot.

At a glance:

  • It takes two or more equations and finds the values that satisfy all of them at once.
  • A system has one unique solution, no solution, or infinitely many solutions.
  • Substitution, elimination, graphical and matrix methods all solve the same system.
  • The ticket example: 60 adult tickets at $5 and 40 child tickets at $3 make 100 tickets and $420.
  • CalcSolver has no system tool yet, so every method here is worked by hand.

What Is a System of Equations Calculator?

A System of Equations Calculator is a tool that takes two or more equations and finds the values that satisfy all of them at once. You give it the equations, and it works out the unknowns from them, with the steps underneath. A solving systems of equations calculator does that job for two equations, three equations or more, so you type the equations once and read the answer together.

Definition of a system of equations

A system of equations is two or more equations that share the same unknowns, and a solution is a set of values that makes every equation true at the same time. For x + y = 5 and x − y = 1, the pair x = 3 and y = 2 works in both: 3 + 2 = 5 and 3 − 2 = 1. The system of linear equations article on Wikipedia sets out the definition, the types and the methods in full. A system is linear when every equation is a straight line, with no squares, no products of unknowns and no unknowns in denominators.

How multiple equations work together?

Each equation on its own has many answers, but together they narrow the answers down. Only (3, 2) satisfies both at once, so the System of Equations Calculator returns one answer where each equation alone has many. That narrowing is the whole point of a system: one equation cannot pin down two unknowns, and two equations can.

Understanding variables, constants, and coefficients

A variable is a letter that stands for an unknown number, usually x, y or z. A coefficient is the number in front of a variable, like the 2 in 2x or the 3 in 3y, and it tells you how much of that variable the equation has. A constant is a plain number with no variable, like the 5 in x + y = 5.

Difference between a single equation and a system of equations

A single equation has one unknown and one answer, or one unknown and a rule for it. The equation 3x + 5 = 20 has one unknown, x, and the answer is x = 5. A system has two or more unknowns and two or more equations, and the answer is a set of values that works in every equation at once. The Equation Solver on CalcSolver solves one linear equation, ax + b = c, for x, and a system needs a method that handles all its equations together, like substitution or elimination.

How to Use the System of Equations Calculator?

The routine never changes, whatever the system looks like. Write the equations, count the unknowns, pick a method, and work it through with the steps underneath. To solve the system, start with the simplest equation and the smallest numbers, because a clean start keeps the arithmetic clean. A solving systems of equations calculator takes the same routine and does the arithmetic for you, but the steps are the same ones you would write by hand.

Enter two or more equations

Write each equation on its own line, with the same unknowns in the same order in every equation. Put x first, then y, then z, and keep the constants on the right side of the equals sign. Two equations need two unknowns, and three equations need three unknowns, because each equation can pin down one unknown. Read them in that order, because a swapped column gives a swapped answer.

Add variables and coefficients correctly

Give every unknown the same letter in every equation, and give every term its sign. The x in the first equation is the same x in the second, so x + y = 5 and x − y = 1 share the same x and the same y. A missing term is a zero coefficient, so write the zero in when you line the equations up.

Submit the equations to find their solutions

Work the method through, and the System of Equations Calculator returns the set of values that satisfies every equation. For x + y = 5 and x − y = 1, the answer is x = 3 and y = 2, and the check is putting both values back into both equations. The steps show the working underneath, so you can see why the answer is right and not just what it is.

Understand the calculated results and steps

The answer is one set of values, or the news that there is no answer, or that there are infinitely many. A unique answer is a point, like (3, 2), where the two lines cross. No answer means the lines never meet, and infinitely many means the two equations are the same line. Read the steps with the answer, because the steps show which method was used and where each number came from.

Tips for entering equations correctly

Keep the unknowns in the same order, keep the constants on the right, and write the sign of every term. Put brackets around a negative number when you substitute it, because −(3) is not the same as −3 in a product.

Types of Solutions in a System of Equations

A system of two linear equations has three possible outcomes, and the outcome is set by how the lines sit. The lines cross once, never meet, or lie on top of each other, and each shape gives a different kind of answer. The working shows which outcome you have in the numbers before the answer.

One Unique Solution: Consistent and Independent System

One unique solution means the two lines cross at exactly one point, and that point is the answer. The system x + y = 5 and x − y = 1 has the unique solution x = 3 and y = 2, because the lines cross at (3, 2) and nowhere else. The System of Equations Calculator returns one point for a system like this, and that point is the answer. A system with one solution is called consistent and independent, because the equations agree and neither one is a copy of the other.

No Solution: Inconsistent System

No solution means the two lines never meet, because they are parallel. The system x + y = 3 and x + y = 5 has no solution, because no pair can add to 3 and to 5 at the same time. A system with no solution is called inconsistent, and the working ends in a false statement like 0 = 2. The System of Equations Calculator names that outcome no solution, and the false statement is the proof.

Infinitely Many Solutions: Dependent System

Infinitely many solutions means the two equations are the same line, so every point on the line is an answer. The system x + y = 5 and 2x + 2y = 10 has infinitely many solutions, because the second equation is twice the first, and the answer is y = 5 − x for any x.

Methods for Solving Systems of Linear Equations

The System of Equations Calculator solves a system by one of four methods, and the best one is the one with the smallest numbers. Substitution suits a lone variable, elimination suits lined-up coefficients, the graphical method suits a picture, and the matrix method suits a system too big to hold in your head.

Substitution Method

Isolate one variable in one equation, so it stands alone on one side. From x + y = 5, x is 5 − y. Substitute that expression into the other equation, so the second equation has one unknown instead of two. To solve the system by substitution, put x = 5 − y into x − y = 1, which gives (5 − y) − y = 1, so 5 − 2y = 1 and y = 2, then x = 3. Verify the result by putting both values back: 3 + 2 = 5 and 3 − 2 = 1.

Elimination Method

The System of Equations Calculator aligns the equations first, so the same unknowns sit in the same columns, and the constants sit on the right. Add or subtract the equations to eliminate a variable, so one unknown disappears and the other is left alone. For 2x + 3y = 12 and 3x − y = 7, multiply the second equation by 3 to get 9x − 3y = 21, then add the two: 11x = 33, so x = 3. Calculate the remaining unknowns by putting x = 3 back into either equation: 3 × 3 − y = 7, so y = 2, and the check is 2 × 3 + 3 × 2 = 12.

Addition Method for Solving Systems of Equations

The addition method is the elimination method by its other name, and it works by adding two equations so one variable cancels out. When the coefficients are already opposites, the System of Equations Calculator adds the equations as they are: x + y = 5 and x − y = 1 add to 2x = 6, so x = 3 and y = 2. When they are not opposites, multiply one equation first so they become opposites, then add.

Graphical Method

The System of Equations Calculator draws each equation as a line on the coordinate plane, and the answer is where the lines meet. For y = 2x + 1 and y = −x + 4, the lines cross at (1, 3), so x = 1 and y = 3. Parallel lines never meet, so they have no solution, and overlapping lines are the same line, so they have infinitely many. The Slope Calculator on CalcSolver works out the slope of each line from two points, and the slope tells you at a glance whether the lines cross, run parallel or overlap.

Matrix Method

The System of Equations Calculator writes the system as an augmented matrix, with the coefficients on the left and the constants on the right. For x + y = 5 and 2x − y = 1, the matrix is [1, 1 | 5; 2, −1 | 1]. Work through the system using Gaussian elimination: subtract twice the first row from the second to get [1, 1 | 5; 0, −3 | −9], then divide the second row by −3 to get [1, 1 | 5; 0, 1 | 3], then subtract the second row from the first to get [1, 0 | 2; 0, 1 | 3]. The matrix is now in reduced row echelon form (RREF), and it reads x = 2 and y = 3.

Solving Systems of Equations With Two and Three Variables

Two equations with two unknowns give a point, and three equations with three unknowns give a point in space. The method is the same in both cases: take the equations two at a time until one unknown is left, then work backwards. The System of Equations Calculator handles both sizes from the same routine, and the steps grow by one round for each extra unknown.

How to Solve Two Linear Equations With Two Variables?

The System of Equations Calculator takes the two equations, picks substitution or elimination, and works them down to one unknown. For x + y = 5 and x − y = 1, add them to get 2x = 6, so x = 3, then y = 2. The answer is the point (3, 2), and the check is putting it back into both equations. Two lines cross at one point, run parallel, or overlap, so the answer is one point, no point, or every point on the line. Systems of two linear equations are taught in the US Common Core in Grade 8 (8.EE.C.8), tested at UK GCSE, covered in India’s NCERT Class 10 chapter on a pair of linear equations in two variables, and drilled on Khan Academy and in SAT and ACT practice.

How to Solve Three Equations With Three Variables (x, y, z)?

Take the three equations two at a time and eliminate one unknown, until two equations with two unknowns are left, then solve that pair. For x + y + z = 6, 2x + y − z = 1 and x − y + 2z = 5, add the second and third to get 3x + z = 6, and add the first and third to get 2x + 3z = 11. Solve that pair: z = 6 − 3x, so 2x + 3(6 − 3x) = 11, which gives x = 1 and z = 3, then y = 2 from the first equation. The answer is (1, 2, 3), and the check is putting all three values into all three equations.

Understanding Intersecting Lines and Planes

Two lines in a plane cross at one point, run parallel, or overlap, and the system reads the same three ways. Three planes in space meet at one point, along one line, or not at all, and the System of Equations Calculator reads a system of three equations the same way: one point is one solution, a line of intersection is infinitely many, and parallel planes are no solution.

System of Equations Calculator with two lines crossing on a bright blue grid beside a calculator on dark navy
Two lines, one crossing point: that point is the answer to both equations.

Step-by-Step Examples Using a System of Equations Calculator

Six examples, each one worked in full, from the easiest method to the two edge cases. I worked each one by hand first, because the habit of checking the answer in both equations catches the one mistake that ruins more systems than any other. The System of Equations Calculator checks each answer in the equations it came from, and so should you.

Example 1: Solve Two Equations Using Substitution

The System of Equations Calculator solves x + 2y = 8 and 3x − y = 3 by substitution. From the second equation, y = 3x − 3. Substitute that into the first: x + 2(3x − 3) = 8, so x + 6x − 6 = 8 and 7x = 14, so x = 2. Then y = 3 × 2 − 3 = 3. I check the answer by putting x = 2 and y = 3 back into both equations: 2 + 6 = 8 and 6 − 3 = 3, so the answer (2, 3) is right.

Example 2: Solve a System Using the Elimination Method

Solve 2x + 3y = 12 and 3x − y = 7. Multiply the second equation by 3 to get 9x − 3y = 21, then add the two equations: 11x = 33, so x = 3. Put x = 3 into 3x − y = 7 to get 9 − y = 7, so y = 2. I check the answer in the first equation: 2 × 3 + 3 × 2 = 6 + 6 = 12, so the answer (3, 2) is right.

Example 3: Find Solutions Using the Graphical Method

Solve y = 2x + 1 and y = −x + 4. The first line has slope 2 and y-intercept 1, and the second has slope −1 and y-intercept 4. The lines cross where 2x + 1 = −x + 4, so 3x = 3 and x = 1, and y = 2 × 1 + 1 = 3. The answer is (1, 3), and the System of Equations Calculator shows it as the point where the two lines meet.

Example 4: Solve Three Equations With Three Variables

Solve x + y + z = 6, 2x + y − z = 1 and x − y + 2z = 5. Add the second and third equations to get 3x + z = 6, and add the first and third to get 2x + 3z = 11. From 3x + z = 6, z = 6 − 3x, so 2x + 3(6 − 3x) = 11, which gives −7x = −7 and x = 1. Then z = 3, and y = 2 from the first equation. I check the answer in all three equations: 1 + 2 + 3 = 6, 2 + 2 − 3 = 1 and 1 − 2 + 6 = 5, so the answer (1, 2, 3) is right.

Example 5: Identify a System With No Solution

Solve x + y = 3 and 2x + 2y = 8. Divide the second equation by 2 to get x + y = 4, which contradicts the first equation, because no pair adds to 3 and to 4 at the same time. Subtract the first from the second as written, and the working ends in 0 = 2, which is false. The lines are parallel, so they never meet, and the answer is no solution. The System of Equations Calculator reports no solution for a system like this, and the steps show the false statement that proves it.

Example 6: Identify a System With Infinitely Many Solutions

Solve x + y = 5 and 2x + 2y = 10. Divide the second equation by 2 to get x + y = 5, which is the first equation again, so the two equations are the same line. Every point on the line is an answer, and the answer is written as y = 5 − x for any x. The lines overlap exactly, so the system is dependent and has infinitely many solutions. The working shows the same line twice, and the steps end in 0 = 0, which is true for every x.

Real-World Applications of Systems of Equations

Systems of equations earn their keep outside the textbook, wherever two unknowns hide in two facts. The mixture, the boat, the shop bill and the ages below are the four kinds of word problems that come up most, and each one turns into two equations with one answer. The System of Equations Calculator turns each story into a system, and the system turns into an answer.

Mixture Problems in Chemistry

Mix 10 liters of 10% acid with 30% acid to make 20 liters of 20% acid. Let x be the liters of 10% acid and y the liters of 30% acid, so x + y = 20 and 0.10x + 0.30y = 0.20 × 20 = 4. From the first, y = 20 − x, so 0.10x + 0.30(20 − x) = 4, which gives 0.10x + 6 − 0.30x = 4, so −0.20x = −2 and x = 10, then y = 10. The System of Equations Calculator mixes 10 liters of each, and the check is 1 + 3 = 4 liters of pure acid in 20 liters, which is 20%.

Wind, Current, Distance, and Speed Problems in Physics

A boat goes 60 kilometers downstream in 2 hours and 60 kilometers upstream in 3 hours. Let b be the boat speed and c the current speed, so b + c = 30 and b − c = 20. The System of Equations Calculator adds them to get 2b = 50, so b = 25, then c = 5. The boat moves at 25 kilometers per hour in still water, and the current runs at 5 kilometers per hour.

Cost, Revenue, and Business Calculations

A shop sells pens at $1 and notebooks at $4. Two pens and three notebooks cost $14, and one pen and two notebooks cost $9. Let p be the pen price and n the notebook price, so 2p + 3n = 14 and p + 2n = 9. From the second, p = 9 − 2n, so 2(9 − 2n) + 3n = 14, which gives 18 − n = 14 and n = 4, then p = 1. The System of Equations Calculator prices the pen at $1 and the notebook at $4, and the check is 2 + 12 = 14 and 1 + 8 = 9.

Age and Number-Based Word Problems

A father is three times as old as his son, and in 10 years he will be twice as old. Let f be the father’s age and s the son’s, so f = 3s and f + 10 = 2(s + 10). Substitute the first into the second: 3s + 10 = 2s + 20, so s = 10 and f = 30. The son is 10 and the father is 30, and the check is 40 = 2 × 20 in ten years’ time.

Common Mistakes When Solving Systems of Equations

Incorrectly rearranging equations

Moving a term across the equals sign changes its sign, and forgetting that is the most common mistake in a system. From x + y = 5, x is 5 − y, not 5 + y, and from 2x − y = 7, y is 2x − 7, not 7 − 2x.

Making sign errors during elimination

Elimination adds or subtracts whole equations, and every term takes its sign with it. Subtracting 3x − y = 7 from 2x + 3y = 12 gives (2x − 3x) + (3y − (−y)) = 12 − 7, which is −x + 4y = 5, not −x + 2y = 5, because minus a minus is a plus. The System of Equations Calculator keeps every sign with its term, and so should you, one term at a time.

Substituting variables incorrectly

Substitution replaces a variable with a whole expression, brackets and all, and dropping the brackets is the mistake that loses the minus. Substituting y = 3x − 3 into x + 2y = 8 gives x + 2(3x − 3) = 8, not x + 2 × 3x − 3 = 8, because the 2 multiplies the whole of (3x − 3).

Forgetting to verify solutions

An answer is not an answer until it has been checked in every equation, because a system has two equations and an answer must satisfy both. The pair (3, 2) checks in x + y = 5 and in x − y = 1, and a pair that checks in one but not the other is wrong. Check every answer on the System of Equations Calculator by putting it back into both equations, because the check takes seconds while a wrong answer costs the whole question.

Confusing no solution with infinitely many solutions

No solution and infinitely many solutions are opposites, and the working tells them apart. The System of Equations Calculator ends a no-solution system in a false statement like 0 = 2, because the lines are parallel and never meet. Infinitely many ends in a true statement like 0 = 0, because the equations are the same line.

Frequently Asked Questions

What is a system of equations calculator?

A system of equations calculator is a tool that takes two or more equations and finds the values that satisfy all of them at once. You enter the equations, and it returns the unknowns with the steps underneath. It takes the equations you type and gives the answer with the steps, so you can see how the answer was found.

How do you solve a system of equations?

To solve the system, use substitution or elimination, or plot the lines and read the intersection. Pick the method with the smallest numbers, work it through, and check the answer in every equation. A system of equations calculator does the same working, with the steps shown.

Which method is easiest for solving systems of equations?

Substitution is easiest when one variable stands alone, because the substitution is one step. Elimination is easiest when the coefficients already line up, because the addition is one step. The graphical method is easiest for seeing the answer, but reading a point off a graph is less exact than the arithmetic.

Can a system of equations have no solution?

Yes. A system has no solution when the lines are parallel, because parallel lines never meet. For x + y = 3 and x + y = 5, no pair satisfies both, and the working ends in 0 = 2.

Can a system of equations have infinitely many solutions?

Yes. A system has infinitely many solutions when the equations are the same line, because every point on the line is an answer. For x + y = 5 and 2x + 2y = 10, the answer is y = 5 − x for any x.

How do you solve a system of equations with three variables?

The System of Equations Calculator takes the equations two at a time and eliminates one unknown, until two equations with two unknowns are left, then works that pair and works backwards. For x + y + z = 6, 2x + y − z = 1 and x − y + 2z = 5, the answer is (1, 2, 3).

Can I solve systems of equations with an online calculator?

Yes, online calculators for systems of equations exist, and they solve two and three variable systems with steps. CalcSolver does not have one yet: the Equation Solver on CalcSolver handles one linear equation, ax + b = c, and a system needs its own tool. Until that tool exists, the methods in this article are worked by hand, and a solving systems of equations calculator on another site will show the same working.

What is the difference between substitution and elimination?

Substitution isolates one variable and puts its expression into the other equation, so the system drops to one unknown. Elimination adds or subtracts whole equations so one variable cancels out, and the system drops to one unknown that way.

How does the graphical method solve a system of equations?

It plots each equation as a straight line on the same coordinate plane, and the answer is where the lines meet. Two lines cross at one point for one solution, run parallel for no solution, or overlap for infinitely many.

Related Math Calculators and Tools

The System of Equations Calculator sits well with a small set of tools on CalcSolver. The Equation Solver on CalcSolver handles one linear equation, ax + b = c, and the Quadratic Equation Solver on CalcSolver handles the next step, when one of the equations has an x² term. A system of equations calculator is the tool for two or more equations together, and whichever name you search for, this CalcSolver page is the one you want. The Equation Solver, the Quadratic Equation Solver and the Slope Calculator are all on CalcSolver, and each one links to the next.

Try your own system now: the two equations from your homework, the mixture on your bench, or the tickets at your gate. The System of Equations Calculator does the arithmetic in a second, but the habit of checking the answer in every equation is what actually keeps you right.