Skip to main content

System of Linear Equations Calculator

Solve a 2×2 system by elimination or substitution, solve a 3×3 system with fully narrated Gaussian elimination, quickly classify a system as having a unique, no, or infinite solution without solving it in full, or visualize what each outcome actually looks like. Every mode shows a distinct diagram, plain-language explanations (no unexplained jargon), and a callout on what the result really means.

Background

A system of linear equations is a set of equations where every variable appears only to the first power. A solution is a set of values that makes every equation true at once. For two equations in two unknowns, think of each equation as a line — a solution is wherever those lines meet. There are exactly three possible outcomes: the lines cross once (one unique solution), they're parallel and never touch (no solution), or they're actually the same line (infinitely many solutions). The same three outcomes apply to three equations in three unknowns, just with planes instead of lines.

Set up your system

Step 1 — What do you want to do?

Pick a task below.

Step 2 — Which method?

Equation 1: a₁x + b₁y = c₁

Equation 2: a₂x + b₂y = c₂

Numbers or simple fractions like -3/4 both work.

Step 2 — Enter three equations: ax + by + dz = c

a (x)b (y)d (z)c

Each row is one equation: a·x + b·y + d·z = c.

Step 2 — System size?

Equation 1: a₁x + b₁y = c₁

Equation 2: a₂x + b₂y = c₂

Enter three equations: ax + by + dz = c

a (x)b (y)d (z)c

Step 2 — System size?

Equation 1: a₁x + b₁y = c₁

Equation 2: a₂x + b₂y = c₂

Enter three equations: ax + by + dz = c

a (x)b (y)d (z)c

Learning options

Result

No result yet. Enter your numbers above and click Calculate.

How to use this calculator

  • Choose Solve a 2×2 System to fully solve two equations in two unknowns, narrated by either elimination or substitution.
  • Choose Solve a 3×3 System to fully solve three equations in three unknowns using Gaussian elimination, with every row operation explained in plain language first.
  • Choose Classify Only when you just need to know whether a system has one, none, or infinitely many solutions without solving it in full.
  • Choose Visualize to see a real graph of a 2×2 system's two lines, or a conceptual diagram of how three equations in three unknowns can meet.
  • Click Calculate to see the diagram, the full step-by-step math, and a callout explaining what the result actually means.

How Solving Systems Works

1

Elimination combines two equations by scaling and subtracting them so one variable cancels out, leaving a single equation in the other variable.

2

Substitution solves one equation for one variable, then plugs that expression into the other equation so only one unknown remains.

3

Gaussian elimination extends the elimination idea to any number of equations by organizing the coefficients into a grid (the augmented matrix) and using row operations — swap, scale, subtract a multiple of one row from another — to simplify it step by step until each variable's value can be read straight off.

4

An augmented matrix is nothing more than a compact way to write down a system's coefficients: each row is one equation, each of the first columns is one variable's coefficient, and the last column is what that equation equals. It just saves rewriting x, y, z every time.

5

A system has exactly one unique solution when the equations are independent enough to pin down every variable to a single value.

6

A system has no solution when the equations contradict each other — algebraically, this shows up as a row like 0 = 5, a statement that's never true.

7

A system has infinitely many solutions when one equation gives no new information beyond what the others already say — there are more variables than independent equations pinning them down. When this happens, the calculator writes the remaining solutions as a formula in terms of one free variable, so you can see exactly what the solution set looks like instead of just being told it's infinite.

Formulas & Equations Used

2×2 elimination target: (b₁a₂ − b₂a₁)y = c₁a₂ − c₂a₁

2×2 determinant: Δ = a₁b₂ − a₂b₁ — unique solution exists exactly when Δ ≠ 0

Substitution: solve one equation for a variable, substitute into the other, back-substitute

Gaussian elimination (any size): row-reduce the augmented matrix [A | c] to identity form, then read off the solution

Example Problems & Step-by-Step Solutions

Example 1 — Elimination

Solve: 2x + y = 5 and x − y = 1.

