Skip to content
Math

Equation Solver Guide: Solve Linear & Quadratic Equations Step by Step

Math Guide · Linear & quadratic equations, the quadratic formula, updated 2026

"Solve for x" problems show up everywhere — homework, standardized tests, budget break-even points, even plotting a rocket's trajectory. Yet the method behind every basic equation is one idea: keep both sides balanced until the variable stands alone. Our free equation solver handles linear and quadratic equations in one variable and shows the working, and this guide teaches you the same moves it makes — so you can follow the steps, check the answer, and eventually skip the tool.

What Does It Mean to Solve an Equation?

An equation is a statement that two expressions are equal, like 3x + 7 = 22. Solving it means finding every value of x that makes the statement true. Here, x = 5 works because 3 × 5 + 7 = 22; no other number does.

The golden rule: whatever you do to one side, do to the other. Subtract 7 from the left, subtract 7 from the right. Divide the left by 3, divide the right by 3. Each move keeps the scales balanced while peeling away everything around the x — that is the entire method.

Solving Linear Equations: ax + b = c

Linear equations have x to the first power only. Undo operations in reverse order — addition/subtraction first, then multiplication/division:

  1. Move constants across: 3x + 7 = 22 → subtract 7 from both sides → 3x = 15.
  2. Divide by the coefficient: 3x = 15 → divide both sides by 3 → x = 5.
  3. Check: 3 × 5 + 7 = 22 ✓

When variables appear on both sides, collect them first. For 5x − 4 = 2x + 11: subtract 2x from both sides to get 3x − 4 = 11, then add 4 to get 3x = 15, then divide by 3 to get x = 5. Same balance rule, one extra step.

Avoid the classic trap: don't cancel an x that could be zero. From x² = 3x, dividing both sides by x gives x = 3 — but x = 0 also works. Factor instead: x² − 3x = x(x − 3) = 0, so x = 0 or x = 3.

Solving Quadratic Equations: ax² + bx + c = 0

Quadratics have an x² term, which is why they can have two answers. You have three tools, in order of speed:

1. Factoring — fastest when it works. Split x² − 5x + 6 into two brackets whose numbers multiply to +6 and add to −5:

2. The quadratic formula — works on every quadratic, factoring or not:

For 2x² + 3x − 4 = 0 (a = 2, b = 3, c = −4), factoring is hopeless because the roots are irrational, but the formula is mechanical:

3. Completing the square — slower by hand but it is how the formula itself is derived, and it is the form you need when converting quadratics to vertex form for graphing.

What the Discriminant Tells You Before You Solve

The expression b² − 4ac under the square root is the discriminant. Compute it first and you know the shape of the answer before doing any real work:

This is also a fast sanity check: if your discriminant is negative and the question asks for real-world quantities (lengths, prices, time), the problem likely has no valid answer — or you copied a sign wrong somewhere.

Worked Examples

Example 1 — linear with fractions: (x/2) + 3 = 8. Subtract 3: x/2 = 5. Multiply both sides by 2: x = 10. Check: 10/2 + 3 = 8 ✓

Example 2 — quadratic that factors: x² − 5x + 6 = 0. Numbers multiplying to +6 and adding to −5 are −2 and −3, so (x − 2)(x − 3) = 0 and x = 2 or x = 3.

Example 3 — quadratic formula: 2x² + 3x − 4 = 0. Discriminant = 9 + 32 = 41, so x = (−3 ± √41)/4 ≈ 0.851 or −2.351.

Example 4 — no real solution: x² + x + 5 = 0. Discriminant = 1 − 20 = −19 < 0, so there is no real solution — a correct answer, not a mistake.

How to Use Our Equation Solver

The equation solver runs entirely in your browser — nothing is uploaded:

  1. Type the equation using x as the variable, e.g. 2x^2 + 3x - 4 = 0 or 3x + 7 = 22.
  2. Press Solve. The tool classifies the equation (linear or quadratic) and applies the matching method.
  3. Read the result: one root, both roots, a repeated root, or "no real solution" — with the intermediate steps shown so you can copy the working, not just the answer.

For practice, the tool page also lists examples you can click to load instantly.

When to Reach for the AI Math Solver Instead

A dedicated solver is fastest for one-variable linear and quadratic equations. When the problem outgrows that — systems of two or three equations, equations with logs or trig functions, inequalities, or a word problem where the hard part is setting up the equation at all — use CalcSolver Pro, our AI math solver. It handles multi-step problems across algebra, calculus, geometry, and statistics, writes every solution in LaTeX, and explains the reasoning line by line. A good workflow: try the dedicated solver first for speed, and switch to the AI solver when you need the "why", not just the "what".

Common Mistakes to Avoid

Frequently Asked Questions

What does it mean to solve an equation? It means finding every value of the variable that makes the equation true when substituted back in. For 3x + 7 = 22, the solution is x = 5. Equations can have one solution, two, none, or infinitely many.

How do I solve a linear equation step by step? Move constants to one side, then divide by the coefficient: 3x + 7 = 22 → 3x = 15 → x = 5. Do the same operation to both sides every time, and check by substituting back.

What is the quadratic formula and when should I use it? x = (−b ± √(b² − 4ac)) / 2a solves any quadratic in standard form. Use it when factoring isn't obvious, like 2x² + 3x − 4 = 0; factor when the brackets are clean.

What does the discriminant tell me? b² − 4ac predicts the root count before you solve: positive → two real roots, zero → one repeated root, negative → no real roots.

Can an equation have no solution or more than one? Yes — x² + x + 5 = 0 has no real solution, while x² − 5x + 6 = 0 has two. Identities like 2x + 3 = 2x + 3 are true for every x.

When should I use an AI math solver instead of an equation solver? For one-variable linear and quadratic equations the dedicated solver is instant and works offline. For systems, multi-variable, or word problems — and for narrated explanations — the AI solver is the right tool.

← Back to all articles

CalcSolver provides free online calculators for finance, health, math, and more. Visit CalcSolver for all 47+ tools — no signup required, 100% private.

Sponsored

Sponsored Content

The following content is provided by our advertising partner and does not affect the calculator experience.