A linear equation in one variable has exactly one solution — or none, or infinitely many. The algebra to find out which case you are in takes three steps, and the same three steps work for every equation of the form ax + b = c regardless of how messy the numbers are. This guide walks through the full method, every solution case, and real-world contexts where you will use it.
What is a linear equation?
A linear equation is any equation where the unknown variable appears to the first power only — no squares, no cube roots, no fractions with x in the denominator. The name comes from geometry: when you plot y = ax + b, you get a straight line. The word "linear" literally means "of or relating to a line." That geometric interpretation is what makes linear equations so fundamental — they model every relationship that changes at a constant rate.
Linear equations appear everywhere: converting Celsius to Fahrenheit, calculating delivery costs with a base fee plus per-kilometre rate, or finding when two plans cost the same amount. Once you recognise the ax + b = c structure, you can solve for x in a few seconds using the same procedure every time.
What counts as a linear equation
- ax + b = c — the canonical single-variable form: 3x + 5 = 14, solved by two arithmetic steps.
- Variables on both sides — for example, 5x − 2 = 2x + 7, which rearranges to 3x = 9 before solving.
- Brackets involved — for example, 2(x + 3) = 10, which expands to 2x + 6 = 10 before solving.
- Fractional coefficients — for example, (x/4) + 1 = 3, which multiplies to x/4 = 2, then x = 8.
Note
The standard form ax + b = c
Every single-variable linear equation can be written as ax + b = c, where a is the coefficient of x, b is the constant added to the x term, and c is the value on the right side. Getting familiar with this notation makes it easy to plug coefficients directly into any solver without manual rearranging — as long as you know which number maps to which letter.
In ax + b = c, the coefficient a scales x, b shifts it, and c sets the target. Solving for x means undoing both the shift and the scaling in reverse order.
Mapping real equations to the standard form
Consider the equation 4x − 9 = 15. Here a = 4, b = −9, and c = 15. The negative sign is part of b — it is not a separate operation. Another example: −2x + 7 = 1 gives a = −2, b = 7, c = 1. A negative coefficient for a simply means x is scaled by a negative number, which flips the direction of the solution but does not change the algebraic procedure.
When x appears on both sides — like 6x + 3 = 2x + 11 — gather the x terms first. Subtract 2x from both sides to get 4x + 3 = 11. Now a = 4, b = 3, c = 11. The Linear Equation Solver on Quasar Tools accepts a, b, and c directly, so this one-step rearrangement is all you need before entering the values.
| Original equation | Standard form | a | b | c |
|---|---|---|---|---|
| 3x + 5 = 14 | 3x + 5 = 14 | 3 | 5 | 14 |
| 4x − 9 = 15 | 4x − 9 = 15 | 4 | −9 | 15 |
| −2x + 7 = 1 | −2x + 7 = 1 | −2 | 7 | 1 |
| 6x + 3 = 2x + 11 | 4x + 3 = 11 | 4 | 3 | 11 |
| x/2 − 1 = 4 | 0.5x − 1 = 4 | 0.5 | −1 | 4 |
| 2(x + 3) = 10 | 2x + 6 = 10 | 2 | 6 | 10 |
Tip
How to solve linear equations step by step
Solving ax + b = c takes three moves: isolate the x term, divide by the coefficient, and verify. The Linear Equation Solver on Quasar Tools performs all three automatically and labels each step, making it easy to check hand calculations or learn the sequence the first time through.
Write the equation in standard form
Rearrange your equation into ax + b = c. If x appears on both sides, subtract the smaller x term from both sides. If there are brackets, expand them first. For example, 3(2x − 1) = 15 expands to 6x − 3 = 15, giving a = 6, b = −3, c = 15. Combining like terms before proceeding avoids arithmetic errors later in the solution.
Isolate the x term
Subtract b from both sides of the equation. This removes the constant from the left side, leaving only ax. For the example 6x − 3 = 15, add 3 to both sides: 6x − 3 + 3 = 15 + 3, which gives 6x = 18. If b is negative, "subtracting b" means adding the positive value — the net effect is that the constant disappears from the left side.
Divide both sides by the coefficient a
Divide both sides by a to produce x = (c − b) / a. For 6x = 18, divide both sides by 6 to get x = 3. When a is a fraction, dividing by it is equivalent to multiplying by its reciprocal — for example, if a = 1/2, divide both sides by 1/2, which gives x = (c − b) × 2. This is the step where special cases arise: if a = 0, division is undefined and the solution type changes.
Verify by substitution
Substitute your answer back into the original equation. Replace x with 3 in 3(2x − 1) = 15: 3(2 × 3 − 1) = 3(5) = 15. ✓ Verification catches arithmetic errors before they cause problems downstream. The Linear Equation Solver shows this verification step automatically — it substitutes the result back into ax + b and confirms both sides equal c.
Use the Linear Equation Solver to check your work
Open the Linear Equation Solver, enter a, b, and c, and click Solve. The tool identifies the solution case, shows every algebraic step, and displays the result in both decimal and exact fraction form. For equations with fractional or irrational results like x = 7/3 or x = −5/6, the fraction form is exact — no rounding error from converting to a decimal first.
Linear Equation Solver
Solve ax + b = c for x with full step-by-step working, fraction form, and automatic handling of all three solution cases — free, instant, no signup.
Three solution cases explained
Every linear equation in one variable falls into exactly one of three categories: a unique solution, no solution, or infinitely many solutions. The case is determined entirely by the value of a — the coefficient of x. Understanding which case you are in before solving saves time and avoids interpreting a valid "no solution" result as a calculation mistake.
Case 1: Unique solution (a ≠ 0)
When a is any non-zero value, the equation has exactly one solution: x = (c − b) / a. This is the standard case that covers the vast majority of equations you will encounter. For example, 5x + 2 = 17 has a = 5, so x = (17 − 2) / 5 = 3. Substitute back: 5(3) + 2 = 17. ✓ The solution is unique because dividing by a non-zero number always produces a single definite value.
Case 2: No solution — contradiction (a = 0, b ≠ c)
When a = 0, the x term vanishes and the equation becomes b = c. If b and c are different values — for example, 0x + 3 = 7, which simplifies to 3 = 7 — the equation is a contradiction. No value of x can make a false statement true. The Linear Equation Solver identifies this case explicitly and labels it "no solution" rather than returning an error.
Case 3: Infinitely many solutions — identity (a = 0, b = c)
When a = 0 and b equals c — for example, 0x + 5 = 5, which simplifies to 5 = 5 — the equation is an identity that is true for every real number. Any value you substitute for x satisfies the equation because x plays no role in it. This most commonly appears when two equations that look different are actually equivalent — they describe the same line, and their system of equations has infinitely many solutions.
| Case | Condition | Example | Result |
|---|---|---|---|
| Unique solution | a ≠ 0 | 3x + 5 = 14 | x = 3 |
| No solution | a = 0, b ≠ c | 0x + 3 = 7 | Contradiction: 3 = 7 |
| Infinitely many | a = 0, b = c | 0x + 5 = 5 | Identity: 5 = 5 |
Warning
Real-world applications of linear equations
Linear equations model any situation where a quantity changes at a constant rate or where you need to find an unknown given a known output. The ax + b = c structure appears in finance, physics, logistics, and everyday calculations — often without being labelled as "algebra."
Break-even analysis
A business with fixed costs of £500 per month and a profit of £12 per unit needs to sell enough units to cover its costs. The equation 12x − 500 = 0 asks: how many units x make profit zero? Solving: 12x = 500, x = 41.7 — so 42 units to break even. This is ax + b = c with a = 12, b = −500, c = 0. The same structure works for any fixed-cost plus variable-rate business model.
Unit conversion and formula rearrangement
Converting Celsius to Fahrenheit uses the formula F = 1.8C + 32. To find the Celsius temperature when F = 77: 77 = 1.8C + 32 rearranges to 1.8C = 45, so C = 25. This is a linear equation where a = 1.8, b = 32, c = 77. Physics formulas like v = u + at, rearranged to find u given v, a, and t, follow the same pattern. The Linear Equation Solver handles decimal coefficients like 1.8 exactly as it handles integers.
Rate and pricing problems
A taxi charges £2 base fee plus £0.80 per kilometre. The fare for a journey is £10.40. Find the distance: 0.8x + 2 = 10.4, so 0.8x = 8.4, x = 10.5 km. Or: two mobile plans cost £15 + £0.05/min and £25 + £0.02/min — at how many minutes do they cost the same? Set them equal: 15 + 0.05x = 25 + 0.02x, rearrange to 0.03x = 10, x = 333 minutes. Linear equations turn rate comparison into a single calculation.
Tip
Linear vs other equation types
Knowing whether your equation is linear determines which solver and method to use. Applying a linear method to a non-linear equation produces incorrect results, and applying a quadratic solver to a linear equation introduces unnecessary complexity. Here is how linear equations compare to the other common types you will encounter.
| Type | Standard form | Degree | Solutions | Solver |
|---|---|---|---|---|
| Linear | ax + b = c | 1 | At most 1 real | Linear Equation Solver |
| Quadratic | ax² + bx + c = 0 | 2 | Up to 2 real or complex | Quadratic Equation Solver |
| Cubic | ax³ + bx² + cx + d | 3 | Up to 3 real or complex | Cubic Equation Solver |
| System | 2+ equations, 2+ vars | 1 | Point, line, or none | Linear Equations Solver |
| Graphical | y = f(x) | Any | x-intercept(s) | Graphing Calculator |
When to use the Quadratic Equation Solver
If your equation has an x² term — such as x² − 5x + 6 = 0 — it is quadratic, not linear. The Quadratic Equation Solver applies the quadratic formula to find both roots, displays the discriminant, identifies the vertex of the associated parabola, and handles complex roots when the discriminant is negative. Do not try to solve a quadratic by the linear method — it will only work in the special case where one root is zero and the equation factors into a linear times x.
When to use the systems solver
If your problem involves two or more unknowns — like finding both x and y in 2x + 3y = 12 and x − y = 1 — you have a system of linear equations, not a single linear equation. The Linear Equations Solver (Systems) handles two, three, or more simultaneous equations using substitution or elimination and returns all variable values at once. For a visual approach to finding intersection points, the Graphing Calculator plots both equations and shows the crossing point directly.
Common mistakes and how to avoid them
Linear equations are conceptually simple, but arithmetic errors and sign mistakes are common — especially when coefficients are negative or fractional. These are the mistakes that appear most frequently and the specific check that catches each one.
Sign errors when moving terms
When moving a term across the equals sign, its sign flips. Moving +5 from the left to the right gives −5 on the right. This is the most common single source of errors in linear equation solving. Always rewrite the equation after each step and check that the sign of every moved term has flipped correctly before proceeding.
- Forgetting to flip signs — "3x + 5 = 14" moved incorrectly to "3x = 14 + 5 = 19" instead of "3x = 14 − 5 = 9".
- Dividing by the wrong coefficient — in 4x = 20, dividing both sides by 20 instead of 4 gives x = 1 instead of x = 5.
- Not expanding brackets first — trying to solve 2(x + 3) = 10 without expanding gives wrong a, b, c values.
- Skipping verification — a missing negative sign produces a result that looks plausible but fails substitution.
- Misreading the equation type — attempting linear methods on a quadratic (x² term present) produces nonsense.
The fastest check: always verify by substitution
After solving, substitute your answer back into the original equation before the expanded or rearranged form. A correct answer must satisfy the original equation — if you verify only against the rearranged form, an error introduced during rearrangement will be invisible. The Linear Equation Solver always performs this substitution check automatically and displays the verification step explicitly so you can confirm the logic matches your own working.
Warning
Quadratic Equation Solver
When your equation has an x² term, the Quadratic Equation Solver finds real and complex roots with discriminant, vertex, and full step-by-step working.
Key takeaways
- A linear equation in one variable has the form ax + b = c — x appears to the first power only, and every such equation is solvable by the same three-step process.
- Solve by subtracting b from both sides, then dividing both sides by a — the result is x = (c − b) / a when a ≠ 0.
- There are exactly three solution cases: unique solution (a ≠ 0), no solution / contradiction (a = 0 and b ≠ c), and infinitely many solutions / identity (a = 0 and b = c).
- Always verify by substituting your answer back into the original equation — not the rearranged form — to catch sign errors introduced during rearrangement.
- The Linear Equation Solver on Quasar Tools solves ax + b = c instantly with step-by-step working, exact fraction form, and automatic identification of all three solution cases.
- For degree-2 equations with an x² term, use the Quadratic Equation Solver; for systems of two or more equations, use the Linear Equations Solver (Systems).
- Real-world uses include break-even analysis, unit conversion, rate comparison, and any formula rearrangement where one variable is unknown and everything else is given.