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
- Solve one equation for one variable (choose the easiest one).
- Substitute the expression into the other equation.
- Solve the resulting single-variable equation.
- 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
- Arrange both equations in the form .
- Multiply one or both equations so that one variable has matching (or opposite) coefficients.
- Add or subtract the equations to eliminate that variable.
- 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
| Method | Best when | Drawback |
|---|---|---|
| Substitution | One variable is already isolated | Messy with complex coefficients |
| Elimination | Coefficients are easy to match | More steps for 3+ variables |
| Matrices | Larger systems, systematic approach | Requires 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 CalculatorRelated Articles
How to Solve Quadratic Equations: 3 Methods with Examples
Learn how to solve quadratic equations using the quadratic formula, factoring, and completing the square. Step-by-step worked examples with clear explanations.
How to Find the Slope of a Line: Formula, Methods, and Examples
Learn how to find the slope of a line using the slope formula, rise over run, and slope-intercept form. Covers parallel and perpendicular slopes with worked examples.
How to Calculate Probability: Formulas, Rules, and Examples
Master probability calculations with clear explanations of basic probability, conditional probability, independent events, and combinations. Includes real-world worked examples.