Find x in ax + b = c
Enter numbers for a, b, and c. This calculator solves for x and shows the algebra steps.
What this calculator does
This page is built for one job: helping you solve equations where you need to find the value of x in the form ax + b = c. That pattern appears in school math, finance formulas, business modeling, coding logic, and everyday “reverse calculation” problems.
Instead of manually rearranging the equation each time, you can plug in the known values and immediately get x. You also get step-by-step logic, so the calculator works as a learning tool—not just a shortcut.
How to use the calculator
- Type a value for a (the coefficient multiplying x).
- Type a value for b (the added/subtracted constant).
- Type a value for c (the value on the right side of the equation).
- Click Calculate x.
The result box shows:
- The final answer for x in decimal form.
- Fraction form when the decimal can be represented cleanly.
- Algebra steps so you can verify the process.
The algebra behind finding x
To solve ax + b = c:
- Subtract b from both sides: ax = c - b
- Divide both sides by a: x = (c - b) / a
This works as long as a ≠ 0. If a = 0, then there is no x-term, and the equation becomes a statement about constants only.
- If a = 0 and b = c, there are infinitely many solutions.
- If a = 0 and b ≠ c, there is no solution.
Worked examples
Example 1: 2x + 5 = 17
Subtract 5 from both sides: 2x = 12. Divide by 2: x = 6.
Example 2: -3x + 9 = 0
Subtract 9: -3x = -9. Divide by -3: x = 3.
Example 3: 0.5x + 1.5 = 7.5
Subtract 1.5: 0.5x = 6. Divide by 0.5: x = 12.
Common mistakes when solving for x
- Sign errors: forgetting that subtracting a negative becomes addition.
- Skipping both sides: applying an operation to only one side of the equation.
- Dividing too early: trying to divide before isolating the x-term properly.
- Ignoring a = 0: this changes the equation type and can lead to no solution or infinite solutions.
When this “find x” calculator is useful
You can use this tool for:
- Homework checks and exam practice.
- Quick verification in spreadsheets or reports.
- Simple parameter solving in scripts and data work.
- Budget and pricing formulas that can be rearranged linearly.
Final tip
After getting x, always plug it back into the original equation. A quick substitution catches typos and confirms your answer is correct. The fastest way to improve in algebra is to pair quick tools like this calculator with deliberate step-by-step checking.