Equation Solver (Linear & Quadratic)

Solve linear and quadratic equations with full steps and the discriminant explained.

x + =
—Solution

Step-by-step solution

This tool runs entirely in your browser — no data is uploaded to our servers.

Was this tool helpful?

Solve equations step by step

The tool solves the two kinds of equations students meet most in middle and high school, and shows the full method — not just the answer.

Linear equation: ax + b = c

Move b across to get ax = c − b, then divide by a: x = (c − b) / a. Example: 2x + 3 = 11 → 2x = 8 → x = 4. If a = 0 there is either no solution or infinitely many.

Quadratic equation: ax² + bx + c = 0

Compute the discriminant Δ = b² − 4ac:

  • Δ > 0: two roots x₁ = (−b − √Δ) / 2a and x₂ = (−b + √Δ) / 2a.
  • Δ = 0: one repeated root x = −b / 2a.
  • Δ < 0: no real roots; the tool shows the two complex roots.

Example: x² − 5x + 6 = 0 → Δ = 1 → x₁ = 2, x₂ = 3.

How to use it

  1. Choose the equation type.
  2. Enter a, b and c (negative or decimal values are fine).
  3. Read the solution and steps, and copy them if you like.

Tip: check your answer by substituting x back into the original equation.

Frequently asked questions

What is the discriminant?

Δ = b² − 4ac. Its sign tells how many real roots a quadratic has: positive two, zero one, negative none.

What if a is zero?

The equation becomes linear; the tool solves it that way and tells you.

Can I use decimals and negatives?

Yes. Results are rounded to 4 decimal places.

Does it show complex roots?

Yes, when Δ is negative it shows both roots in the form a ± bi.

Request a new tool

Need a tool we do not have yet? Describe it briefly. We read every request and build the most wanted ones.