Math Solver Free

System of Equations Solver

Solve 2×2 and 3×3 linear systems — every elimination step shown.

x+y=
x+y=
x =
2.2
y =
1.2

Step 1: D = a₁b₂ − a₂b₁ = (2)(-1) − (1)(3) = -5

Step 2: Dx = c₁b₂ − c₂b₁ = -11, Dy = a₁c₂ − a₂c₁ = -6

Step 3: x = Dx/D = 2.2, y = Dy/D = 1.2

How to Solve Systems of Equations

A system of equations is a set of equations that must all be true at the same time for the same values of their shared variables. This solver finds those values for you: pick the 2×2 or 3×3 grid, type each coefficient and constant into its box, and the solution appears underneath with the determinant or elimination steps that produced it — including an honest warning when the system has no solution or infinitely many. Systems matter because real questions rarely hand you one unknown at a time; two receipts, two totals or two conditions together can pin down two or three unknowns that neither condition could fix alone.

The Equations and Determinants, Symbol by Symbol

Write a 2x2 system as a₁x + b₁y = c₁ and a₂x + b₂y = c₂. The unknowns are x and y, the values you are hunting. The symbols a₁ and a₂ are the coefficients of x in the first and second equations, b₁ and b₂ are the coefficients of y, and c₁ and c₂ are the constants on the right-hand side. Cramer’s rule combines them into D = a₁b₂ − a₂b₁, the determinant of the coefficient grid; Dx replaces the x-column with the constants, giving Dx = c₁b₂ − c₂b₁, and Dy replaces the y-column, giving Dy = a₁c₂ − a₂c₁. The solution is then x = Dx/D and y = Dy/D, which is why D = 0 is fatal: division by zero means no unique crossing point. A 3x3 system adds a third unknown z, a third coefficient column and a third equation, handled above by elimination instead.

The Main Methods

  • Elimination: add or subtract multiples of equations to cancel one variable at a time — the most mechanical method, used for the 3×3 solver above.
  • Substitution: solve one equation for a variable and plug it into the others — great for 2×2 by hand.
  • Cramer’s rule: express each variable as a ratio of determinants — elegant for 2×2, shown step by step above.

Special Cases

If elimination produces 0 = 5, the system is inconsistent (no solution — parallel lines). If it produces 0 = 0, the equations are dependent (infinitely many solutions — the same line twice). The calculator detects and reports both.

How to Use This Solver, Step by Step

  1. Choose the grid size with the “2×2 system” or “3×3 system” tab, matching the number of unknowns in your problem.
  2. Fill one row per equation: type the coefficient of x, then of y (and z for 3×3), into the numbered boxes, and the constant after the equals sign. Use a negative number for a subtracted term, and 0 for a missing variable. There is no calculate button — the solver updates as you type.
  3. Read the dark results panel: it shows x, y (and z) in green, with the numbered determinant or elimination steps below. An amber panel instead means a box is empty or the system is a special case, and its message tells you which.

Worked Example 1: Two Unknowns With Cramer’s Rule

Solve x + y = 10 and x − y = 4. Here a₁ = 1, b₁ = 1, c₁ = 10 and a₂ = 1, b₂ = −1, c₂ = 4. The negative coefficient matters: the second equation subtracts y, so b₂ enters every determinant as −1, not 1.

  1. Main determinant: D = a₁b₂ − a₂b₁ = (1)(−1) − (1)(1) = −2. Non-zero, so exactly one solution exists.
  2. Replace the x-column: Dx = c₁b₂ − c₂b₁ = (10)(−1) − (4)(1) = −14, so x = Dx/D = −14 ÷ −2 = 7.
  3. Replace the y-column: Dy = a₁c₂ − a₂c₁ = (1)(4) − (1)(10) = −6, so y = Dy/D = −6 ÷ −2 = 3.
  4. Answer: x = 7, y = 3.

Verify against both originals: 7 + 3 = 10 satisfies the first equation, and 7 − 3 = 4 satisfies the second. A candidate that passed only one test would not be a solution of the system, however neatly it was found.

Worked Example 2: Three Unknowns by Elimination

