Skip to content
Popular Calculators
Browse Math calculators

System of Equations Calculator

Solve two or three simultaneous linear equations, with the determinant, the elimination steps, and the parallel and coincident cases explained.

What do you want to work out?

About the System of Equations Calculator

A single linear equation in two unknowns has no single answer. x + y = 10 is satisfied by (0, 10), (3, 7), (−5, 15) and infinitely many other pairs.

Give it a second equation and the situation changes. x + y = 10 together with x − y = 2 pins the answer down to exactly one pair: (6, 4). Two equations, two unknowns, one solution.

Geometrically each equation is a line, and solving the system means finding where the lines cross. That picture explains everything that can happen. Two lines normally cross once. If they are parallel they never cross — no solution. If they are the same line they cross everywhere — infinitely many solutions.

With three unknowns the lines become planes, and the same three outcomes apply in three dimensions.

This calculator solves 2×2 and 3×3 systems, reports the determinant that decides which case you are in, and explains the two failure modes rather than just refusing.

How to Use the System of Equations Calculator

Choose two equations or three equations.

Enter the coefficients in standard form. For 2x + 3y = 13, that is a = 2, b = 3, right-hand side = 13. If a variable is missing from an equation, its coefficient is 0 — so y = 5 becomes 0x + 1y = 5.

Rearrange first if you need to. Everything belongs on the left of the equals sign except the constant, and signs carry across.

Press Calculate. You get the solution, the determinant with its interpretation, and a substitution check against every equation.

How Systems Are Solved

Three methods are taught, and they all reach the same answer.

Substitution. Rearrange one equation for one variable, then put that expression into the other. Best when an equation already gives a variable almost directly.

Elimination. Scale the equations so one variable has matching coefficients, then add or subtract to remove it. Usually cleanest with whole-number coefficients, because you avoid fractions until the end.

Determinants — Cramer's rule. This is what the calculator uses. Each unknown is a ratio of two determinants, which makes the method compact, easy to check, and identical in shape for 2×2 and 3×3.

For a 2×2 system:

a₁x + b₁y = d₁
a₂x + b₂y = d₂

D  = a₁b₂ - a₂b₁          the main determinant
Dx = d₁b₂ - d₂b₁          x column replaced by the constants
Dy = a₁d₂ - a₂d₁          y column replaced by the constants

x = Dx / D,    y = Dy / D

Cramer's rule has one property that makes it especially good for teaching: the main determinant is the diagnostic. You compute D first, and it tells you which of the three cases you are in before you go any further.

What a zero determinant means

Divide by D and you need D ≠ 0. When D is zero there is no unique solution — but there are two quite different reasons, and distinguishing them is the part most often got wrong.

Inconsistent — no solution. The coefficients are proportional but the constants are not. x + y = 1 and 2x + 2y = 5: the second is twice the first on the left but not on the right, so it demands 2 = 5. Parallel lines, never meeting.

Dependent — infinitely many solutions. Everything is proportional, constants included. x + y = 1 and 2x + 2y = 2: the second equation is simply the first doubled. It adds no information, so you are back to one equation and a whole line of solutions.

The calculator checks whether the rows are proportional including their constants, and names which case you have.

System of Equations Formula

2x2, by Cramer's rule:
  D  = a₁b₂ - a₂b₁
  x  = (d₁b₂ - d₂b₁) / D
  y  = (a₁d₂ - a₂d₁) / D

3x3:
  D  = determinant of the coefficient matrix
  x  = Dx / D,  y = Dy / D,  z = Dz / D
  where each numerator replaces that variable's column with the constants

Outcomes:
  D ≠ 0                    ->  exactly one solution
  D = 0, rows proportional ->  infinitely many (dependent)
  D = 0, rows are not      ->  no solution (inconsistent)

The 3×3 determinant expands along the first row into three 2×2 determinants, alternating signs — which is why the method scales without changing shape.

Step-by-Step Example

Solve 2x + 3y = 13 and 4x − y = 5.

Step 1 — main determinant.

D = (2)(-1) - (3)(4) = -2 - 12 = -14

Non-zero, so expect exactly one solution.

Step 2 — replace the x column with the constants.

Dx = (13)(-1) - (3)(5) = -13 - 15 = -28

Step 3 — replace the y column.

