System of Equations Calculator
Type two or three linear equations and get the exact solution with every step shown, by elimination, substitution or Cramer's rule.
Use x, y and z. Fractions and decimals work: 1/2x + 0.25y = 3, and terms can sit on either side: 3x = 2y + 4.
A system of equations is two or more equations that have to be true at the same time.
Solving it means finding the values of x and y (and z, if there are three) that work in every equation at once. This system of equations calculator does that for linear systems with two or three unknowns.
Type the equations the way you’d write them on paper and it gives you the exact answer as whole numbers or fractions, with no rounding. It also tells you when a system has no solution or infinitely many.
The answer is only half of it. Pick elimination, substitution, Cramer’s rule or the matrix method and the calculator shows every step in that method, then puts the answer back into each original equation to prove it works.
For two equations it also draws both lines, so you can see where they cross.
How to Use the System of Equations Calculator
- Choose 2 or 3 equations. Two equations use x and y; three use x, y and z.
- Type each equation. Write it naturally:
2x + 3y = 12,y = 2x + 1or3x = 2y + 4. Terms can be on either side of the equals sign. Fractions such as1/2xand decimals such as0.25yare fine. - Pick a method. Use the one your teacher or textbook asks for. Every method gives the same answer.
- Read the result. You’ll see the solution, the type of system (one solution, none, or infinitely many), the full working and a check.
Not sure what to type? Tap one of the examples under the boxes to load a system with one solution, parallel lines, the same line twice, or fractions.
Three Possible Outcomes
Every linear system ends up in one of three places, and it helps to know which before you start:
- One solution. The lines (or planes, with three unknowns) meet at a single point. This is called a consistent, independent system. Example: 2x + 3y = 12 and x − y = 1 meet only at (3, 2).
- No solution. The lines are parallel, so they never meet. The equations contradict each other, and the system is inconsistent. Example: y = 2x + 1 and 4x − 2y = 6 have the same slope but different intercepts.
- Infinitely many solutions. The equations describe the same line, so every point on it works. The system is dependent. Example: 3x − 2y = 4 and 6x − 4y = 8, where the second is just the first doubled. The calculator writes the answer in terms of a parameter t, here x = 4/3 + (2/3)t and y = t.
For two equations you can often tell at a glance by comparing slopes. If you want to put each equation in slope-intercept form first, the Slope Calculator does that.
Solving by Elimination
Elimination adds or subtracts the equations so that one variable cancels out. Take this system:
2x + 3y = 12
x − y = 1
- Make the x coefficients match. Multiply the second equation by 2: 2x − 2y = 2.
- Subtract it from the first equation: (3 − (−2))y = 12 − 2, which is 5y = 10.
- Divide by 5: y = 2.
- Put y = 2 back into the first equation: 2x + 6 = 12, so 2x = 6 and x = 3.
- Check: 2(3) + 3(2) = 12 and 3 − 2 = 1. Both work, so the solution is (3, 2).
Elimination is usually the quickest by hand when neither equation has a variable on its own.
When the coefficients are whole numbers, the calculator multiplies by the smallest amounts needed (using the least common multiple), so the numbers stay small. With fractions, it multiplies across instead.
Solving by Substitution
Substitution rearranges one equation for a single variable and plugs that expression into the other. Using the same system:
- The second equation has x on its own with a coefficient of 1, so solve it for x: x = 1 + y.
- Substitute into the first: 2(1 + y) + 3y = 12.
- Expand and collect: 2 + 5y = 12, so 5y = 10 and y = 2.
- Back-substitute: x = 1 + 2 = 3.
Substitution shines when an equation is already written as y = … or x = …, which is common in word problems and when finding where two lines intersect.
The calculator picks the variable with a coefficient of 1 or −1 where there is one, because that avoids fractions in the working.
Cramer’s Rule
Cramer’s rule solves the system with determinants. For two equations, the coefficient determinant is D = a₁b₂ − b₁a₂. To find each variable, replace its column with the constants, take that determinant, and divide by D.
For 2x + 3y = 12 and x − y = 1:
- D = (2)(−1) − (3)(1) = −5
- Dₓ = (12)(−1) − (3)(1) = −15, so x = −15 ÷ −5 = 3
- Dᵧ = (2)(1) − (12)(1) = −10, so y = −10 ÷ −5 = 2
If D = 0, Cramer’s rule can’t produce an answer, because the system has either no solution or infinitely many. The calculator spots this and switches to row reduction to show which case you have.
For three equations it expands each 3×3 determinant along the first row so you can see every 2×2 part.
The Matrix Method (Gauss-Jordan Elimination)
For three equations, writing the system as an augmented matrix keeps the working tidy. Each row holds one equation’s coefficients and, after the bar, its constant.
Then you use row operations (swap two rows, scale a row, add a multiple of one row to another) until the left side is the identity matrix and the answers sit in the last column.
Take the classic example 2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3.
Row-reducing column by column gives x = 2, y = 3, z = −1.
The calculator lists the row operations for each column, such as R1 → R1 ÷ 2 and R2 → R2 + 3·R1, and shows the matrix after each one, so you can follow it line by line.
For other matrix jobs like inverses, determinants and RREF of bigger matrices, use the Matrix Calculator.
A Word Problem Example
A school sells 30 tickets for a play. Adult tickets cost 12 and child tickets cost 8, and it takes 300 in total. How many of each were sold?
Let a be adult tickets and c be child tickets:
- a + c = 30 (number of tickets)
- 12a + 8c = 300 (money taken)
Substitute c = 30 − a: 12a + 8(30 − a) = 300, so 4a + 240 = 300, 4a = 60 and a = 15. That leaves c = 15. Fifteen adults and fifteen children.
Type it in as x + y = 30 and 12x + 8y = 300 to see the same result.
Mixture, speed and investment problems work the same way: one equation for the quantities and one for the totals.
Tips for Getting It Right
- Line up the variables. Before you start, rewrite each equation as ax + by = c. The calculator does this automatically and shows the standard form as step 1.
- Watch the signs when you subtract. Subtracting a negative is the most common slip in elimination. Bracket the term you’re subtracting.
- Keep fractions as fractions. Rounding 1/3 to 0.33 partway through can leave you with an answer that doesn’t quite check. The calculator works in exact fractions from start to finish. You can tidy up fractional answers with the Fraction Calculator.
- Always check. Put your answer into every original equation, not just one. A solution that works in one equation but not the other is a sign of an arithmetic error.
- Linear only. This calculator handles linear equations, where no variable is squared or multiplied by another. For a single equation with x², use the Quadratic Formula Calculator.
Frequently Asked Questions
What is a system of equations?
It’s a set of two or more equations with the same unknowns. The solution is the set of values that makes every equation true at the same time.
Which method is best?
They all give the same answer. Substitution suits equations already written as y = …, elimination is quickest for tidy whole-number coefficients, and the matrix method scales best to three or more unknowns.
How do I know if a system has no solution?
During elimination both variables cancel and you’re left with a false statement such as 0 = 8. On a graph, the lines are parallel.
What does infinitely many solutions mean?
The equations are multiples of each other, so they describe the same line or plane. Any point on it works, which is why the answer is written with a parameter t.
Can it solve equations with fractions or decimals?
Yes. Enter them as typed, for example 1/2x + y = 4 and 0.3x − 0.5y = 0.2, and the answer comes out exact: x = 4, y = 2.
Can I solve three equations with three unknowns?
Yes. Choose the 3 equations tab and use elimination, Cramer’s rule or the matrix method. Substitution is offered for two equations, where it’s practical by hand.
Related Calculators
Link to this calculator
Teacher, blogger or student? Share this free System of Equations Calculator with your readers or class by pasting this code into your website:

About the author
Tahir Mehmood
Tahir Mehmood is the founder of Digital Designs SEO LTD, a UK company, with five years of hands-on experience in SEO, content writing and web development. He builds and maintains the calculators on All in Calculators and keeps them up to date. Spotted an error? Contact us and we will fix it.
Last updated: 27 November 2026