Calculator Hero

Systems of Equations Calculator

Solves 2×2 and 3×3 linear systems using Gaussian elimination — shows solution values and verification check.

Last updated: June 11, 2026

System Size

Enter Coefficients

x +
y =
x +
y =
2x + y = 7
x − y = 2

x

3

y

1

Verification (Check)

2(3) + 1(1) = 7 ≈ 7

1(3) + -1(1) = 2 ≈ 2

How to Use the Systems of Equations Calculator

This systems of equations calculator solves 2×2 and 3×3 linear systems instantly — select your system size (two equations, two unknowns or three equations, three unknowns) then enter the coefficients directly into the input fields. The calculator displays your system in standard form as you type so you can confirm the equations look correct before solving. Click any field and type a new value; negative numbers and decimals are fully supported.

The result section shows each variable value (x, y, and z for 3×3), plus a verification check confirming that substituting the answers back into each equation produces the correct right-hand side. If the system has no unique solution, the calculator explains whether it is inconsistent (no solution) or dependent (infinitely many solutions).

How Gaussian Elimination Works

Gaussian elimination is a systematic algorithm for solving linear systems. The method works on the augmented matrix — a grid formed by the coefficient values and right-hand side constants. Three elementary row operations are used: swapping two rows, multiplying a row by a nonzero scalar, and adding a multiple of one row to another. None of these operations change the solution set.

Forward Elimination with Partial Pivoting

The calculator uses partial pivoting: before eliminating each column, it swaps in the row with the largest absolute value in that column as the pivot row. This prevents division by near-zero numbers and keeps numerical errors small. After forward elimination, the matrix is in upper triangular form — the bottom-left triangle is all zeros.

Back Substitution

Once the matrix is upper triangular, back substitution reads the variable values from the bottom up. The last equation gives z directly. Substituting z into the second equation gives y. Substituting both into the first equation gives x. Each step is a single division, making back substitution fast and exact.

AdvertisementResponsive Ad

Solving 2×2 Systems — Step-by-Step Example

Consider the system: 2x + y = 7 and x − y = 2. Write the augmented matrix:

[ 2  1 | 7 ]
[ 1 -1 | 2 ]

Row 1 is already the pivot row (largest absolute value in column 1). Subtract (1/2) × Row 1 from Row 2:

[ 2    1   |  7   ]
[ 0  -1.5  | -1.5 ]

Back-substitute: from Row 2, −1.5y = −1.5 → y = 1. Substitute into Row 1: 2x + 1 = 7 → x = 3. Solution: x = 3, y = 1.

Special Cases — No Solution and Infinitely Many Solutions

A linear system in two variables has exactly three possible outcomes, known as the Fundamental Theorem of Linear Systems:

  • Unique solution — the two lines intersect at exactly one point. The determinant of the coefficient matrix is nonzero.
  • No solution (inconsistent) — the lines are parallel (same slope, different intercepts). The coefficient matrix is singular but the system is inconsistent.
  • Infinitely many solutions (dependent) — one equation is a multiple of the other; both describe the same line. The solution is a whole line of points.

The same three outcomes apply to 3×3 systems, but the geometry involves planes instead of lines. Use our quadratic formula calculator for non-linear equations, the proportion calculator for ratio problems, or the inverse function calculator to reverse a single-variable function and solve for its input.

AdvertisementResponsive Ad

Applications of Systems of Linear Equations

Linear systems appear everywhere in applied mathematics and engineering:

  • Mixture problems — mixing two or more solutions to reach a target concentration.
  • Break-even analysis — finding when revenue equals cost by solving cost and revenue equations simultaneously.
  • Circuit analysis — Kirchhoff's current and voltage laws produce a system of simultaneous equations for each node and loop.
  • Structural engineering — force equilibrium at each joint in a truss or frame creates a linear system.
  • Economics and optimization — supply/demand equilibrium, resource allocation, and linear programming all start with linear systems.

Tips for Entering Coefficients

  • Rewrite your equations in standard form ax + by = c before entering values.
  • If a variable is missing from an equation (e.g., there is no y term), enter 0 for its coefficient.
  • Decimals and negative numbers are fully supported — type them directly.
  • For very large or very small coefficients, the result may show scientific notation; this is normal.

Sources & References

  1. Systems of Linear EquationsKhan Academy
  2. Gaussian EliminationMath Is Fun

Frequently Asked Questions

Related Calculators

Advertisement

320 × 50 — Mobile Anchor