BlogAI for students

System of equations calculator with steps (2 to 5 unknowns)

Free system of equations calculator with steps. Solve 2 to 5 unknowns by elimination, substitution, Cramer's rule or matrices, with exact fractions.

System of equations calculator with steps (2 to 5 unknowns)
On this page 13 sections
  1. How to type your equations
  2. One solution, no solution or infinitely many
  3. How to solve a system of equations by elimination
  4. The substitution method
  5. Cramer’s rule
  6. The matrix method (Gauss-Jordan)
  7. Which method should you use?
  8. Solving 3 equations with 3 unknowns
  9. Word problems that turn into systems
  10. How we tested this calculator
  11. Checking AI answers
  12. Common mistakes to avoid
  13. Bottom line

This free system of equations calculator solves 2 to 5 linear equations and shows every step. Type your equations, pick a method (elimination, substitution, Cramer’s rule or matrices) and click Solve. You get exact answers as fractions, a check that puts the answer back into each equation, and a graph when there are two unknowns. No sign-up, and nothing leaves your browser.

System of equations calculator

Type one equation per box, like 2x + 3y = 7. Up to 5 equations and 5 unknowns. Answers are exact fractions, and nothing leaves your browser.

Try:

How to type your equations

Write one equation per box, the way you’d write it in your notebook. The calculator moves everything into standard form for you (unknowns on the left, the number on the right).

You type The calculator reads
2x + 3y = 7 2x + 3y = 7
x = 2y − 1 x − 2y = −1
x/2 + y/3 = 4 (1/2)x + (1/3)y = 4
0.5x − y = −1 (1/2)x − y = −1
2(x − 3) = y 2x − y = 6
3x1 + 2x2 = 5 3x1 + 2x2 = 5

A few tips:

  • Use single letters for the unknowns (x, y, z, a, b, c), or numbered ones like x1, x2, x3.
  • Put the number before the letter: 2x, not x2. (x2 means “x two”, a separate unknown.)
  • Fractions and decimals are fine. The answer comes back as an exact fraction, with the decimal next to it.
  • Brackets work, and you can put unknowns on both sides of the = sign.
  • It solves linear equations only. Squares like x² or two unknowns multiplied together (xy) are not allowed.

Stuck? Click one of the examples above the boxes to see how they’re written.

One solution, no solution or infinitely many

Every system of linear equations ends up in one of three cases. The calculator tells you which one you have, and the steps show why.

Answer What you see when solving On a graph (2 unknowns)
One solution Each unknown gets a single value, like x = 3, y = 2 The lines cross at one point
No solution An impossible line such as 0 = 2 The lines are parallel
Infinitely many solutions A line that says 0 = 0, so one equation adds nothing new Both equations are the same line

When there are infinitely many solutions, the answer uses a free letter. For example, x + 2y = 3 and 2x + 4y = 6 give x = 3 − 2t, y = t, where t can be any number. Pick t = 1 and you get x = 1, y = 1, which works in both equations.

How to solve a system of equations by elimination

Elimination is the method most teachers start with, and it’s usually the fastest by hand. Here it is on this system:

  • (1) 2x + 3y = 12
  • (2) x − y = 1
  1. Make one unknown match. Multiply equation (2) by 2 so both equations have 2x: 2x − 2y = 2.
  2. Subtract to remove it. (1) − 2×(2) gives 5y = 10, so y = 2.
  3. Put it back in. In equation (2): x − 2 = 1, so x = 3.
  4. Check. 2(3) + 3(2) = 12 ✓ and 3 − 2 = 1 ✓.

If the signs are opposite (like +3y and −3y), add the equations instead of subtracting.

The substitution method

Substitution works best when one equation already has an unknown on its own, like the x in x − y = 1.

  1. Solve one equation for one unknown. From (2): x = 1 + y.
  2. Put that into the other equation. 2(1 + y) + 3y = 12, which simplifies to 5y = 10, so y = 2.
  3. Work back. x = 1 + 2 = 3.

