System of Equations Calculator

Solve 2×2 and 3×3 simultaneous equations with full step-by-step Gaussian elimination working — free, no paywall. Enter coefficients, hit Solve, and see every row operation and back-substitution explained clearly.

2×2 & 3×3 Systems Gaussian Elimination No Solution & Infinite Solutions Step-by-Step · Verified Results
Share this tool

System Size

2×2 System (Two Unknowns: x, y)

Enter each coefficient — use negative numbers (e.g. -3) where needed.

x coeff y coeff
z coeff
= RHS
(1) x + y
+ z
=
(2) x + y
+ z
=
(3) x + y
+ z
=
Quick Load:

Solving...

Enter the coefficients for your system of equations and click Solve.

How Gaussian Elimination Works

The method that reduces any system to a back-substitution problem in two passes.

2 2×2 System — x + 2y = 5, 3x − y = 1

Input

(1) x + 2y = 5

(2) 3x − y = 1

Step 1 — Eliminate x from (2)

R2 → R2 − 3 × R1

(2') −7y = −14

Step 2 — Solve for y

y = −14 ÷ −7 = 2

Step 3 — Back-substitute into (1)

x + 2(2) = 5 → x = 1

Solution

x = 1, y = 2

3 3×3 System — Augmented Matrix Form

Augmented Matrix

[ 1 1 1 | 6 ]

[ 2 1 -1 | 1 ]

[ 1 2 -1 | 2 ]

Pass 1: R2 → R2 − 2R1, R3 → R3 − R1

After Pass 1 — x eliminated

[ 1 1 1 | 6 ]

[ 0 -1 -3 | -11]

[ 0 1 -2 | -4 ]

Pass 2: R3 → R3 + R2'

After Pass 2 — row echelon form

[ 1 1 1 | 6 ]

[ 0 -1 -3 | -11]

[ 0 0 -5 | -15]

Back-substitution: z → y → x

Solution

z = −15 ÷ −5 = 3

y = (−11 − (−3)(3)) ÷ −1 = 2

x = (6 − 1(2) − 1(3)) ÷ 1 = 1

What Is a System of Equations?

A system of equations is a set of two or more equations that share the same unknowns. The goal is to find values for each variable that satisfy every equation simultaneously. In two dimensions, each equation represents a straight line, and solving the system means finding the point where those lines intersect.

A 2×2 system has two equations and two unknowns (x and y). Geometrically, it asks: where do two lines cross? A 3×3 system has three equations and three unknowns (x, y, z) — it asks where three planes intersect in three-dimensional space.

Systems of equations appear everywhere in applied mathematics: balancing chemical reactions, solving circuit problems using Kirchhoff's laws, finding break-even points in business, and modelling supply-and-demand equilibria. Mastering them is a foundational step in algebra, physics, and engineering.

How to Solve a System of Equations by Elimination

Elimination (also called the addition method) is the most reliable approach for 2×2 systems and scales naturally to 3×3. The idea is to combine equations to cancel out one variable at a time.

Step 1 — choose the target variable. Pick whichever variable has the simplest coefficients across both equations.

Step 2 — multiply to match coefficients. Scale one or both equations so the chosen variable has equal (or opposite) coefficients in both rows.

Step 3 — subtract (or add) to eliminate. Combine the two equations to produce a single equation with only one unknown.

Step 4 — solve and back-substitute. Solve the single-variable equation, then substitute its value back into any original equation to find the remaining variable.

Example — 2x + y = 8, x − y = 1

Add both equations: (2x + y) + (x − y) = 8 + 1

→ 3x = 9 → x = 3

Back-substitute: 3 − y = 1 → y = 2

Solution: x = 3, y = 2

How to Solve a 3×3 System of Equations

A 3×3 system requires two passes of elimination. The process is formally called Gaussian elimination and works on the augmented matrix — the coefficient matrix with the right-hand-side constants appended as an extra column.

Pass 1 — forward elimination. Use the first equation to eliminate x from both the second and third equations. Multiply the first row by an appropriate factor and subtract it from each of the other rows. After this pass, only the first equation still contains x.

Pass 2 — second forward elimination. Use the modified second equation to eliminate y from the third equation. After this pass, the third equation contains only z (or is a contradiction / identity, indicating no solution or infinite solutions).

Back-substitution. Solve for z from the third equation, substitute into the second to find y, then substitute both into the first to find x.

Partial pivoting is a practical refinement: before each elimination pass, swap rows to move the row with the largest absolute pivot value to the top. This prevents division by small numbers and reduces floating-point rounding errors.

No Solution and Infinite Solutions Explained

Not every system has a unique solution. Two special cases arise when the equations are linearly dependent or contradictory.

No solution (inconsistent system) — the equations describe parallel lines (2×2) or parallel planes (3×3) that never intersect. During elimination, this produces a row of the form 0 = nonzero, which is a mathematical impossibility. Example: x + y = 3 and x + y = 5 are the same line shifted — they can never be equal simultaneously.

Infinitely many solutions (dependent system) — at least two equations are multiples of each other and convey the same information. Elimination produces a row of the form 0 = 0, which is always true. The system is under-determined: one variable is free to take any value.

No Solution Example

x + y = 3

x + y = 5

After elimination: 0 = 2 — impossible.

Infinite Solutions Example

x + y = 3

2x + 2y = 6

After elimination: 0 = 0 — always true.

Substitution vs Elimination: Which Method Is Faster?

Substitution isolates one variable in one equation and substitutes the expression into the other. It works well for 2×2 systems where one equation already has a single isolated variable (e.g. y = 2x + 1). However, substituting into a 3×3 system quickly creates messy nested expressions.

Elimination (Gaussian) is generally faster for 3×3 and larger systems because each row operation cancels an entire variable with simple arithmetic. It also has a natural matrix representation, making it the foundation for computer algorithms that solve N×N systems.

Cramer's rule uses determinants and provides a closed-form answer without row operations. It is elegant for 2×2 systems but becomes computationally expensive for 3×3 or larger. Our solver uses Gaussian elimination with partial pivoting — the most numerically stable approach.

Row Operation Notation

Ri ↔ Rj Swap rows i and j
Ri → k·Ri Scale row i by constant k
Ri → Ri − k·Rj Subtract k times row j from row i

Solution Types

Unique — one intersection point
No solution — parallel lines/planes
Infinite — same line/plane

Standard Form

2×2

a₁x + b₁y = c₁

a₂x + b₂y = c₂

3×3

a₁x + b₁y + c₁z = d₁

a₂x + b₂y + c₂z = d₂

a₃x + b₃y + c₃z = d₃

System of Equations FAQ

What is a system of equations?

A system of equations is two or more equations with the same set of unknowns. The solution is the set of values for all unknowns that satisfies every equation in the system at the same time.

How do you solve a 2×2 system of equations step by step?

Choose one variable to eliminate. Multiply one or both equations to make its coefficients equal. Add or subtract the equations to remove that variable. Solve the resulting single-variable equation, then substitute back to find the other variable.

What is Gaussian elimination?

Gaussian elimination is a systematic method for solving systems of linear equations using row operations on the augmented matrix. It converts the system into row echelon form (upper-triangular), then back-substitutes to find each variable. It works for any size system and is the algorithm used by most calculators and software.

When does a system of equations have no solution?

A system has no solution when its equations are inconsistent — they describe parallel lines (2×2) or parallel planes (3×3) that never intersect. This appears during elimination as a row of the form 0 = nonzero, which is a contradiction.

When does a system of equations have infinite solutions?

A system has infinite solutions when its equations are dependent — at least two equations describe the same geometric object (line or plane). During elimination, a row reduces to 0 = 0 (always true), leaving at least one variable free to take any value.

Can I solve a 3×3 system by substitution?

Yes, but it becomes tedious. You isolate one variable in the first equation, substitute it into both the second and third equations (reducing to a 2×2 system), then repeat. For 3×3 systems, Gaussian elimination is significantly faster and less error-prone because each step is a single arithmetic operation on a row.

What are systems of equations used for in real life?

Systems of equations model any situation where multiple constraints must be satisfied simultaneously. Common applications include: finding break-even points in business (cost = revenue), solving circuit problems using Kirchhoff's laws, balancing chemical equations, determining GPS position from satellite signals, and optimising resource allocation in operations research.