Solve for X Calculator

Solve linear equations in the form ax + b = c for the unknown variable x. Get step-by-step solutions instantly.

Linear Equation Solver

Enter the coefficients for equation: ax + b = c

Formula & Explanation

For a linear equation in the form ax + b = c:

x = (c - b) / a

How It Works

  1. Subtract b from both sides: ax = c - b
  2. Divide by a on both sides: x = (c - b) / a
  3. The result is your solution for x!

Note: If a = 0, the equation becomes b = c, which either has no solution or infinitely many solutions depending on whether b equals c.

Examples

Example 1

Solve: 2x + 3 = 11

x = (11 - 3) / 2

x = 8 / 2

x = 4

Example 2

Solve: 5x - 7 = 18

x = (18 + 7) / 5

x = 25 / 5

x = 5

Example 3

Solve: 3x + 12 = 0

x = (0 - 12) / 3

x = -12 / 3

x = -4

Example 4

Solve: -2x + 6 = 14

x = (14 - 6) / -2

x = 8 / -2

x = -4

Example 5

Solve: x + 2 = 5

x = (5 - 2) / 1

x = 3 / 1

x = 3