Step: Add the equations directly since y cancels: 3x = 6, so x = 2. Substitute back: 2 − y = 1, so y = 1.

Result: x = 2, y = 1.

Example 2 — Substitution

Solve: x + 3y = 10 and 2x − y = 6.

Step: From equation 1, x = 10 − 3y. Substitute: 2(10 − 3y) − y = 6 → 20 − 7y = 6 → y = 2. Then x = 10 − 6 = 4.

Result: x = 4, y = 2.

Example 3 — No solution

Solve: 2x + 4y = 6 and x + 2y = 4.

Step: Multiply the second equation by 2: 2x + 4y = 8. But the first equation says 2x + 4y = 6 — a contradiction.

Result: No solution — the lines are parallel.

Example 4 — 3×3 Gaussian elimination

Solve: x + y + z = 6, 2x − y + z = 3, x + 2y − z = 3.

Step: Row-reducing the augmented matrix gives one pivot per variable, so a unique solution exists: x = 9/7, y = 15/7, z = 18/7.

Result: A single point where all three planes meet.

Frequently Asked Questions

What is an augmented matrix, in plain terms?

It's just the numbers from your equations written in a grid — one row per equation, one column per variable's coefficient, plus a final column for what each equation equals. Nothing more mysterious than a compact notation.

Which method should I use for a 2×2 system?

Both always work. Elimination tends to be quicker when the coefficients line up nicely; substitution is often more natural when one equation already isolates a variable (like x = ... or y = ...).

What does it mean if there are infinitely many solutions?

The equations don't actually give independent information — one is a disguised version of another (or a combination of others), so every point that satisfies one automatically satisfies the rest. The calculator will show you the remaining relationship as a formula with one free variable.

Why does a row like 0 = 5 mean no solution?

Every row in a reduced matrix represents an equation. A row of all zero coefficients but a nonzero result claims that 0 equals some nonzero number — which is never true, so no values of the variables can satisfy the whole system.

Can this solve nonlinear systems?

No — this tool is for linear systems only, where every variable appears to the first power with no products of variables or exponents.

Why use Classify mode instead of just solving?

Sometimes a problem only asks how many solutions a system has, not what they are. Classify mode skips the full row-reduction narrative and gets straight to the answer.

Matrix Calculator
Perform matrix operations with steps, exact fractions, and visuals
Eigenvalue and Eigenvector Calculator
Calculate eigenvalues, eigenvectors, characteristic polynomials, and diagonalization with steps
Substitution Method Calculator
Solve linear systems, already-solved equations, and line-parabola systems by substitution — with graphs and steps
Fraction Calculator
Calculate fractions step by step with mixed numbers, decimals, LCD/LCM, comparisons, and conversions
Inequality Solver
Solve linear, compound, quadratic, rational, and absolute value inequalities with steps and graphs
Equation Solver
Solve algebra equations step by step with checks, visuals, and multiple equation types
Rational Equation Solver
Solve rational equations with domain restrictions, LCD clearing, extraneous checks
Elimination Method Calculator
Solve 2×2 and 3×3 linear systems by elimination - with tableau steps, a cascade diagram, and answer verification
Graphing Calculator
Graph functions, compare equations, trace coordinates, and explore graph features step by step
Point-Slope Form Calculator
Build line equations from a point and slope with steps and graph
Reduced Row Echelon Form (RREF) Calculator
Convert matrices to RREF with exact fractions, pivots, rank, and row-operation steps
SAT / ACT Score Calculator & Predictor
Calculate SAT and ACT scores, compare test equivalents, predict improvements, and plan score goals
Ordinary Differential Equations (ODE) Calculator
Solve first-order ordinary differential equations with steps, slope fields, Euler’s method, and solution curves
Gauss-Jordan Elimination Calculator
Solve systems of equations, find matrix inverses, compute RREF, rank, pivots, and row operations
Slope / Slope-Intercept Calculator
Find slope, line equations, intercepts, and graph linear equations with steps
Back to all calculatorsAll calculators