Skip to content
Quasar Tools Logo

Linear Equation Solver Explained

How to solve linear equations in one variable: the ax + b = c form, step-by-step methods, no-solution and infinite-solution cases, and a free online solver.

DH
Tutorials & How-Tos11 min read2,500 words

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.

3Solution casesUnique, none, or infinite
3Steps to solveSubtract, divide, verify
< 1sSolver result timeWith full step-by-step

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

An equation is linear only when the variable appears to exactly the first power. If you see x², √x, or x in a denominator, the equation is non-linear and requires a different solver — for degree-2 equations, use the [Quadratic Equation Solver](/tools/math/calculators/quadratic-equation-solver) instead.

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.

Standard algebra convention

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 equationStandard formabc
3x + 5 = 143x + 5 = 143514
4x − 9 = 154x − 9 = 154−915
−2x + 7 = 1−2x + 7 = 1−271
6x + 3 = 2x + 114x + 3 = 114311
x/2 − 1 = 40.5x − 1 = 40.5−14
2(x + 3) = 102x + 6 = 102610

Tip

Always simplify the equation before identifying a, b, and c. Expand brackets and move x terms to one side before entering coefficients into any solver — the solver expects ax + b = c form, not an unsimplified expression.

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.

1

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.

2

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.

3

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.

4

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.

5

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.

Open tool

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.

CaseConditionExampleResult
Unique solutiona ≠ 03x + 5 = 14x = 3
No solutiona = 0, b ≠ c0x + 3 = 7Contradiction: 3 = 7
Infinitely manya = 0, b = c0x + 5 = 5Identity: 5 = 5

Warning

A "no solution" result is not a solver error — it is a mathematically valid outcome. If you expected a unique solution but the solver returns "no solution," double-check that you correctly rearranged the equation before entering coefficients. A sign error when moving terms can turn a unique solution into an apparent contradiction.

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

When a real-world problem gives you a formula with one unknown, write it in ax + b = c form, identify the three coefficients, and solve directly. The most common mistake is treating the original formula as the equation to solve, rather than rearranging it first to isolate the unknown on the left side.

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.


TypeStandard formDegreeSolutionsSolver
Linearax + b = c1At most 1 realLinear Equation Solver
Quadraticax² + bx + c = 02Up to 2 real or complexQuadratic Equation Solver
Cubicax³ + bx² + cx + d3Up to 3 real or complexCubic Equation Solver
System2+ equations, 2+ vars1Point, line, or noneLinear Equations Solver
Graphicaly = f(x)Anyx-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

If the [Linear Equation Solver](/tools/math/calculators/linear-equation-solver) returns "no solution" or "infinitely many solutions" but you expected a number, check whether you correctly combined x terms before entering a, b, c. A sign error when gathering x terms on one side can produce a = 0 artificially, triggering the wrong solution case.

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.

Open tool

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.

Frequently Asked Questions

A linear equation in one variable is an equation of the form ax + b = c, where x is the unknown, and a, b, and c are real number constants. The defining characteristic is that x appears to the first power only — no x², no √x, no 1/x. The word "linear" comes from the fact that plotting y = ax + b produces a straight line on a graph.

When a ≠ 0, there is always exactly one value of x that satisfies the equation. The Linear Equation Solver on Quasar Tools solves any ax + b = c equation and shows each algebraic step.

Start by simplifying both sides — expand brackets and combine like terms. Next, move all x terms to the left and all constants to the right using addition or subtraction. Then divide both sides by the coefficient of x. For example, 5x − 3 = 17: add 3 to both sides to get 5x = 20, then divide both sides by 5 to get x = 4. Verify: 5(4) − 3 = 17. ✓

The Linear Equation Solver performs each of these steps automatically and labels them so you can follow the algebra.

A linear equation has no solution when the variable cancels out and you are left with a false statement — for example, 3 = 7. This happens when a = 0 and b ≠ c in the standard form ax + b = c. No matter what value x takes, the equation can never be true. This is called a contradiction.

A common real-world example: if two lines have the same slope but different y-intercepts, they are parallel and never intersect — their system of equations has no solution.

A linear equation has infinitely many solutions when the variable cancels out and you are left with a true statement — for example, 5 = 5. This happens when a = 0 and b = c. Every real number satisfies the equation because both sides are always equal regardless of x. This is called an identity.

A real-world example: if two equations describe the same line, every point on that line satisfies both equations — there are infinitely many solutions.

Yes. Coefficients a, b, and c can be any real numbers — integers, decimals, fractions, or negative values. For example, 0.5x + 1.25 = 3.75 is solved the same way as an integer equation: subtract 1.25 from both sides to get 0.5x = 2.5, then divide by 0.5 to get x = 5.

The Linear Equation Solver on Quasar Tools accepts any real number for all three coefficients and returns the result in both decimal and exact fraction form, so fractional answers like x = 7/3 are displayed precisely rather than as a rounded decimal.

A linear equation (ax + b = c) has x to the power of 1 and produces at most one real solution. A quadratic equation (ax² + bx + c = 0) has x to the power of 2 and can produce two real solutions, one repeated solution, or two complex solutions depending on the discriminant.

Linear equations are solved by direct isolation — subtract the constant, divide by the coefficient. Quadratics require the quadratic formula, factoring, or completing the square. Use the Linear Equation Solver for degree-1 equations and the [Quadratic Equation Solver](/tools/math/calculators/quadratic-equation-solver) for degree-2 equations.

Move all variable terms to one side and all constants to the other. For example, 3x + 4 = x + 12: subtract x from both sides to get 2x + 4 = 12, then subtract 4 from both sides to get 2x = 8, then divide by 2 to get x = 4. Verify: 3(4) + 4 = 16 and 4 + 12 = 16. ✓

To use the Linear Equation Solver on Quasar Tools for this case, first rearrange into ax + b = c form — in this example, 2x + 4 = 12 — and enter a=2, b=4, c=12.

A linear expression is a polynomial of degree 1 with no equals sign — for example, 3x + 5. It represents a quantity that depends on x. A linear equation is a statement that two expressions are equal — for example, 3x + 5 = 11. Solving the equation means finding the value of x that makes the statement true.

Expressions are evaluated for a given x value; equations are solved to find the x value. You can simplify or factorise expressions, but you solve equations. The distinction matters when distinguishing between "evaluate 3x + 5 when x = 2" (expression) and "find x in 3x + 5 = 11" (equation).

ShareXLinkedIn

Related articles