Linear Equation Calculator with Steps

Linear Equation Calculator \(ax+b=0\)

Enter coefficients a and b to see how the constant is moved, the reduced fraction, and the decimal form.

Examples (click to solve):

The calculator above solves the linear equation ax + b = 0 and explains each step, including the special cases where a = 0.

Formulas used

ax + b = 0
x = −b / a (a ≠ 0)
  • a ≠ 0: exactly one solution, x = −b/a.
  • a = 0 and b = 0: every real number is a solution.
  • a = 0 and b ≠ 0: no solution.
The solution of ax + b = 0 is where the line y = ax + b meets the x-axisCrosses the x-axisxyON(0; −4)M(2; 0)a ≠ 0: one solution, x = 2(d): y = 2x − 4Parallel to the x-axisxyOa = 0, b ≠ 0: no solution(d): y = 0x + 2Lies on the x-axisxyOa = b = 0: infinitely many(d): y = 0x + 0
The solution of ax + b = 0 is the x-coordinate of the point where the line y = ax + b meets the x-axis. When a ≠ 0 the line crosses the x-axis exactly once: y = 2x − 4 meets it at M(2; 0), so 2x − 4 = 0 has the solution x = 2 (N(0; −4) is where the line meets the y-axis, at height b = −4). When a = 0 the line is horizontal: parallel to the x-axis if b ≠ 0 (no solution), lying on the x-axis if b = 0 (every x is a solution). Click Example 1 in the calculator above to solve the left-hand equation step by step; Examples 4 and 5 cover the two cases with a = 0.

Worked example

Solve 3x − 12 = 0. Move the constant and divide by 3:

3x = 12 ⇒ x = 4

Enter the same values in the calculator above to see every step of the solution.

How to use the calculator

  1. Enter the coefficients a and b.
  2. Press the calculate button. The result appears instantly.
  3. Read the step-by-step solution, rendered with KaTeX, to check your own work.

🎯 Practice quiz: linear equations ax + b = 0

Ten multiple-choice questions with four options each, built on the sections above: recognizing a linear equation, identifying a and b, moving the constant term, finding the solution, a fractional solution, decimal coefficients, the case a = 0, reducing an equation to ax + b = 0, an equation with a parameter m and a word problem. Pick an answer: the correct option turns green, a wrong one turns red, and the worked solution appears right below with a ⚠️ Traps box explaining why the wrong options are tempting. You can enter the coefficients from any question into the calculator above to check every step.

1️⃣ Recognizing a linear equation Question 1. Which of the following is a linear equation in one variable:

2️⃣ Identifying a and b Question 2. In the equation 5 − 3x = 0, the coefficients a and b are:

3️⃣ Moving the constant term Question 3. Solve 4x − 7 = 0. After moving the constant term to the right-hand side, you get:

4️⃣ Finding the solution Question 4. The solution of the equation 2x + 6 = 0 is:

5️⃣ A fractional solution Question 5. The exact solution of the equation 6x − 4 = 0 is:

6️⃣ Decimal coefficients Question 6. The solution of the equation 0.5x − 1.25 = 0 is:

7️⃣ The case a = 0, b ≠ 0 Question 7. The equation 0x + 5 = 0:

8️⃣ Reducing to ax + b = 0 Question 8. The solution set of the equation 2(x − 3) + 6 = 2x is:

9️⃣ Equation with a parameter m Question 9. For which value of m does the equation (m − 2)x + 4 = 0 have no solution:

🔟 Word problem Question 10. A taxi company charges a $3 pick-up fee plus $2 per mile. Ann paid $23 for one ride. How far did she travel: