Skip to content
Toolcroft

Linear System Solver - 2×2 and 3×3 Equations

Math Calculators

Solve systems of 2 or 3 linear equations with step-by-step Gaussian elimination. Detects unique solutions, no solution (inconsistent), and infinite solutions (dependent).

System size:
Eq.xyconstant
1=
2=

Unique Solution

x =

2

y =

3

Loading chart…
Lines plot
x1x + 1y = 52x + -1y = 1
-5.000010.0000-11.0000
-3.88898.8889-8.7778
-2.77787.7778-6.5556
-1.66676.6667-4.3333
-0.55565.5556-2.1111
0.55564.44440.1111
1.66673.33332.3333
2.77782.22224.5556
3.88891.11116.7778
5.00000.00009.0000

How to use this tool

  1. Choose system size. Select 2×2 (two equations, two unknowns) or 3×3 (three equations, three unknowns).
  2. Enter the coefficients. Fill each row with the coefficients of x, y (and z for 3×3), then the right-hand-side constant.
  3. View the solution. See the values of x, y, and z, or learn whether the system has no solution or infinitely many.
  4. Study the steps. Expand the step-by-step log to see each row operation performed during Gaussian elimination.

What is a system of linear equations?

A system of linear equations is a collection of equations, each linear in its variables. In two dimensions, each equation describes a line; the solution is the point where all lines intersect. In three dimensions, each equation is a plane; the solution is the point where all planes meet.

Gaussian elimination explained

Gaussian elimination converts the augmented matrix [A | b] to row echelon form using elementary row operations. Partial pivoting (always choosing the row with the largest absolute pivot value) improves numerical stability and avoids division by very small numbers.

Three possible outcomes

  • Unique solution: the system is consistent and the coefficient matrix has full rank. Back substitution gives exact values for each variable.
  • No solution: the system is inconsistent. After elimination, a row of the form 0 = c (c ≠ 0) appears.
  • Infinite solutions: the system is dependent. At least one equation is redundant (a linear combination of the others), leaving a free variable.

Applications

Linear systems appear throughout science and engineering: balancing chemical equations, network flow analysis, circuit analysis (Kirchhoff's laws), computer graphics (coordinate transformations), economics (input-output models), and machine learning (least-squares regression via the normal equations).

Row reduction notation

Gaussian elimination operates on the augmented matrix [A | b] using elementary row operations. Standard notation uses Ri for row i:

System:  2x + y = 5
          x − y = 1

Augmented matrix:
[ 2  1 | 5 ]
[ 1 -1 | 1 ]

R₁ ↔ R₂  (swap rows to put larger pivot first):
[ 1 -1 | 1 ]
[ 2  1 | 5 ]

R₂ -> R₂ − 2R₁  (eliminate x from row 2):
[ 1 -1 | 1 ]
[ 0  3 | 3 ]

Back-substitute: y = 1, then x = 1 + y = 2

Applications by field

FieldApplication
Electrical engineeringKirchhoff's voltage/current laws produce a linear system for node voltages and branch currents
Structural engineeringForce-balance equations at joints in truss structures
EconomicsLeontief input-output models - how much each industry must produce given final demand
Computer graphicsCoordinate transformations - rotation, scaling, and perspective projection
ChemistryBalancing chemical equations by setting stoichiometric coefficients

Frequently asked questions

What is a system of linear equations?

A system of linear equations is a set of two or more equations, each of the form a₁x + a₂y + … = b, that must be satisfied simultaneously. Geometrically, each equation represents a line (2D) or plane (3D), and the solution is where all lines or planes intersect.

What is Gaussian elimination?

Gaussian elimination is a systematic method for solving linear systems. It transforms the augmented matrix into row echelon form using three elementary row operations: swapping rows, scaling a row, and adding a multiple of one row to another. Back substitution then yields the solution.

What does "no solution" mean?

A system is inconsistent (no solution) when the equations contradict each other. For example, x + y = 1 and x + y = 2 cannot both be true. Gaussian elimination will produce a row of the form 0 = c (where c ≠ 0).

What does "infinite solutions" mean?

A system is dependent (infinite solutions) when two or more equations describe the same geometric object (e.g., two identical lines). Gaussian elimination produces a row of all zeros. The system has one degree of freedom per redundant equation.

How do I enter my equations?

Enter the coefficient of each variable and the right-hand-side constant for each equation. For example, 2x − 3y = 7 becomes row entries: 2, −3, 7. Missing variables should be entered as 0.

Browse all math calculators