Skip to content

Tutorial

How to Solve Systems of Equations: 3 Methods with Examples

Published 15 March 2026 · 10 min read

A system of equations is a set of two or more equations with the same variables. Solving the system means finding values for the variables that satisfy all equations simultaneously. Systems of equations appear throughout mathematics, science, and engineering, from balancing chemical reactions to optimising business models.

In this guide, you will learn three powerful methods for solving systems of linear equations: substitution, elimination, and matrices. Each method is demonstrated with fully worked examples so you can choose the best approach for any problem.

Key Concepts

What Is a System of Linear Equations?

A system of two linear equations in two unknowns has the general form:

Geometrically, each equation represents a straight line. The solution is the point where the two lines intersect.

One solution

The lines intersect at exactly one point. The system is consistent and independent.

No solution

The lines are parallel and never intersect. The system is inconsistent.

Infinite solutions

The lines are identical (same line). The system is consistent and dependent.

Method 1: Substitution

The substitution method works by solving one equation for one variable, then substituting that expression into the other equation. This reduces the system to a single equation with one unknown.

Step-by-step process

  1. Solve one equation for one variable (choose the easiest one).
  2. Substitute the expression into the other equation.
  3. Solve the resulting single-variable equation.
  4. Back-substitute to find the other variable.

Example 1: Substitution

Solve the system:

The first equation already gives in terms of . Substitute into the second equation:

Back-substitute to find :

The solution is .

Method 2: Elimination

The elimination method (also called the addition method) works by adding or subtracting equations to eliminate one variable. You may need to multiply one or both equations by a constant first so that the coefficients of one variable are equal and opposite.

Step-by-step process

  1. Arrange both equations in the form .
  2. Multiply one or both equations so that one variable has matching (or opposite) coefficients.
  3. Add or subtract the equations to eliminate that variable.
  4. Solve for the remaining variable, then back-substitute.

Example 2: Elimination

Solve the system:

The coefficients are already opposites (+3 and -3). Add the equations:

Substitute into the first equation:

The solution is .

Method 3: Matrices (Cramer's Rule)

For systems of linear equations, matrix methods provide a systematic and powerful approach. Cramer's rule uses determinants to find each variable directly.

Cramer's Rule for 2x2 Systems

For the system and :

The system has a unique solution when .

Example 3: Cramer's Rule

Solve the system:

Identify the coefficients: , , , , , .

Calculate the determinant:

Find x and y:

The solution is .

Choosing the Right Method

MethodBest whenDrawback
SubstitutionOne variable is already isolatedMessy with complex coefficients
EliminationCoefficients are easy to matchMore steps for 3+ variables
MatricesLarger systems, systematic approachRequires determinant knowledge

Systems with Three Variables

All three methods extend to systems with three or more variables. For elimination, you repeatedly combine pairs of equations to reduce the system. For matrices, you use row reduction (Gaussian elimination) or extend Cramer's rule with 3x3 determinants.

A system of three equations in three unknowns has the form:

Geometrically, each equation represents a plane. The solution is the point where all three planes intersect.

Common Mistakes

Sign errors when subtracting equations

When subtracting one equation from another, remember to negate every term in the second equation. Missing one sign will propagate through the entire solution.

Forgetting to multiply all terms

When multiplying an equation by a constant, you must multiply every term, including the constant on the right side of the equals sign.

Not checking the solution

Always substitute your answer back into both original equations to verify. This catches arithmetic errors before they become a problem.

Assuming every system has a unique solution

Parallel lines give no solution, and identical lines give infinitely many. Always consider these possibilities, especially when the determinant is zero.

Try It Yourself

Need to solve an equation for a specific variable? Our solve-for-x calculator can help you work through equations step by step.

Open Solve for X Calculator

For the matrix approach, our System of Equations Calculator handles 2x2 and 3x3 systems with multiple solution methods.

Related Articles