Quadratic Equation Solver with Steps (Real and Complex Roots)

Solve ax² + bx + c = 0 with roots, factored form, discriminant, a graph and steps.

Loading tool…

How to use the Quadratic Equation Solver

  1. Enter a, b and c from your equation ax² + bx + c = 0. Decimals and fractions such as 1/2 are accepted.
  2. Read the type of roots and the values of x.
  3. Check the discriminant, vertex and axis of symmetry.
  4. Follow the numbered steps to see how the answer was reached.

About this tool

A quadratic equation has the form ax² + bx + c = 0 with a not equal to 0. The quadratic formula gives the solutions as x = (-b ± √(b² - 4ac)) / 2a. The expression under the root, D = b² - 4ac, is the discriminant and tells you what kind of roots to expect.

If D is positive there are two distinct real roots. If D is zero there is one repeated real root, and the parabola just touches the x-axis. If D is negative there are no real roots but two complex conjugate roots of the form p ± qi. The vertex of the parabola is at x = -b / 2a, and it is a minimum when a is positive and a maximum when a is negative.

If you enter a = 0 the equation is linear and the tool solves bx + c = 0 instead. Roots are computed in a numerically stable way to avoid precision loss when b is large compared with a and c.

When the roots are real, the factored form a(x - r1)(x - r2) is shown, and a small graph marks the roots (green) and the vertex (red).

Frequently asked questions

What does the discriminant tell me?

Its sign shows the nature of the roots: positive for two real roots, zero for one repeated root, negative for two complex roots.

What are complex roots?

Roots that involve i, the square root of -1. They always come as a conjugate pair, like 2 + 3i and 2 - 3i.

How do I find the vertex?

The x-coordinate is -b / 2a. Substitute it into the equation to get the y-coordinate.

What if a is zero?

Then it is not quadratic. The tool treats it as a linear equation and solves for x.

Need a custom tool or website?

IDM Valley builds web apps, calculators, AI chatbots and automation for businesses. Fixed prices, code in your name.

Get a free quote

Have a project in mind?

Tell us what you need: a website, landing page, AI chatbot or automation. You get a clear scope and a fixed price within one working day. Free, no obligation.


  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions
  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions