Linear Equation Notes

Published on: September 29, 2026

This Linear Equation Calculator finds the value of the variable in an equation that takes several moves to unpick, and shows the working behind each one. Both sides are expanded and simplified first, then the variable terms are collected on one side and the constants on the other, with the same operation done to both sides so the equation stays balanced. The coefficient left in front of the variable is undone last, and the answer is checked in the original equation. That pattern works on every linear equation.

Step-by-step method

  1. Set up the problem.
  2. Expand and simplify. Remove the brackets and combine the like terms on each side, covered in the Simplifying Algebraic Expressions Calculator.
  3. Collect the variable terms. Move every term that holds the variable onto one side by adding or subtracting that term on both sides, so the equation stays balanced.
  4. Collect the constant terms. Move every constant onto the other side by adding or subtracting that constant on both sides, so the equation stays balanced.
  5. Isolate the variable. Undo the coefficient that is still attached to the variable, covered in the Solving One-Step Equations Calculator.
  6. Verify the solution. Put the answer back into the original equation and check that both sides come out equal.

Depending on the equation, some of these steps are not needed, so they are skipped.

See Example 1 Hide Example 1

Problem

\(2x + 3 = 11\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Expand and simplify. Remove the brackets and combine the like terms on each side, covered in the Simplifying Algebraic Expressions Calculator.
  3. Collect the variable terms. Move every term that holds the variable onto one side by adding or subtracting that term on both sides, so the equation stays balanced.
  4. Collect the constant terms. Move every constant onto the other side by adding or subtracting that constant on both sides, so the equation stays balanced.
  5. Isolate the variable. Undo the coefficient that is still attached to the variable, covered in the Solving One-Step Equations Calculator.
  6. Verify the solution. Put the answer back into the original equation and check that both sides come out equal.

Depending on the equation, some of these steps are not needed, so they are skipped.

Step 1

Step 1 - Set up the problem.

In this problem: The equation is \(2x + 3 = 11\), with \(2x + 3\) on the left of the equals sign and \(11\) on the right.

\(2x + 3 = 11\)

Step 2

Step 2 - Collect the constant terms. Move every constant onto the other side by adding or subtracting that constant on both sides, so the equation stays balanced.

In this problem: The left side is \(2x + 3\), which still holds the constant \(3\).

\(2x + 3 = 11\)

Step 2a

Step 2a - Subtract \(3\) from both sides.

In this problem: \(3\) is subtracted from both sides to clear that constant off the left.

\(2x + 3 - 3 = 11 - 3\)

Step 2b

Step 2b - Work out each side.

In this problem: On the left, \(3 - 3 = 0\), so only the variable term is left there. On the right, \(11 - 3 = 8\).

\(2x = 8\)

Step 3

Step 3 - Isolate the variable. Undo the coefficient that is still attached to the variable, covered in the Solving One-Step Equations Calculator.

In this problem: The left side of \(2x = 8\) is \(2x\), so \(x\) still carries the coefficient \(2\). Solving this one-step equation gives \(x = 4\), worked through below.

\(x = 4\)

Step 4

Step 4 - Verify the solution. Put the answer back into the original equation and check that both sides come out equal.

In this problem: The answer \(x = 4\) is checked in three parts: write the original equation, put \(4\) in place of \(x\), then work out both sides.

\(x = 4\)

Step 4a

Step 4a - Write the original equation.

In this problem: The original equation is \(2x + 3 = 11\).

\(2x + 3 = 11\)

Step 4b

Step 4b - Put the answer in place of the variable.

In this problem: Putting \(4\) in place of every \(x\) in \(2x + 3 = 11\) gives \(2\left(4\right) + 3 = 11\).

\(2\left(4\right) + 3 = 11\)

Step 4c

Step 4c - Work out both sides.

In this problem: On the left, \(2\left(4\right) + 3 = 11\). On the right, \(11\). Both sides are equal, so \(x = 4\) is correct.

\(11 = 11\)

Final Answer

\(x = 4\)
See Example 2 Hide Example 2

Problem

\(3x - 5 = x + 7\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Expand and simplify. Remove the brackets and combine the like terms on each side, covered in the Simplifying Algebraic Expressions Calculator.
  3. Collect the variable terms. Move every term that holds the variable onto one side by adding or subtracting that term on both sides, so the equation stays balanced.
  4. Collect the constant terms. Move every constant onto the other side by adding or subtracting that constant on both sides, so the equation stays balanced.
  5. Isolate the variable. Undo the coefficient that is still attached to the variable, covered in the Solving One-Step Equations Calculator.
  6. Verify the solution. Put the answer back into the original equation and check that both sides come out equal.

Depending on the equation, some of these steps are not needed, so they are skipped.

Step 1

Step 1 - Set up the problem.

In this problem: The equation is \(3x - 5 = x + 7\), with \(3x - 5\) on the left of the equals sign and \(x + 7\) on the right.

\(3x - 5 = x + 7\)

Step 2

Step 2 - Collect the variable terms. Move every term that holds the variable onto one side by adding or subtracting that term on both sides, so the equation stays balanced.

In this problem: The left side holds \(3x\) and the right side holds \(x\), so a variable term is still sitting on the right.

\(3x - 5 = x + 7\)

Step 2a

Step 2a - Subtract \(x\) from both sides.

In this problem: To gather both variable terms on the left, \(x\) is subtracted from both sides.

\(3x - 5 - x = x + 7 - x\)

Step 2b

Step 2b - Work out each side.

In this problem: On the left, \(3x - x = 2x\). On the right, \(x - x = 0\), so the right side no longer holds \(x\).

\(2x - 5 = 7\)

Step 3

Step 3 - Collect the constant terms. Move every constant onto the other side by adding or subtracting that constant on both sides, so the equation stays balanced.

In this problem: The left side is \(2x - 5\), which still holds the constant \(-5\).

\(2x - 5 = 7\)

Step 3a

Step 3a - Add \(5\) to both sides.

In this problem: \(5\) is added to both sides to clear that constant off the left.

\(2x - 5 + 5 = 7 + 5\)

Step 3b

Step 3b - Work out each side.

In this problem: On the left, \(-5 + 5 = 0\), so only the variable term is left there. On the right, \(7 + 5 = 12\).

\(2x = 12\)

Step 4

Step 4 - Isolate the variable. Undo the coefficient that is still attached to the variable, covered in the Solving One-Step Equations Calculator.

In this problem: The left side of \(2x = 12\) is \(2x\), so \(x\) still carries the coefficient \(2\). Solving this one-step equation gives \(x = 6\), worked through below.

\(x = 6\)

Step 5

Step 5 - Verify the solution. Put the answer back into the original equation and check that both sides come out equal.

In this problem: The answer \(x = 6\) is checked in three parts: write the original equation, put \(6\) in place of \(x\), then work out both sides.

\(x = 6\)

Step 5a

Step 5a - Write the original equation.

In this problem: The original equation is \(3x - 5 = x + 7\).

\(3x - 5 = x + 7\)

Step 5b

Step 5b - Put the answer in place of the variable.

In this problem: Putting \(6\) in place of every \(x\) in \(3x - 5 = x + 7\) gives \(3\left(6\right) - 5 = 6 + 7\).

\(3\left(6\right) - 5 = 6 + 7\)

Step 5c

Step 5c - Work out both sides.

In this problem: On the left, \(3\left(6\right) - 5 = 13\). On the right, \(6 + 7 = 13\). Both sides are equal, so \(x = 6\) is correct.

\(13 = 13\)

Final Answer

\(x = 6\)
See Example 3 Hide Example 3

Problem

\(5x - 4 = 21\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Expand and simplify. Remove the brackets and combine the like terms on each side, covered in the Simplifying Algebraic Expressions Calculator.
  3. Collect the variable terms. Move every term that holds the variable onto one side by adding or subtracting that term on both sides, so the equation stays balanced.
  4. Collect the constant terms. Move every constant onto the other side by adding or subtracting that constant on both sides, so the equation stays balanced.
  5. Isolate the variable. Undo the coefficient that is still attached to the variable, covered in the Solving One-Step Equations Calculator.
  6. Verify the solution. Put the answer back into the original equation and check that both sides come out equal.

Depending on the equation, some of these steps are not needed, so they are skipped.

Step 1

Step 1 - Set up the problem.

In this problem: The equation is \(5x - 4 = 21\), with \(5x - 4\) on the left of the equals sign and \(21\) on the right.

\(5x - 4 = 21\)

Step 2

Step 2 - Collect the constant terms. Move every constant onto the other side by adding or subtracting that constant on both sides, so the equation stays balanced.

In this problem: The left side is \(5x - 4\), which still holds the constant \(-4\).

\(5x - 4 = 21\)

Step 2a

Step 2a - Add \(4\) to both sides.

In this problem: \(4\) is added to both sides to clear that constant off the left.

\(5x - 4 + 4 = 21 + 4\)

Step 2b

Step 2b - Work out each side.

In this problem: On the left, \(-4 + 4 = 0\), so only the variable term is left there. On the right, \(21 + 4 = 25\).

\(5x = 25\)

Step 3

Step 3 - Isolate the variable. Undo the coefficient that is still attached to the variable, covered in the Solving One-Step Equations Calculator.

In this problem: The left side of \(5x = 25\) is \(5x\), so \(x\) still carries the coefficient \(5\). Solving this one-step equation gives \(x = 5\), worked through below.

\(x = 5\)

Step 4

Step 4 - Verify the solution. Put the answer back into the original equation and check that both sides come out equal.

In this problem: The answer \(x = 5\) is checked in three parts: write the original equation, put \(5\) in place of \(x\), then work out both sides.

\(x = 5\)

Step 4a

Step 4a - Write the original equation.

In this problem: The original equation is \(5x - 4 = 21\).

\(5x - 4 = 21\)

Step 4b

Step 4b - Put the answer in place of the variable.

In this problem: Putting \(5\) in place of every \(x\) in \(5x - 4 = 21\) gives \(5\left(5\right) - 4 = 21\).

\(5\left(5\right) - 4 = 21\)

Step 4c

Step 4c - Work out both sides.

In this problem: On the left, \(5\left(5\right) - 4 = 21\). On the right, \(21\). Both sides are equal, so \(x = 5\) is correct.

\(21 = 21\)

Final Answer

\(x = 5\)
See Example 4 Hide Example 4

Problem

\(6x + 2 = 2x + 18\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Expand and simplify. Remove the brackets and combine the like terms on each side, covered in the Simplifying Algebraic Expressions Calculator.
  3. Collect the variable terms. Move every term that holds the variable onto one side by adding or subtracting that term on both sides, so the equation stays balanced.
  4. Collect the constant terms. Move every constant onto the other side by adding or subtracting that constant on both sides, so the equation stays balanced.
  5. Isolate the variable. Undo the coefficient that is still attached to the variable, covered in the Solving One-Step Equations Calculator.
  6. Verify the solution. Put the answer back into the original equation and check that both sides come out equal.

Depending on the equation, some of these steps are not needed, so they are skipped.

Step 1

Step 1 - Set up the problem.

In this problem: The equation is \(6x + 2 = 2x + 18\), with \(6x + 2\) on the left of the equals sign and \(2x + 18\) on the right.

\(6x + 2 = 2x + 18\)

Step 2

Step 2 - Collect the variable terms. Move every term that holds the variable onto one side by adding or subtracting that term on both sides, so the equation stays balanced.

In this problem: The left side holds \(6x\) and the right side holds \(2x\), so a variable term is still sitting on the right.

\(6x + 2 = 2x + 18\)

Step 2a

Step 2a - Subtract \(2x\) from both sides.

In this problem: To gather both variable terms on the left, \(2x\) is subtracted from both sides.

\(6x + 2 - 2x = 2x + 18 - 2x\)

Step 2b

Step 2b - Work out each side.

In this problem: On the left, \(6x - 2x = 4x\). On the right, \(2x - 2x = 0\), so the right side no longer holds \(x\).

\(4x + 2 = 18\)

Step 3

Step 3 - Collect the constant terms. Move every constant onto the other side by adding or subtracting that constant on both sides, so the equation stays balanced.

In this problem: The left side is \(4x + 2\), which still holds the constant \(2\).

\(4x + 2 = 18\)

Step 3a

Step 3a - Subtract \(2\) from both sides.

In this problem: \(2\) is subtracted from both sides to clear that constant off the left.

\(4x + 2 - 2 = 18 - 2\)

Step 3b

Step 3b - Work out each side.

In this problem: On the left, \(2 - 2 = 0\), so only the variable term is left there. On the right, \(18 - 2 = 16\).

\(4x = 16\)

Step 4

Step 4 - Isolate the variable. Undo the coefficient that is still attached to the variable, covered in the Solving One-Step Equations Calculator.

In this problem: The left side of \(4x = 16\) is \(4x\), so \(x\) still carries the coefficient \(4\). Solving this one-step equation gives \(x = 4\), worked through below.

\(x = 4\)

Step 5

Step 5 - Verify the solution. Put the answer back into the original equation and check that both sides come out equal.

In this problem: The answer \(x = 4\) is checked in three parts: write the original equation, put \(4\) in place of \(x\), then work out both sides.

\(x = 4\)

Step 5a

Step 5a - Write the original equation.

In this problem: The original equation is \(6x + 2 = 2x + 18\).

\(6x + 2 = 2x + 18\)

Step 5b

Step 5b - Put the answer in place of the variable.

In this problem: Putting \(4\) in place of every \(x\) in \(6x + 2 = 2x + 18\) gives \(6\left(4\right) + 2 = 2\left(4\right) + 18\).

\(6\left(4\right) + 2 = 2\left(4\right) + 18\)

Step 5c

Step 5c - Work out both sides.

In this problem: On the left, \(6\left(4\right) + 2 = 26\). On the right, \(2\left(4\right) + 18 = 26\). Both sides are equal, so \(x = 4\) is correct.

\(26 = 26\)

Final Answer

\(x = 4\)