Quadratic Equation

Use this calculator

A quadratic equation contains a squared variable and has the standard form ax² + bx + c = 0, with a ≠ 0. Its solutions, or roots, are the values of x that make the expression zero. A parabola is the graph of the related function y = ax² + bx + c.

The equation behind the roots

x_{1,2} = \frac{- b \pm \sqrt{b^{2} - 4ac}}{2a}
\Delta = b^{2} - 4ac

a is the coefficient of x²; b is the coefficient of x; c is the constant; Δ is the discriminant; x₁ and x₂ are roots. The ± symbol gives the two algebraic branches. The formula is educational: the app scales coefficients and uses a numerically stable root method for real solutions.

Enter the three coefficients

Enter the three coefficients exactly as they occur in ax² + bx + c = 0, including a zero for a missing b or c term. Use the ax² + bx + c = 0 mode and Calculate. For x² − 5x + 6 = 0, enter a = 1, b = −5, c = 6.

What the root report tells you

The result shows real roots or a complex-conjugate pair. It also displays a normalized discriminant and graph-related vertex/axis details; real-root results include numerical residual information. The app rejects a = 0 and solutions that cannot be checked reliably at the supplied scale.

Reading a discriminant

A positive discriminant gives two distinct real roots; zero gives a repeated real root; negative gives complex-conjugate roots. For the example, Δ = 25 − 24 = 1, so the roots are 2 and 3.

x-axis crossings at x = 2 and x = 3 for y = x² − 5x + 6

A positive discriminant gives two distinct real roots; zero gives a repeated real root; negative gives complex-conjugate roots. For the example, Δ = 25 − 24 = 1, so the roots are 2 and 3.

The vertex and symmetry

The axis x = −b/(2a) passes through the turning point of the parabola. The vertex location helps distinguish roots from a minimum or maximum of the corresponding function.

Δ > 0, Δ = 0 and Δ < 0 lead to different root types

The axis x = −b/(2a) passes through the turning point of the parabola. The vertex location helps distinguish roots from a minimum or maximum of the corresponding function.

Numerical accuracy

Small roots can be lost when nearly equal floating-point quantities are subtracted. The app uses coefficient normalization and a stable q-formula, then checks root residuals; very ill-conditioned input merits independent verification.

The exact entered coefficients determine Δ before the two roots

Small roots can be lost when nearly equal floating-point quantities are subtracted. The app uses coefficient normalization and a stable q-formula, then checks root residuals; very ill-conditioned input merits independent verification.

Quick answers

Why do I enter a zero coefficient?

It keeps the coefficient order aligned with ax² + bx + c = 0.

What does a negative discriminant mean?

The roots form a complex-conjugate pair.

Is the vertex one of the roots?

Only when the vertex lies on the x-axis.