Linear Equation Solver
Solve ax+b=c for x.
Loading tool…
About this tool
Enter a, b and c in ax + b = c to get x. 2x + 3 = 11 gives x = (11 − 3) ÷ 2 = 4.
How to use
1
Step 1
Enter a, the coefficient of x.
2
Step 2
Enter b, the constant on the left.
3
Step 3
Enter c, the right-hand side.
4
Step 4
Press Calculate.
How it works
Subtract b from both sides and divide by a. With a negative a the same steps work: −5x + 7 = −8 gives −5x = −15, so x = 3.
x = (c − b) ÷ a
Worked example
Negative coefficient
- Input
- a = −5, b = 7, c = −8
- Output
- 3
- Walkthrough
- (−8 − 7) ÷ (−5) = −15 ÷ −5 = 3. Check: −5×3 + 7 = −8.
Limitations
- a cannot be 0, since then x disappears.
- Only equations in the form ax + b = c; use the equation solver for other shapes.
Questions
What is x if 2x + 3 = 11?
x = 4.
What is x if −5x + 7 = −8?
x = 3.
What is x if 3x − 2 = 7?
x = 3.
Features
- Instant result
- Working shown
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Finding mean, median, and mode
Khan Academy
Descriptive stats used across statistics tools.
Watch on YouTubeSolving an equation with variables on both sides
Khan Academy
Classic linear solve pattern for algebra calculators.
Watch on YouTube
- Math is Fun
Math is Fun
Clear explainers that pair well with calculator-style tools.
- Order of Operations
Math is Fun
PEMDAS/BODMAS when expression tools surprise you.
More Math tools
See all ›Equation Solver
Solve algebraic equations for a variable.
System of Equations Solver
Solve simultaneous linear equations.
Inverse Function Calculator
Find inverses of linear functions ax+b.
Slope Calculator
Calculate slope between two points.
Inequality Solver
Solve algebraic inequalities.
Absolute Value Equations
Solve equations with absolute values.