b2KIT

Quadratic Equation Solver

Solve quadratic equations using the quadratic formula with step-by-step solutions, discriminant analysis, and graphing.

How to Use Quadratic Equation Solver

  1. 1

    Enter coefficients

    Type the values for a, b, and c in the equation.

  2. 2

    Solve the equation

    Click solve to find the roots of the quadratic equation.

  3. 3

    View the solution

    See both roots, discriminant value, and the solution steps.

Tested tool guide Tested browser tools Checked August 16, 2026

What Quadratic Equation Solver does, with a checked example

The roots of ax^2 + bx + c = 0 fall out of one formula: x = (-b +/- sqrt(b^2 - 4ac)) / (2a). Feed the tool the three coefficients and it works through that formula in public, showing the discriminant, each substitution, and the simplified roots, with the parabola drawn and its x-intercepts marked. The most common error is sign handling: when the equation already shows a minus, as in x^2 - 5x + 6 = 0, the middle coefficient is b = -5, not 5. The discriminant alone predicts the outcome: positive means two real roots, zero means one repeated root, negative means two complex roots.

Worked example

A concrete input and expected output from the current implementation.

Input

Equation: x^2 - 5x + 6 = 0  (a = 1, b = -5, c = 6)

Expected output

Discriminant: D = (-5)^2 - 4(1)(6) = 25 - 24 = 1. Since D > 0 there are two real roots. x = (5 +/- sqrt(1)) / 2, so x = (5 + 1) / 2 = 3 and x = (5 - 1) / 2 = 2. Roots: x = 2 and x = 3. The parabola crosses the x-axis at x = 2 and x = 3, with its vertex at x = 2.5.

D = 1 is a positive perfect square, so the roots are real, distinct, and rational, matching the factorization (x - 2)(x - 3). The vertex lies at x = 2.5, halfway between the roots, because a parabola is symmetric about its axis.

How the result is produced

1

The formula route

For ax^2 + bx + c = 0 the roots are x = (-b +/- sqrt(b^2 - 4ac)) / (2a). The tool evaluates the discriminant D = b^2 - 4ac first, because its sign fixes the case: D > 0 gives two distinct real roots, D = 0 gives one repeated root with the vertex sitting on the x-axis, and D < 0 gives two complex conjugate roots. It then substitutes and simplifies each branch of the +/- sign separately.

2

Steps and the graph

Each stage of the arithmetic appears as its own line: discriminant value, substitution into the formula, simplification. That layout exists so you can follow along or find the exact point where your own working diverged. The graph plots y = ax^2 + bx + c, marks the real roots as x-intercepts, and shows the vertex at x = -b/(2a); the parabola opens upward when a > 0 and downward when a < 0.

Good uses

  • Checking hand factoring: after rewriting x^2 - 5x + 6 as (x - 2)(x - 3), run the coefficients through the tool to confirm the roots really are 2 and 3 before trusting the factorization.
  • Physics problems: for projectile height h(t) = -16t^2 + v0*t + h0, solve for the time an object lands by setting h = 0; the positive root is the landing time and the negative root is a mathematical leftover.
  • Sketching parabolas: before drawing y = ax^2 + bx + c by hand, find the x-intercepts and vertex so the curve and its sign intervals (where the function is positive or negative) come out right.

Limits and checks

  • Standard form first. The equation must read ax^2 + bx + c = 0 with everything on one side: x^2 = 9 has to become x^2 - 9 = 0 first. Moving terms incompletely is the most common way to get roots for the wrong equation.
  • a = 0 is a different problem. The formula divides by 2a, so a = 0 means division by zero; that equation is linear and this tool will not solve it. Also re-check the sign you typed for b whenever the middle term visibly starts with a minus.
  • Rounding and complex results. Irrational roots come back as decimal approximations alongside the exact radical form, so quote the radical when precision matters. A negative discriminant yields a correct complex answer, not an error, but only if you truly expected no real solutions.

Common questions

Why does it report one repeated root when the graph touches the axis at a single point?

The +/- in the formula still produces two values, but when the discriminant is zero both branches give the same number, so the roots coincide. Geometrically the parabola just touches the x-axis at its vertex: one x-intercept, two algebraically equal roots. The two descriptions are the same case seen from different sides.

Do I type the equation itself, like 2x^2 - 8x + 6 = 0?

Move every term to one side first so the equation is in standard form, then enter the coefficients in order with their signs: for 2x^2 - 8x + 6 = 0 that is a = 2, b = -8, c = 6. The tool solves exactly what you give it, so getting the standard form right is the one part it cannot do for you.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools