A system of equations solver finds the values that make several equations true at the same time. Type your equations one per line, and this system of equations solver works out each variable, then checks the answer by putting the values back in. It handles two, three or more unknowns, with up to six variables, and it accepts decimals, fractions and terms on both sides of the equals sign. If the equations contradict each other or don't pin down one answer, the solver tells you so. It's useful for algebra homework, for checking your working, and for practical problems in budgeting, mixing or engineering.
How to use the system of equations solver
- Type each equation on its own line, like 2x + 3y = 7.
- Use any letters for your variables.
- Press Solve.
- Read the answer and the check for each equation.
What is a system of linear equations?
A system of linear equations is a collection of two or more linear equations that involve the same variables. A linear equation has no powers or products of variables, so 3x + 2y = 1 is linear, whereas xy = 6 isn't. Linear systems are a fundamental part of linear algebra, and methods for solving them play a prominent role in engineering, physics, chemistry, computer science and economics.
Worked examples
Two variables. Take 2x + 3y = 7 and x − y = 1. From the second equation, x = y + 1. Substituting into the first gives 2(y + 1) + 3y = 7, so 5y + 2 = 7 and y = 1. Then x = 2. You can check that 2 × 2 + 3 × 1 = 7, and 2 − 1 = 1.
Three variables. Take 3x + 2y − z = 1, 2x − 2y + 4z = −2 and −x + 0.5y − z = 0. The solver finds x = 1, y = −2 and z = −2. Substituting these values into the first equation gives 3 − 4 + 2 = 1, which confirms the result.
How the solver works
The solver uses Gauss-Jordan elimination, also known as row reduction. It writes the numbers from your equations as a grid, then adds multiples of one row to another until each variable appears in just one row. To keep rounding errors small, it always picks the largest available number in each column as its pivot. This is the same method that you would use by hand, and it works for any number of variables.
The three possible outcomes
| Result | What it means | Example |
|---|---|---|
| One solution | Exactly one set of values works | x + y = 3 and x − y = 1 |
| No solution | The equations contradict each other | x + y = 3 and x + y = 5 |
| Infinitely many | The equations don't fix every value | x + y = 3 and 2x + 2y = 6 |
With two variables, each equation describes a straight line. One solution is where two lines cross. No solution means that the lines are parallel. Infinitely many solutions means that both equations describe the same line.
Solving by hand
- Substitution: rearrange one equation for a variable, then replace that variable in the others.
- Elimination: add or subtract equations so that one variable cancels out.
- Graphing: draw the lines and read off the point where they cross.
- Row reduction: the systematic version of elimination, which suits larger systems.
How to enter equations
- Coefficients go directly in front of the letter, as in 3x. A star is fine too, as in 3*x.
- A letter alone means a coefficient of 1, so x is the same as 1x.
- Fractions can be typed as 1/2x, which is half of x.
- Both sides can hold variables and numbers, as in 2x + 1 = y + 4.
- Capital and lowercase letters count as the same variable.
The solver doesn't expand brackets, so multiply them out first. It also can't solve equations containing powers, such as x squared, because those aren't linear.
Real-world uses
Many everyday problems reduce to a linear system. Suppose that two adult tickets and three child tickets cost $31, while one adult and one child ticket cost $13. Calling the prices a and c gives 2a + 3c = 31 and a + c = 13, so a child's ticket is $5 and an adult's ticket is $8. The same approach works for mixing solutions to a target strength, for splitting an investment between two rates, and for balancing forces in a simple structure.
A note on rounding
Answers are displayed to as many as six decimal places. Computers store decimals approximately, so a value might carry a tiny rounding error, and a result like 0.333333 is the decimal form of one third. The check beneath the answer shows both sides of each equation, so that you can see how closely the values fit.
How many equations do you need?
As a general rule, you need as many independent equations as you have unknowns. Independent means that no equation can be built by combining the others. So, 2x + 2y = 6 adds nothing new if you already have x + y = 3. Having extra equations is allowed, and the solver will check that they all agree with one another. If even one of them disagrees, the system has no solution.
Common mistakes
- Dropping a minus sign. Check each term as you type it.
- Having too few equations. Generally, you need as many independent equations as unknowns.
- Writing xy. That's a product of variables and can't be read as linear.
Related math tools
Handle squares with the quadratic equation solver, work with parts with the fraction calculator, and balance reactions with the chemical equation balancer.
What next
Use this often? Add System of Eq to your Home screen.
Frequently asked questions
How does the system of equations solver work?
It uses Gauss-Jordan elimination to reduce your equations until each variable has one value.
How many variables can it solve?
Up to 6 variables and 10 equations.
What does no solution mean?
The equations contradict each other, so no values satisfy all of them.
Can it solve quadratic equations?
No. It's for linear equations. Use the quadratic equation solver for those.
Can I use fractions?
Yes. Type them like 1/2x.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.