Math Equation Solver Step by Step
- Coefficient a
- 2
- You entered
- Constant b
- 3
- You entered
- Constant c
- 11
- You entered
This calculator solves a linear equation of the form ax + b = c for the unknown variable x. You enter the values of a, b, and c, and you get the exact value of x, along with the intermediate steps shown clearly. The result is given as a simplified fraction and a decimal approximation.
Formula
The solution to the linear equation ax + b = c is found by isolating x:
x = (c − b) / a
- a – coefficient of x (must not be zero)
- b – constant term added to ax
- c – the value on the right side of the equation
All values are real numbers. The result is undefined if a = 0 because the equation becomes b = c, which either has infinitely many solutions (if b = c) or no solution (if b ≠ c).
Worked Example
Using the default values: a = 2, b = 3, c = 11.
- Start with the equation: 2x + 3 = 11
- Subtract b from both sides: 2x = 11 − 3 = 8
- Divide by a: x = 8 / 2 = 4
The calculator gives x = 4.0000, which matches.
How to Use the Calculator
Enter the three numbers that define your linear equation. The first field is the coefficient of x (a), the second is the constant added to the x-term (b), and the third is the number on the other side of the equals sign (c). After you enter the values, the calculator immediately shows the value of x. The output is displayed as a decimal with four decimal places. If you want a fraction, you can compute it manually using the same formula.
When to Use This Formula
Linear equations appear in many real situations: calculating a tip, converting temperatures, figuring out a monthly payment, or solving for an unknown quantity in a word problem. For example, if you know that 3 times a number plus 5 equals 20, you can set up 3x + 5 = 20 and solve for x. This calculator works for any equation that can be rearranged into the form ax + b = c.
Common Mistakes and How to Avoid Them
- Dividing by zero: If a = 0, the equation is not linear and the formula fails. Check that a is not zero before using the result.
- Sign errors: When moving terms across the equals sign, remember to change the sign. For example, in 2x − 5 = 9, you must add 5 to both sides, not subtract.
- Order of operations: Always subtract b from c before dividing by a. Doing the division first gives a wrong answer.
- Rounding too early: If you round intermediate values, your final answer may be off. Keep full precision until the last step.
Limitations of the Formula
This formula only works for linear equations in one variable. It cannot solve quadratic equations (x²), systems of equations, or equations with variables on both sides that require simplification. For those, you need different methods. Also, if a = 0, the equation is degenerate: it either has no solution or infinitely many, depending on whether b equals c. The calculator flags this by showing an error or an undefined result.
Frequently Asked Questions
What if my equation has x on both sides?
First, move all x terms to one side and all constants to the other. For example, 2x + 3 = 5x − 1 becomes 3 + 1 = 5x − 2x, which simplifies to 4 = 3x, so x = 4/3. You can use this calculator after simplifying to the ax + b = c form.
How do I get a fraction answer instead of a decimal?
Compute (c − b) / a manually and simplify the fraction. For instance, if a = 4, b = 2, c = 7, then x = (7 − 2) / 4 = 5/4. The decimal is 1.25, but the exact fraction is 5/4.
What does it mean if the calculator shows “undefined”?
This happens when a = 0. The equation becomes b = c. If b = c, then any x works (infinitely many solutions). If b ≠ c, there is no solution. The calculator cannot give a single number because the equation is not linear.
Can I solve equations with fractions or decimals?
Yes. The formula works with any real numbers. For example, 0.5x + 1 = 2 gives x = (2 − 1) / 0.5 = 2. Fractions work the same way: (1/2)x + 1 = 2 gives x = 2.
What if the coefficient a is negative?
That is fine. For instance, −3x + 4 = 10 gives x = (10 − 4) / (−3) = 6 / (−3) = −2. The calculator handles negative coefficients normally.
How do I check my answer?
Plug the value of x back into the original equation. For example, if x = 4 in 2x + 3 = 11, then 2(4) + 3 = 8 + 3 = 11, which matches. If it does not match, recheck your arithmetic.
Related
Formula used
in a | Coefficient a | - | 2 | 0 in b | Constant b | - | 3 | 0 in c | Constant c | - | 11 | 0 out x | x = (c - b) / a | - | (c - b) / a | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.