How to use the system of equations calculator
- Type your equations, one per line. Use letters for the unknowns, such as x, y and z, or x1, x2 and x3. Fractions (1/2), decimals, brackets and unknowns on both sides are all fine.
- The answer appears as you type: each unknown as an exact fraction and a decimal, or a clear statement that there is no solution or infinitely many.
- Follow the elimination steps, the matrices, Cramer’s rule for two or three unknowns, the check by substitution and, for two unknowns, the graph.
What a system of equations is
A system of equations is two or more equations that share the same unknowns, and solving it means finding values that make every equation true at once. For 2x + 3y = 8 and x − y = −1, the solution is x = 1, y = 2: 2(1) + 3(2) = 8 and 1 − 2 = −1. With two unknowns, each linear equation is a straight line, and the solution is the point where the lines cross.
There are only three possibilities. OpenStax’s Intermediate Algebra defines the terms: “A consistent system of equations is a system of equations with at least one solution. An inconsistent system of equations is a system of equations with no solution.” A consistent system has exactly one solution when the lines (or planes) meet at a single point, and infinitely many when the equations are dependent: “If two equations are dependent, all the solutions of one equation are also solutions of the other equation.”
Solving by elimination and matrices
Elimination combines equations to remove one unknown at a time. Writing just the numbers in a grid, the augmented matrix, makes this systematic. As OpenStax puts it, “To solve a system of equations using matrices, we transform the augmented matrix into a matrix in row-echelon form using row operations.” There are three row operations, and none of them changes the solutions: swap two rows, multiply a row by a non-zero number, and add a multiple of one row to another.
The calculator uses Gauss-Jordan elimination, which goes one step further than row-echelon form: it clears each unknown from every other row, so each row of the final matrix reads “unknown = number”. For x + y + z = 6, 2x − y + z = 3 and x + 2y − z = 2, that gives x = 1, y = 2, z = 3. Each step is listed, such as R2 → R2 − 2·R1, meaning “replace row 2 by row 2 minus twice row 1”.
Substitution and graphing
For two equations, substitution is often quickest by hand: solve one equation for one unknown and put that into the other. From x − y = −1, x = y − 1, so 2(y − 1) + 3y = 8, 5y = 10 and y = 2, then x = 1. Graphing shows the same thing as two lines crossing at (1, 2), and it makes the special cases easy to see: parallel lines never meet, so there is no solution, and lines that lie on top of each other meet everywhere.
Cramer’s rule
Cramer’s rule solves n equations in n unknowns with determinants. D is the determinant of the coefficients, and for each unknown, Dx, Dy and so on are the determinants with that unknown’s column replaced by the right-hand sides. Then x = Dx ÷ D, y = Dy ÷ D and so on. For the example above, D = −5, Dx = −5 and Dy = −10, so x = 1 and y = 2. OpenStax notes the limit: “Cramer’s rule does not work when the value of the D determinant is 0, as this would mean we would be dividing by 0.” In that case the system has no solution or infinitely many, and elimination tells you which.
No solution and infinitely many solutions
When elimination produces a row of zeros on the left with a non-zero number on the right, such as 0 = 1, the equations contradict each other and there is no solution. When it produces a row of zeros everywhere, one equation added nothing new. If there are fewer useful equations than unknowns, some unknowns are free. For x + y + z = 3 and 2x + 2y + 2z = 6, the calculator gives x = 3 − y − z; y, z are any numbers. Every choice of the free unknowns gives a valid solution.
Turning a word problem into a system
Many everyday questions are systems in disguise. Say a school play sold 30 tickets for $296, with adult tickets at $12 and child tickets at $8, and you want to know how many of each were sold. Call the number of adult tickets a and the number of child tickets c. The count gives one equation and the money gives another:
- a + c = 30 (there were 30 tickets)
- 12a + 8c = 296 (they brought in $296)
Type those two lines into the calculator and it returns a = 14, c = 16: 14 adult tickets bring in $168 and 16 child tickets bring in $128, which add up to $296. The same approach works for mixtures, such as coffee blends or solutions at different strengths, for speeds with and against a current, and for splitting money between two accounts. Name each unknown, write one equation for each fact you’re given, and check that you have as many independent facts as unknowns.
Exact answers with fractions
Calculators that work in decimals can give answers such as 1.2666667 that are slightly off, and the error can grow over many steps. This calculator keeps every number as an exact fraction, so x/2 + y/3 = 1 and x − y = 1/6 give exactly x = 19/15, y = 11/10, with decimals alongside. The check substitutes the exact answers back into each original equation.
Tips for entering equations
- Write multiplication by a number directly: 2x, 3(x + 1) or x/4.
- Unknowns can be on both sides: 3(x + 2) = 2y is fine.
- Only linear equations can be solved here: no x², xy or 1/x.
- Up to 6 unknowns and 8 equations. More equations than unknowns are allowed, and the calculator tells you whether they agree.
Your data stays on your device
Everything is worked out in your browser. Nothing you type is sent anywhere or stored.
Frequently asked questions
How do I enter a system of equations?
Type one equation per line, such as 2x + 3y = 8 and x − y = −1. You can also separate them with commas or semicolons. Use letters for the unknowns (x, y, z, or x1, x2 and so on), fractions such as 1/2, brackets such as 3(x + 2) and unknowns on both sides.
How can a system of equations have no solution?
When the equations contradict each other. x + y = 2 and 2x + 2y = 5 can’t both be true, because doubling the first gives 2x + 2y = 4. On a graph, the two lines are parallel and never meet. Elimination ends with an impossible row such as 0 = 1.
What does infinitely many solutions mean?
Some equations repeat the same information, so not every unknown is fixed. For x + y + z = 3 and 2x + 2y + 2z = 6, the answer is x = 3 − y − z; y, z are any numbers: pick any values for the free unknowns and the others follow.
What is Cramer’s rule?
A way to solve n equations in n unknowns with determinants: each unknown is the determinant with that unknown’s column replaced by the right-hand sides, divided by the determinant of the coefficients. It works only when that determinant is not zero. The calculator shows it for 2 and 3 unknowns.
Are the answers exact?
Yes. Every step uses exact fractions, so there is no rounding: x/2 + y/3 = 1 and x − y = 1/6 give x = 19/15, y = 11/10. A decimal is shown alongside each fraction.
Is anything I type saved or sent?
No. Everything is worked out in your browser and nothing you type is sent anywhere or stored.