Solve x + y + z = 6, x − y + 2z = 5 and 2x + y − z = 1. Elimination removes one unknown at a time: first clear x from the lower two equations, then clear y from the last one, leaving a single equation in z’s partner y.

  1. Second row minus first row: (x − y + 2z) − (x + y + z) = 5 − 6, giving −2y + z = −1.
  2. Third row minus twice the first: (2x + y − z) − (2x + 2y + 2z) = 1 − 12, giving −y − 3z = −11.
  3. Eliminate z: multiply −2y + z = −1 by 3 to get −6y + 3z = −3, then add −y − 3z = −11: −7y = −14, so y = 2.
  4. Back-substitute: from −2y + z = −1, z = 2y − 1 = 3; then x = 6 − y − z = 6 − 2 − 3 = 1.
  5. Answer: x = 1, y = 2, z = 3.

Check all three originals: 1 + 2 + 3 = 6, 1 − 2 + 6 = 5, and 2 + 2 − 3 = 1. Every equation balances, so the triple is confirmed as the unique solution.

When a System Is the Right Model

Use a system whenever two or three unknowns are tangled together by separate totals. A café owner who sold 40 drinks for a known revenue, split between two prices, can recover both quantities from the count and money equations. A pharmacist mixing two stock solutions uses one equation for total volume and another for total strength. A business comparing a cost line against a revenue line solves the pair to find the break-even quantity. Even two trains’ distance equations form a system whose solution is their meeting time and place.

Three Errors That Corrupt Systems

  • Losing a sign while copying: an equation rearranged from y = 10 − x becomes x + y = 10, not x − y = 10. Every term that crosses the equals sign flips sign, and the grid above takes coefficients exactly as typed.
  • Reading D = 0 as x = 0: a zero determinant never means the unknowns are zero; it means no unique solution exists — the lines are parallel or identical, and the solver reports which.
  • Checking only one equation: infinitely many pairs satisfy a single equation, so a half-checked answer can look right while failing the second condition completely. Always substitute into every original.

Working with single equations or matrices? Try our linear equation solver or the matrix calculator. For answers that come as a range rather than a single value, try the inequality solver.

Frequently Asked Questions

What methods are used to solve the system?

For 2x2 systems the calculator uses Cramer's rule: it forms the determinant D from the coefficients, then the determinants Dx and Dy by replacing one column with the constants, and reports x = Dx/D and y = Dy/D. For 3x3 systems it switches to Gaussian elimination with back-substitution, clearing below each pivot in turn. Every determinant and elimination step is printed.

What does it mean when there is no solution?

No solution means the equations contradict each other, so no set of values can satisfy all of them at once. Geometrically, two lines with the same slope but different intercepts run parallel and never meet. In Cramer's rule this shows up as a zero determinant alongside a non-zero Dx or Dy. The calculator reports this instead of inventing numbers, and the same idea extends to parallel planes in three variables.

How can I check that a solution is correct?

Substitute the reported values into every original equation, not just the first one, and confirm that each side balances. For example, x = 7 and y = 3 satisfy x + y = 10 because 7 + 3 = 10, and x − y = 4 because 7 − 3 = 4. A solution that passes only one equation usually hides a copying or sign error from an earlier step.

What does it mean when there are infinitely many solutions?

Infinitely many solutions means the equations are dependent: one is simply a multiple of the other, so both describe the same line and every point on that line works. Cramer's rule signals this case with D, Dx and Dy all equal to zero. The calculator names the case rather than picking one arbitrary point, because no single correct pair exists — one variable remains free.

Can I solve systems with more than 3 variables?

This tool handles 2x2 and 3x3 systems, which cover nearly all school and college coursework, because its coefficient grid is fixed at those two sizes. A system with four or more unknowns needs the same elimination method scaled up to a larger grid. For those, our matrix calculator can perform the underlying matrix operations, such as determinants and inverses, that a bigger Gaussian elimination is built from.

Is this system of equations solver free?

Yes. The system of equations solver is entirely free, with no sign-up, and it recalculates in your browser as you type each coefficient. You can switch between the 2x2 and 3x3 grids as often as you like, test special cases such as parallel lines, and read the printed determinant or elimination steps to learn the method behind each answer.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team