Same answer, different route. With three or more unknowns, substitution gets long quickly, so elimination or matrices are usually easier there.

Cramer’s rule

Cramer’s rule uses determinants. It only works when there are as many equations as unknowns and the main determinant D is not 0. For our example:

  • D (the numbers in front of x and y): 2·(−1) − 3·1 = −5
  • Dx (swap the x column for 12 and 1): 12·(−1) − 3·1 = −15
  • Dy (swap the y column for 12 and 1): 2·1 − 12·1 = −10

So x = Dx ÷ D = −15 ÷ (−5) = 3, and y = Dy ÷ D = −10 ÷ (−5) = 2.

If D = 0, Cramer’s rule can’t give one answer. The system then has no solution or infinitely many, and the calculator switches to elimination to tell you which.

The matrix method (Gauss-Jordan)

Write the numbers as an augmented matrix, one row per equation, with the right-hand numbers after a bar. Then use row operations until the left part becomes 1s on the diagonal and 0s everywhere else:

  1. Start with [2 3 | 12] and [1 −1 | 1].
  2. Swap the rows (R1 ↔ R2) so the first row starts with 1: [1 −1 | 1] and [2 3 | 12].
  3. R2 → R2 − 2R1 gives [0 5 | 10].
  4. R2 → R2 ÷ 5 gives [0 1 | 2].
  5. R1 → R1 + R2 gives [1 0 | 3].

Read the answer straight off the last column: x = 3, y = 2. Computers solve big systems with versions of this same method, and it’s the neatest one by hand for 4 or 5 unknowns.

Which method should you use?

Method Best for Watch out for
Elimination Most systems, by hand Forgetting to multiply the number on the right
Substitution When an unknown is already on its own (x = …) Long, messy fractions with 3+ unknowns
Cramer’s rule 2×2 or 3×3 systems, tests that ask for determinants Only works when D is not 0
Matrix (Gauss-Jordan) 3 or more unknowns, linear algebra classes Small slips in long row operations

If your teacher asks for a method, use that one in the calculator so the steps match your class.

Solving 3 equations with 3 unknowns

The idea is the same: use one equation to remove an unknown from the others, until you’re left with one equation and one unknown.

  • (1) x + y + z = 6
  • (2) 2x − y + z = 3
  • (3) x + 2y − z = 2
  1. Remove x using (1). (2) − 2×(1) gives −3y − z = −9, or (4) 3y + z = 9. Then (3) − (1) gives (5) y − 2z = −4.
  2. Remove y using (5). (4) − 3×(5) gives 7z = 21, so z = 3.
  3. Work back up. In (5): y − 2(3) = −4, so y = 2. In (1): x + 2 + 3 = 6, so x = 1.
  4. Check in all three: 1 + 2 + 3 = 6 ✓, 2 − 2 + 3 = 3 ✓, 1 + 4 − 3 = 2 ✓.

Click 3 unknowns in the calculator to see the same steps, or switch the method to compare.

Word problems that turn into systems

Most word problems with two unknown amounts become a system of two equations. Name the unknowns, write one equation per fact, then solve.

Tickets. A school play sold 200 tickets. Adult tickets cost $8 and student tickets cost $5, and the play took in $1,240. How many of each were sold?

  • a + s = 200 (number of tickets)
  • 8a + 5s = 1240 (money)
  • Answer: a = 80 adult tickets, s = 120 student tickets. Check: 8 × 80 + 5 × 120 = 640 + 600 = 1,240 ✓

Coins. A jar holds 30 coins, all dimes and quarters, worth $5.10. How many of each?

  • d + q = 30
  • 0.10d + 0.25q = 5.10
  • Answer: d = 16 dimes, q = 14 quarters. Check: $1.60 + $3.50 = $5.10 ✓

You can type both straight into the calculator, decimals included. For younger students, our word problem maker writes simpler one-step and two-step problems with answers.

How we tested this calculator

