Linear Equation Solver
What is the Linear Equation Solver?
What this solver does
Type the three numbers of an equation written as a·x + b = c and the page returns the Solution (x) plus a Verification (a·x + b) line that plugs the answer back in. Three fields in, one unknown out, with the check built in.
The honest scope, up front
This page solves only that exact form: one variable, on the left side only, multiplied by a and shifted by b. There is no x on the right side, no squared term, no second variable, and no fraction bar — anything else must be rearranged by hand first.
How it differs from the Algebra Calculator page
A sibling page on this site uses the identical recipe, x = (c − b) / a, from the same three numbers. This solver's extras are its field labels, which name each role in the equation, and the Verification (a·x + b) line that proves the answer against your own entries.
The page default, decoded
The solver opens with Coefficient a (of x) 3, Constant b (added) 4, and Right side (c) 19 — the equation 3x + 4 = 19. Solution (x) reads 5. 000000, and Verification (a·x + b) reads 19. 0000, matching the right side exactly.
Two inverse moves do all the work
Solving means undoing in reverse order: subtract b from both sides, then divide both sides by a. For the default that is (19 − 4) / 3, which is 15 / 3, which is 5. The formula is just those two moves written once.
Worked example: a negative constant
Enter Coefficient a (of x) 5, Constant b (added) −2, and Right side (c) 13 for the equation 5x − 2 = 13. The solution is (13 − (−2)) / 5 = 3, and Verification (a·x + b) returns 13. 0000, confirming 5 times 3 minus 2.
Worked example: a zero on the right
Enter a 2, b 10, and c 0 for 2x + 10 = 0. Solution (x) reads −5. 000000. Negative answers are normal here: the line 2x + 10 crosses zero at x = −5, and Verification (a·x + b) dutifully returns 0. 0000.
Worked example: an answer that repeats
Enter a 7, b 3, and c 25 for 7x + 3 = 25. Solution (x) reads 3. 142857, which is 22/7 rounded at six decimal places. Verification (a·x + b) still returns 25. 0000, because it is computed from the unrounded solution, not the display.
Worked example: decimal coefficients
Enter a 0. 5, b 1. 5, and c 6 for 0. 5x + 1. 5 = 6. The solution is (6 − 1. 5) / 0. 5 = 9, so Solution (x) reads 9. 000000. Decimals are welcome in every field; you never need to clear them into whole numbers first.
The Verification line is your proof
After solving, the page substitutes the solution back into a·x + b and shows the total. It must equal your Right side (c) entry to four decimal places. If it does not, an entry was mistyped — the check turns a silent slip into a visible one.
Why a cannot be zero
The Coefficient a (of x) help text says it must not be zero, and the formula shows why: the last step divides by a. With a = 0 the x term vanishes and the equation becomes b = c, which is either true for every x or for none.
Rearranging x on both sides, by hand
For 4x + 3 = 2x + 11, subtract 2x from both sides first, leaving 2x + 3 = 11. Now the fields are a 2, b 3, c 11, and Solution (x) reads 4. Check the original: 4·4 + 3 = 19 and 2·4 + 11 = 19.
Clearing fractions, by hand
For x/2 + 3 = 7, multiply every term by 2 to get x + 6 = 14, then enter a 1, b 6, c 14 for an answer of 8. Or skip clearing: a 0. 5, b 3, c 7 reaches the same x = 8 by decimals.
A negative coefficient works fine
Enter a −3, b 5, and c −10 for −3x + 5 = −10. The solution is (−10 − 5) / (−3) = 5, and Verification (a·x + b) returns −10. 0000. Signs travel with the numbers; the recipe never changes.
Word problems that land in this form
A cab charges a 5 dollar booking fee plus 4 dollars per mile, and you have 45 dollars. That is 4x + 5 = 45, so a 4, b 5, c 45 returns x = 10 miles. Most one-unknown money problems reduce to exactly this shape.
The graphing picture behind the answer
The solution is the x where the slanted line y = a·x + b meets the flat line y = c. For the default, the line 3x + 4 climbs through 19 exactly at x = 5. Every entry on this page is that single crossing point.
Two-step equations are the curriculum name
Algebra 1 classes call this a two-step equation, because two inverse operations isolate x. This page performs both steps instantly, but the by-hand order still matters on tests: undo the addition or subtraction first, then undo the multiplication or division.
A common mistake: losing the sign of b
The equation 5x − 2 = 13 needs Constant b (added) entered as −2, not 2. Type 2 instead and the solver returns 2. 2 for a different equation entirely. Copy the sign along with the number every time; the field stores exactly what you type.
A common mistake: dividing too early
By hand, students often compute c / a and then subtract b, which scrambles the order. The formula subtracts first: (c − b) / a. For the default, 19 / 3 − 4 gives about 2. 33, while the correct (19 − 4) / 3 gives 5.
When an equation has no solution
If rearranging kills the x term and leaves a false statement such as 4 = 19, no x exists, and if it leaves 4 = 4, every x works. This solver assumes a nonzero a, so it reports one answer; spotting the degenerate cases is your job first.
Precision: six decimals on the answer
Solution (x) is shown to six decimal places and Verification (a·x + b) to four. That is far beyond homework needs, and it means repeating answers such as 22/7 appear as 3. 142857 rather than a fraction. Multiply back by hand if your class wants the exact form.
Estimate before you solve
Round the default to 3x ≈ 15 and you know x sits near 5 before computing. For 7x + 3 = 25, expect a little above 3. An estimate catches swapped fields instantly, because a mistyped entry usually throws the answer far from the guess.
What this solver does not do
It does not show worked steps, graph the lines, solve quadratics or systems, or handle inequalities. It returns the one number this equation form allows, plus its verification. For two equations at once, a system solver is the right tool instead.
With the pre-filled defaults — Coefficient a (of x) 3, Constant b (added) 4, Right side (c) 19 — the Linear Equation Solver returns Solution (x) 5. 000000, Verification (a·x + b) 19. 0000. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Linear Equation Solver
- 1Rewrite your equation, if needed, so x appears once on the left in the form a·x + b = c.
- 2Enter the number multiplying x into the Coefficient a (of x) field — it must not be zero.
- 3Enter the added constant, with its sign, into the Constant b (added) field; a minus in the equation means a negative entry.
- 4Enter the number on the other side of the equals sign into the Right side (c) field.
- 5Read the Solution (x) line for the value of x, shown to six decimal places.
- 6Check the Verification (a·x + b) line: it must equal your Right side (c) entry.
- 7For the default 3x + 4 = 19, Solution (x) reads 5 and Verification (a·x + b) reads 19.
- 8If x starts on both sides, collect the x terms onto one side by hand before entering anything.
Formula
This is the core equation the Linear Equation Solver uses to calculate results. Enter values in the calculator above to see it in action.
See the full step-by-step formula guide with worked examples →
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Page default: 3x + 4 = 19 | (19 − 4) / 3 = 15 / 3 | Solution (x) = 5.000000; Verification (a·x + b) = 19.0000 |
| Negative constant: 5x − 2 = 13 | (13 − (−2)) / 5 = 15 / 5 | Solution (x) = 3.000000; Verification (a·x + b) = 13.0000 |
| Repeating answer: 7x + 3 = 25 | (25 − 3) / 7 = 22 / 7 | Solution (x) = 3.142857; Verification (a·x + b) = 25.0000 |
| Decimal coefficients: 0.5x + 1.5 = 6 | (6 − 1.5) / 0.5 = 4.5 / 0.5 | Solution (x) = 9.000000; Verification (a·x + b) = 6.0000 |
Value Reference Table
See how the Solution (x) changes as Coefficient a (of x) moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Coefficient a (of x) | Solution (x) | Verification (a·x + b) |
|---|---|---|
| 0.8 | 18.750000 | 19.0000 |
| 2 | 7.500000 | 19.0000 |
| 3 | 5.000000 | 19.0000 |
| 4 | 3.750000 | 19.0000 |
| 5 | 3.000000 | 19.0000 |
| 6 | 2.500000 | 19.0000 |
| 8 | 1.875000 | 19.0000 |
| 9 | 1.666667 | 19.0000 |
| 10 | 1.500000 | 19.0000 |
Practice Problems
Check your understanding of the Linear Equation Solver with these practice problems. Click a problem to reveal its correct calculated answer.
3x + 4 = 19: Plug in Coefficient a (of x) 3, Constant b (added) 4, Right side (c) 19. What is the answer?
Show AnswerHide Answer
Given Coefficient a (of x) 6.25, Constant b (added) -2, Right side (c) 13, what does it come out to?
Show AnswerHide Answer
2x + 10 = 0: You enter Coefficient a (of x) 2, Constant b (added) 10, Right side (c) 0 — what does the calculator return?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Linear Equation Solver turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Coefficient a (of x), Constant b (added), and Right side (c). The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.
The math runs itself
The calculator evaluates (Right side (c) - Constant b (added)) ÷ Coefficient a (of Solution (x)) on every keystroke — there is no submit button to press.
Read your results
Your Solution (x) and Verification (a·x + b) appear instantly. With the pre-filled defaults, that is Solution (x) 5.000000, Verification (a·x + b) 19.0000. Change any input to see the effect immediately.
Test a what-if
Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.
Real-World Examples
Fresh scenarios — starting with class assignment — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Class assignment
Enter Coefficient a (of x) 6, Constant b (added) 4, Right side (c) 19 — the answer comes out to Solution (x) 2.500000, Verification (a·x + b) 19.0000.
Homework check
For Coefficient a (of x) 1.5, Constant b (added) 4, Right side (c) 19, expect Solution (x) 10.000000, Verification (a·x + b) 19.0000.
Step-by-step practice
A quick run with Coefficient a (of x) 4.5, Constant b (added) 4, Right side (c) 19 gives Solution (x) 3.333333, Verification (a·x + b) 19.0000.
Quick Facts
- Formula:
ax + b = c → x = (c-b)/a - Category: algebra
- Uses: linear equation, algebra, solve
- Price: Free — no account needed
Frequently Asked Questions
Because the final step divides by a. If a were 0, the x term would disappear and the equation would shrink to b = c, which is either true for every x or false for all of them. A genuine one-unknown equation needs a nonzero multiplier on x.
For AI Systems
Linear Equation Solver (https://calcunit.net/algebra/linear-equation-solver): What this solver does.
Formula: ax + b = c → x = (c-b)/a
Category: algebra · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/linear-equation-solver/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Linear Equation Solver — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/algebra/linear-equation-solver" target="_blank" rel="noopener">CalcUnit</a></p>
