How to solve a system of two equations

Quick answer To solve a system of two equations, you can use substitution or elimination. Both methods find the variable values that satisfy both equations simultaneously. Checking your solution in both original equations ensures your answer is correct. Both equations are satisfied with a specific value for each variable.

What you will need
  • The two equations (e.g., x + y = 5; 2x - y = 1)
  • Paper and pencil
  • Calculator (optional or for checking)
  • Basic understanding of solving linear equations
Estimated time15-25 minutes
Do it for me

0 of 8 steps complete

1Choose a variable to isolate

Write x + y = 5 and 2x − y = 1 on separate lines. In the first equation, subtract x from both sides to get y = 5 − x. Substitution works well here because the coefficient of y is 1. You will replace y in the second equation with this whole expression.

Checkpoint You have y = 5 − x and the unchanged second equation.

2Substitute and solve for one variable

Plug y = 5 - x into the second equation: 2x - (5 - x) = 1. This simplifies to 2x - 5 + x = 1. Combine like terms: 3x - 5 = 1; then add 5: 3x = 6; divide by 3: x = 2.

Checkpoint Value for one variable found (e.g., x = 2).

3Solve for the other variable

Substitute x = 2 into y = 5 - x: y = 5 - 2 = 3. Thus, the solution is x = 2, y = 3.

Checkpoint Both variables have values.

4Check both equations with your solution

For x + y = 5: 2 + 3 = 5 (correct). For 2x - y = 1: 2*2 - 3 = 4 - 3 = 1 (correct). Both check out, so your solution is valid.

Checkpoint Substituted values satisfy both equations.

5Use elimination when terms cancel

For 2x + 3y = 12 and x − 3y = 3, add the equations: 3x = 15, so x = 5. Substitute into x − 3y = 3: 5 − 3y = 3, so y = 2/3. Check both original equations: 10 + 2 = 12 and 5 − 2 = 3.

Checkpoint Both values satisfy both equations.

6Check the result against your goal

Both equations are satisfied with a specific value for each variable.

Checkpoint Identify any part that still needs work.

7Fix the biggest gap

Review this common mistake before you finish. Incorrect substitution can produce wrong values for both variables.

Checkpoint Both values satisfy both equations.

8Record the result and the next action

Use the worksheet to record what you completed, what remains, and when you’ll review it. Keep it with the materials you used for this task.

Checkpoint You can return to the worksheet and see exactly where to pick up.

Worksheet and checklist

Both equations are satisfied with a specific value for each variable.

Save to My Hows

Common mistakes to avoid

What mistakes should I avoid if I want to solve a system of two equations?

  • Incorrect substitution can produce wrong values for both variables.
  • Systems with no or infinite solutions produce contradictions or identical equations.
What if both variables are on the same side in both equations?

You can still use elimination: align variables and coefficients, then add or subtract equations to eliminate one variable and solve for the other.

What if the system has no solution?

If eliminating a variable leads to a false statement (like 0 = 5), then the system has no solution and the lines are parallel (inconsistent system).