We didn’t want a calculator that’s right most of the time. Before publishing, we ran it on 20,000 random systems with 1 to 5 unknowns. They mixed whole numbers, fractions and decimals, typed in many different ways (terms on both sides, brackets, 3x/4, 2·x).

Each system was solved with all four methods, so that’s 80,000 solves. Every answer was put back into the original equations and checked exactly, and every “no solution” or “infinitely many” result was confirmed by a separate check. Zero errors. We also typed 80,000 random strings of junk into it to make sure it explains the problem instead of crashing.

It uses exact fractions the whole way, never rounded decimals. So 1/3 stays 1/3 instead of turning into 0.333 and drifting.

Checking AI answers

Chatbots like ChatGPT, Gemini and Claude are good at explaining why each step works. They can still slip on the arithmetic, especially with fractions, negative signs or three or more unknowns. So use them to understand, and check the numbers.

Copy this prompt if you want a chatbot to teach you instead of just giving the answer:

I’m learning to solve systems of equations by [elimination]. Here is my system: [2x + 3y = 12, x − y = 1]. Don’t give me the answer. Ask me what the first step should be, check my working after each step, and tell me where I went wrong if I make a mistake.

Then put the final answer into this calculator, or into each original equation, to make sure it’s right. Our guide to the best AI homework helpers covers the tutor modes that work this way, and studying with AI without cheating explains where the line is.

Common mistakes to avoid

  1. Multiplying only one side. When you multiply an equation by 2, multiply the number on the right too.
  2. Sign slips. Subtracting −3y is the same as adding 3y. Most wrong answers come from here.
  3. Stopping after one unknown. Once you have y, put it back in to find x.
  4. Skipping the check. It takes 20 seconds to put your answer back into every equation, and it catches nearly every mistake.
  5. Panicking at 0 = 0 or 0 = 5. These aren’t mistakes. They tell you the system has infinitely many solutions or none.

You can also graph each equation in the free Desmos graphing calculator to see where the lines cross.

Bottom line

Type your equations into the calculator above to get the answer, every step and a check, using the method your class uses. Learn elimination first, use substitution when an unknown is already on its own, and switch to matrices for bigger systems. For more free tools, see the best AI tools for students, or the best AI tools for engineering students if you’re heading into linear algebra.

Questions people ask

Is this system of equations calculator free?

Yes. It's free, needs no sign-up, and runs entirely in your browser. Your equations are never sent anywhere.

How do you solve a system of equations?

Find values for the unknowns that make every equation true at the same time. The usual methods are substitution, elimination, Cramer's rule and matrices (Gauss-Jordan). Elimination is usually the quickest by hand. Always check by putting your answer back into each equation.

What does it mean when a system has no solution?

The equations contradict each other, so no values can make them all true. With two unknowns, the lines are parallel and never cross. When you solve it, you end up with something impossible like 0 = 2.

What does infinitely many solutions mean?

At least one equation repeats information the others already give, so there are fewer real conditions than unknowns. With two unknowns, both equations are the same line. When you solve it, you get 0 = 0, and the answer is written with a free letter such as t.

Can it solve 3 equations with 3 unknowns?

Yes. It solves up to 5 equations with up to 5 unknowns, for example x, y and z, or x1 to x5. It also handles systems where the number of equations and unknowns is different.

Can ChatGPT solve systems of equations?

Yes, ChatGPT, Gemini and Claude can solve them and explain the steps, but they can still slip on the arithmetic, especially with fractions or three or more unknowns. Put the answer back into every equation, or paste the same equations into this calculator to check.

Sources

Facts and prices checked on Nov 4, 2026.

  1. OpenStax College Algebra 2e, 7.1 Systems of Linear Equations: Two Variables
  2. OpenStax College Algebra 2e, 7.2 Systems of Linear Equations: Three Variables
  3. OpenStax College Algebra 2e, 7.6 Solving Systems with Gaussian Elimination
  4. OpenStax College Algebra 2e, 7.8 Solving Systems with Cramer's Rule