Algebra • Core Flagship Pillar

System of Equations Calculator

Solve 2×2 and 3×3 simultaneous linear equation systems using substitution, elimination, or matrix determinants (Cramer's Rule), verify geometric intersections with an interactive 2D Cartesian plot, and view full mathematical derivations.

|
Last Updated: September 2026
|
Verified Linear Algebra Solution

Enter Equations in Standard Form

Equation 1 ($a_1 x + b_1 y = c_1$)
x + y =
Equation 2 ($a_2 x + b_2 y = c_2$)
x - y =
Preset System Examples
2D Linear Intersection Graph
Variable x
2.00
Exact = 2
Variable y
3.00
Exact = 3
Determinant (D)
-7
Unique Solution
∑

Step-by-Step Mathematical Solution Breakdown

Direct Answer & Overview
Verified Educational Guide

How to Solve a System of Linear Equations

To solve a 2x2 system of linear equations (a₁x + b₁y = c₁ and a₂x + b₂y = c₂), compute the coefficient determinant D = a₁b₂ − a₂b₁. If D ≠ 0, solve for x = (c₁b₂ − c₂b₁) / D and y = (a₁c₂ − a₂c₁) / D. Alternatively, isolate one variable via substitution or multiply equations to cancel a variable via elimination.

Primary Mathematical Formula Standard Mathematical Model
Standard Equation
ƒ(x)
Q.E.D.
{a1x+b1y=c1a2x+b2y=c2  ⟹  x=c1b2−c2b1a1b2−a2b1,y=a1c2−a2c1a1b2−a2b1\begin{cases} a_1 x + b_1 y = c_1 \\ a_2 x + b_2 y = c_2 \end{cases} \implies x = \frac{c_1 b_2 - c_2 b_1}{a_1 b_2 - a_2 b_1}, \quad y = \frac{a_1 c_2 - a_2 c_1}{a_1 b_2 - a_2 b_1}
Evaluated with exact mathematical formulation • Rigorously verified
Exact Formula
Input Parameters
Required
1
Coefficients a₁, b₁ and constant c₁ for Equation 1
2
Coefficients a₂, b₂ and constant c₂ for Equation 2 (plus Equation 3 for 3x3 systems)
Expected Outputs
Calculated
Simultaneous variable values (x, y, z)
Determinant D, solution classification (Unique, Inconsistent, Dependent), and step-by-step derivation
Worked Numerical Example
Instant Verification
Solve 2x + 3y = 13 and x - 2y = -4
→ D = (2)(-2) - (1)(3) = -7; Dx = (13)(-2) - (-4)(3) = -14 -> x = -14/-7 = 2; Dy = (2)(-4) - (1)(13) = -21 -> y = -21/-7 = 3
(x, y) = (2, 3)

System of Linear Equations: Standard Form & Matrix Notation

A system of linear equations is a collection of two or more linear equations containing the same set of unknown variables. In two dimensions, every linear equation represents a straight line on the Cartesian plane, and the solution to the system corresponds to the point where the lines intersect.

Standard Algebraic Form
a₁x + b₁y = c₁ and a₂x + b₂y = c₂

Where a₁, b₁, a₂, b₂ are real coefficients and c₁, c₂ are constant terms.

Matrix Vector Form (A·x = b)
[a₁ b₁] [x] = [c₁]
[a₂ b₂] [y] [c₂]

Matrix multiplication allows large systems to be solved using linear algebra transformations.

The Three Primary Solution Methods

Method A: Elimination (Addition / Linear Combination)

Multiply one or both equations by non-zero constants so that the coefficients of one variable become exact opposites. Adding the two equations cancels that variable, yielding a single-variable linear equation.

Method B: Substitution

Isolate one variable in terms of the other (e.g. x = (c₁ − b₁y) / a₁) and substitute this algebraic expression into the second equation to solve for y, then back-substitute to find x.

Method C: Cramer’s Rule (Determinant Method)

Computes determinants directly:

D = a₁b₂ − a₂b₁, Dx = c₁b₂ − c₂b₁, Dy = a₁c₂ − a₂c₁
x = Dx / D, y = Dy / D (for D ≠ 0)

Classifying Linear Systems (Unique, No Solution, Infinitely Many)

Consistent & Independent

One Unique Solution

The two lines have different slopes (m₁ ≠ m₂, D ≠ 0) and intersect at exactly one coordinate (x, y).

Inconsistent

No Solution (Parallel)

The two lines have identical slopes but different y-intercepts (D = 0, Dx ≠ 0). They never intersect.

Consistent & Dependent

Infinitely Many Solutions

Both equations describe the identical line (D = 0, Dx = 0, Dy = 0). Every point on the line is a valid solution.

Solving 3×3 Systems with Three Variables (x, y, z)

In three-dimensional space, each linear equation represents a flat plane. A 3×3 system seeks the single 3D point (x, y, z) where all three planes intersect simultaneously.

3x3 Cramer’s Rule Formula
x = Dx / D, y = Dy / D, z = Dz / D

Where each 3×3 determinant is evaluated via cofactor expansion along the top row: det(A) = a₁(b₂c₃ − b₃c₂) − b₁(a₂c₃ − a₃c₂) + c₁(a₂b₃ − a₃b₂).

Real-World Applications of Linear Systems

Economics & Market Equilibrium

Economists solve linear supply and demand equations simultaneously to determine market-clearing equilibrium price and quantity.

Electrical Circuit Analysis (Kirchhoff's Laws)

Electrical engineers solve multiloop mesh current and nodal voltage systems using Kirchhoff’s Current (KCL) and Voltage (KVL) linear equations.

Chemistry & Reaction Balancing

Chemists balance stoichiometric chemical equations by setting up conservation-of-mass linear equation systems across all atomic species.

Step-by-Step Worked Numerical Solutions

Example 1: Solving via Elimination Standard 2x2

Problem: Solve the system 3x + 2y = 16 and 2x − y = 6.

1. Multiply the second equation by 2: 4x − 2y = 12.
2. Add to Equation 1: (3x + 2y) + (4x − 2y) = 16 + 12 ==> 7x = 28 ==> x = 4.
3. Substitute x = 4 into 2x − y = 6 ==> 2(4) − y = 6 ==> 8 − y = 6 ==> y = 2.
Solution: (x, y) = (4, 2)

Common Pitfalls & Mistakes to Avoid

Sign Errors in Cramer's Determinant

Remember the minus sign in D = a₁b₂ − a₂b₁. If a₂b₁ is negative, subtracting a negative yields addition (a₁b₂ − (−k) = a₁b₂ + k).

Misaligning Variable Terms

Always write both equations in strict standard form (Ax + By = C) before extracting coefficients. Mixing up x and y positions produces incorrect determinants.

Failing to Back-Substitute Both Roots

After solving for x, students frequently forget to solve for y or check their (x, y) coordinate pair in both original equations.

Fact-Checked & Verified • Computational Accuracy Standards
Updated August 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

What is a system of linear equations and how do you solve it?
A system of linear equations consists of two or more equations sharing the same set of unknown variables (e.g. x and y). Solving the system means finding the specific coordinate values that simultaneously satisfy all equations. The primary solution methods are Substitution, Elimination (Addition), and Matrix Determinants (Cramer’s Rule).
What is the difference between Substitution and Elimination methods?
The Substitution Method involves isolating one variable in one equation (e.g., x = 5 − 2y) and substituting that expression into the other equation. The Elimination Method involves multiplying equations by constants so that adding or subtracting the equations cancels out one variable entirely.
How do you solve a system of equations using Cramer’s Rule and Determinants?
Cramer’s Rule calculates the main determinant of coefficients D = a₁b₂ − a₂b₁. If D ≠ 0, variable determinants Dx and Dy are formed by replacing the x-column and y-column with the constant terms. The solution is x = Dx / D and y = Dy / D.
What does it mean when a system has No Solution vs. Infinitely Many Solutions?
If the determinant D = 0, the lines are parallel or coincident. If Dx ≠ 0 or Dy ≠ 0, the lines are parallel with different intercepts, meaning they never intersect (Inconsistent System, No Solution). If Dx = 0 and Dy = 0, the equations represent the exact same line (Dependent System, Infinitely Many Solutions).
Can this solver handle 3x3 systems with three variables (x, y, z)?
Yes. Switch to the 3×3 Linear System tab to solve three simultaneous linear equations with three unknown variables using 3×3 matrix determinants and cofactor expansions.
How are systems of equations applied in business and economics?
Economists and business managers use systems of equations to find market equilibrium (where Supply Curve equals Demand Curve) and calculate break-even points (where Total Revenue equals Total Cost).