Systems of Three Equations

Systems of three equations let you find three unknowns from three relationships, the standard approach when a real-world situation has multiple constraints.

{a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3\begin{cases} a_1x + b_1y + c_1z = d_1 \\ a_2x + b_2y + c_2z = d_2 \\ a_3x + b_3y + c_3z = d_3 \end{cases}

Solve a problem with Systems of Three Equations

Type the problem. The solver will use Systems of Three Equations where Systems of Three Equations is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Systems of Three Equations takes
xx
yy
zz
Systems of Three Equations
SymbolMeaning
xxThe first unknown quantity in the system; its value must satisfy all three equations simultaneously.
yyThe second unknown quantity in the system; its value must satisfy all three equations simultaneously.
zzThe third unknown quantity in the system; its value must satisfy all three equations simultaneously.

When to use it

When you have exactly three constraints involving three unknown quantities and need to find a single solution.

Level

Usually taught in: Algebra II

Worked examples

1. Clean system with small integers

Problem

Solve the system: x+y+z=6x + y + z = 6, 2xy+z=32x - y + z = 3, x+2yz=2x + 2y - z = 2.
  1. x2y=3x - 2y = -3

    Subtract equation (1) from equation (2) to eliminate variables and get an equation with only xx and yy.

  2. 2x+3y=82x + 3y = 8

    Add equations (1) and (3) to eliminate zz and create another equation with only xx and yy.

  3. x=2y3x = 2y - 3

    Solve x2y=3x - 2y = -3 for xx by adding 2y2y to both sides.

  4. 2(2y3)+3y=82(2y - 3) + 3y = 8

    Substitute x=2y3x = 2y - 3 into the equation 2x+3y=82x + 3y = 8.

  5. 7y=147y = 14

    Expand to 4y6+3y=84y - 6 + 3y = 8, combine like terms to get 7y=147y = 14.

  6. y=2y = 2

    Divide both sides by 7.

  7. x=1x = 1

    Substitute y=2y = 2 into x=2y3x = 2y - 3 to get x=1x = 1.

  8. z=3z = 3

    Substitute x=1x = 1 and y=2y = 2 into the original equation x+y+z=6x + y + z = 6 to get z=3z = 3.

Answer: x=1,y=2,z=3x = 1, \, y = 2, \, z = 3

We used elimination to reduce three equations to two, then one more reduction gave us a single variable. Once we found yy, we worked backward through our simplified equations to find xx and zz. This systematic approach ensures all three unknowns satisfy the original system.

2. System requiring careful algebra with larger coefficients

Problem

Solve: 3x2y+z=53x - 2y + z = 5, x+4y2z=3x + 4y - 2z = -3, 2xy+3z=82x - y + 3z = 8.
  1. 14y7z=1414y - 7z = -14

    Multiply equation (2) by 3, then subtract equation (1) to eliminate xx: (3x+12y6z)(3x2y+z)=95(3x + 12y - 6z) - (3x - 2y + z) = -9 - 5.

  2. z=2y+2z = 2y + 2

    Divide the result by 7 to get 2yz=22y - z = -2, then rearrange to express zz in terms of yy.

  3. 9y7z=149y - 7z = -14

    Multiply equation (2) by 2, then subtract equation (3) to eliminate xx again: (2x+8y4z)(2xy+3z)=68(2x + 8y - 4z) - (2x - y + 3z) = -6 - 8.

  4. 5y=0-5y = 0

    Substitute z=2y+2z = 2y + 2 into 9y7z=149y - 7z = -14 to get 9y14y14=149y - 14y - 14 = -14, then simplify by combining like terms.

  5. y=0y = 0

    Divide both sides by 5-5.

  6. z=2z = 2

    Substitute y=0y = 0 into z=2y+2z = 2y + 2.

  7. x=1x = 1

    Substitute y=0y = 0 and z=2z = 2 into equation (1): 3x+2=53x + 2 = 5 gives x=1x = 1.

Answer: x=1,y=0,z=2x = 1, \, y = 0, \, z = 2

Larger coefficients required strategic multiplication to set up efficient eliminations. We created two separate 2×2 systems by eliminating xx twice, then solved for one variable, knowing it would unlock the others through substitution.

3. Coffee shop inventory problem

Problem

A coffee shop sold 60 items during lunch: espressos, lattes, and cappuccinos. Espressos cost $2 each, lattes cost $4 each, and cappuccinos cost $5 each. The total revenue was $250. They sold 10 fewer espressos than lattes. Find how many of each type were sold.
  1. x+y+z=60,2x+4y+5z=250,x=y10x + y + z = 60, \quad 2x + 4y + 5z = 250, \quad x = y - 10

    Set up the equations: total items, total revenue in dollars, and the relationship between espresso and latte quantities.

  2. z=702yz = 70 - 2y

    From equation (3), x=y10x = y - 10; substitute into equation (1) to get (y10)+y+z=60(y - 10) + y + z = 60, which simplifies to z=702yz = 70 - 2y.

  3. 2(y10)+4y+5(702y)=2502(y - 10) + 4y + 5(70 - 2y) = 250

    Substitute both x=y10x = y - 10 and z=702yz = 70 - 2y into equation (2).

  4. 2y20+4y+35010y=2502y - 20 + 4y + 350 - 10y = 250

    Expand all terms: 2(y10)=2y202(y - 10) = 2y - 20 and 5(702y)=35010y5(70 - 2y) = 350 - 10y.

  5. 4y+330=250-4y + 330 = 250

    Combine like terms: (2+410)y=4y(2 + 4 - 10)y = -4y and (20+350)=330(-20 + 350) = 330.

  6. 4y=80-4y = -80

    Subtract 330 from both sides.

  7. y=20y = 20

    Divide both sides by 4-4.

  8. x=10x = 10

    Substitute y=20y = 20 into x=y10x = y - 10 to get x=10x = 10 espressos.

  9. z=30z = 30

    Substitute y=20y = 20 into z=702yz = 70 - 2y to get z=30z = 30 cappuccinos.

Answer: espressos=10,lattes=20,cappuccinos=30\text{espressos} = 10, \quad \text{lattes} = 20, \quad \text{cappuccinos} = 30

Word problems require translating descriptions into equations before solving. Here, one equation was already in solved form (x=y10x = y - 10), so substitution was the natural choice. This eliminated a variable immediately and reduced our work.

Common mistakes

Where Systems of Three Equations usually goes wrong
Answer came out wrong
Solving only the first two equations as a 2×22 \times 2 system and not checking the third equation.
After finding (x,y,z)(x, y, z), substitute all three values into each of the three original equations and verify that all three statements are true.
Finding y=2y = 2 and stopping, writing that as the solution without finding xx and zz.
After finding each variable, immediately substitute it back into your simplified equations to solve for the remaining unknowns; check that you have exactly three numerical answers before declaring done.
Multiplying equation (1) by 2 to get 2x+2y+2z=122x + 2y + 2z = 12, then in the next line subtracting from equation (2) using the original equation (1) instead of the multiplied version.
After multiplying an equation, write it on a new line and use only that new form in subsequent steps until the elimination is complete; mark the multiplied equation clearly so you don't accidentally revert to the original.
The mistakeWhy it is wrongThe fix
Solving only the first two equations as a 2×22 \times 2 system and not checking the third equation.Each equation represents a separate constraint that the solution must satisfy; if your answer does not check in all three original equations, it is not the solution to the system.After finding (x,y,z)(x, y, z), substitute all three values into each of the three original equations and verify that all three statements are true.
Finding y=2y = 2 and stopping, writing that as the solution without finding xx and zz.A system of three equations requires three answers—one for each variable; an incomplete solution does not satisfy the system and is marked wrong on any assessment.After finding each variable, immediately substitute it back into your simplified equations to solve for the remaining unknowns; check that you have exactly three numerical answers before declaring done.
Multiplying equation (1) by 2 to get 2x+2y+2z=122x + 2y + 2z = 12, then in the next line subtracting from equation (2) using the original equation (1) instead of the multiplied version.Elimination only works if you subtract consistent forms; mixing the original equation with its multiplied version breaks the cancellation and produces a wrong equation.After multiplying an equation, write it on a new line and use only that new form in subsequent steps until the elimination is complete; mark the multiplied equation clearly so you don't accidentally revert to the original.

Tips and when to use something else

  • Label your three equations as (1), (2), and (3) at the start and refer to them by number as you work; this prevents losing track of which equation you are using and makes it easy to double-check your elimination strategy.
  • If one variable is already isolated in one equation (like x=2y3x = 2y - 3), use substitution immediately rather than elimination, because it cuts your work in half.
  • Check whether the system is dependent (infinitely many solutions) by seeing if one equation is a multiple of another; if equations are identical after simplification, the system does not have a unique solution.
  • If elimination is producing messy fractions or large coefficients, switch to setting up an augmented matrix and using row operations, which is more systematic and less error-prone for difficult systems.

Frequently asked questions

How do I know whether to use elimination or substitution for a system of three equations?
Use substitution if one variable is already isolated in one of the equations; otherwise, use elimination. Both methods work, but substitution saves time when a variable is already solved for. For systems where every equation has all three variables with messy coefficients, elimination tends to be cleaner and more reliable.
Can a system of three equations have no solution?
Yes. If the three equations are inconsistent (for example, two equations describe parallel planes that do not intersect, or the equations lead to a false statement like 0=50 = 5), the system has no solution. You will detect this during solving when you reach a contradiction.
What is the difference between solving a system of two equations and a system of three equations?
A system of two equations in two unknowns usually has one solution point on a 2D plane; a system of three equations in three unknowns usually has one solution point in 3D space (where three planes meet). Both can have no solution or infinitely many solutions depending on whether the equations are consistent and independent.
How do I check that my answer is correct?
Substitute your values for xx, yy, and zz back into all three original equations and verify that each statement is true. If even one equation fails, there is an error in your work.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18