Dy = (2)(5) - (13)(4) = 10 - 52 = -42

Step 4 — divide.

x = -28 / -14 = 2
y = -42 / -14 = 3

Step 5 — check both equations. 2(2) + 3(3) = 4 + 9 = 13 ✓, and 4(2) − 3 = 8 − 3 = 5 ✓.

For comparison, the same system by elimination: multiply the second equation by 3 to give 12x − 3y = 15, then add it to the first to eliminate y: 14x = 28, so x = 2. Substitute back for y = 3. Same answer, different route — use whichever the numbers make easier.

Now a case with no answer. Solve x + y = 1 and 2x + 2y = 5.

D = (1)(2) - (1)(2) = 0

Zero, so no unique solution. Are the rows proportional? The coefficients are — the second row is twice the first — but 5 is not twice 1. No solution. The lines are parallel.

Change the 5 to a 2 and everything becomes proportional, giving infinitely many solutions instead. One digit separates the two cases.

Understanding Your Result

The solution gives each variable's value, or one of the two degenerate answers with the reason attached.

The determinant is stated with its interpretation. Non-zero means a single intersection point. Zero means the lines or planes do not meet at one point, and the solution line says which case applies.

The check substitutes the answer back into every equation. Both sides should agree. This catches a transcription error immediately, and it is the same verification you would do on paper.

A useful sanity check of your own: the number of independent equations must at least match the number of unknowns. Two equations cannot pin down three unknowns, and three equations in two unknowns will usually be inconsistent unless one is redundant.

When Should You Use This Calculator?

Algebra homework. Simultaneous equations are a core topic, and the working shows which step a hand attempt went wrong at.

Mixture problems. Two quantities at two known prices totalling a known amount and a known cost is a 2×2 system.

Break-even between two options. Two cost structures — one with a higher fixed fee and lower unit price — meet where a linear system solves.

Circuit analysis. Kirchhoff's laws produce a linear system, one equation per loop or node.

Geometry. Finding where two lines intersect is precisely a 2×2 system, which is why this shares ground with the slope and distance calculators.

Curve fitting. Fitting a line or parabola through given points means solving for the coefficients, which is a linear system in those coefficients.

Common Mistakes

Not writing the equations in standard form first. Coefficients must be read from ax + by = c. Entering them from a rearranged or partially simplified version gives a different system.

Missing a zero coefficient. If y does not appear in an equation, its coefficient is 0, not blank and not 1. Skipping it changes the equation.

Sign errors on the determinant. D = a₁b₂ − a₂b₁, and the subtraction matters. Getting the order wrong flips the sign of D, which flips the sign of both answers.

Treating a zero determinant as an error. It is an answer. Check whether the rows are proportional to decide which of the two it is.

Confusing inconsistent with dependent. Parallel lines have no solution; the same line twice has infinitely many. The difference is only in the constants, and it is the whole difference.

Solving for one variable and stopping. A 2×2 system has two answers, a 3×3 has three. Finding x and forgetting y loses half the solution.

Checking against only one equation. A wrong answer often satisfies one equation by coincidence. Substitute into all of them.

Frequently Asked Questions

What does the determinant tell you?

Whether a unique solution exists. A non-zero determinant means the lines or planes meet at exactly one point. A determinant of zero means they do not, and the system either has no solution or infinitely many, depending on whether the equations agree with each other.

When does a system have no solution?

When the equations describe parallel lines, or planes that never share a common point. The coefficients are proportional but the constants are not, so the equations make contradictory demands. Such a system is called inconsistent.

When does a system have infinitely many solutions?

When the equations are multiples of one another, so they describe the same line or plane. One equation adds no information the other did not already give, which leaves a whole line or plane of points satisfying both. Such a system is called dependent.

Is elimination or substitution better?

Elimination is usually cleaner when the coefficients are whole numbers, because you scale and add rather than dividing early. Substitution is easier when one equation already gives a variable directly. They always reach the same answer, so the choice is about arithmetic convenience.

What is Cramer's rule?

It solves a system using determinants: each unknown equals a modified determinant divided by the main one. It is compact and easy to check, which is why this calculator uses it, though elimination is generally faster for large systems.

Last reviewed September 17, 2026 by the CalculatorPeak editorial team.