Quadratic Formula Calculator (Find the Roots)

Solve any second-degree polynomial equation ax² + bx + c = 0 for real and complex roots instantly.

Reviewed for Mathematical Accuracy Last updated: 2026
x² + x + = 0
Root x₁
-
Root x₂
-

The Standard Quadratic Equation (ax² + bx + c = 0)

A quadratic equation is a second-order polynomial equation in a single variable x, written in standard algebraic form as:

ax² + bx + c = 0 (where a ≠ 0)

The universal quadratic formula provides the exact analytical solutions (the roots or zeros) for any values of real coefficients a, b, and c:

x = (-b ± √(b² - 4ac)) / (2a)

What is the Discriminant (b² - 4ac)?

The expression under the radical sign, Δ = b² - 4ac, is known as the discriminant. Its numerical sign determines the nature and quantity of the roots:

Discriminant Value Root Type & Quantity Cartesian Graphical Behavior
Δ > 0 (Positive) Two distinct real roots Parabola intersects the x-axis at two distinct coordinate points.
Δ = 0 (Zero) One repeated real root (double root) Parabola vertex sits tangentially on the x-axis, touching once.
Δ < 0 (Negative) Two complex conjugate roots (u ± vi) Parabola is located entirely above or below the x-axis without intersecting.

Derivation by Completing the Square

The quadratic formula is not an arbitrary rule. It is derived through the algebraic method of completing the square:

  1. Divide the entire equation ax² + bx + c = 0 by coefficient a: x² + (b/a)x + (c/a) = 0.
  2. Isolate constant terms on the right side: x² + (b/a)x = -(c/a).
  3. Add the square of half the middle coefficient, (b / 2a)², to both sides: x² + (b/a)x + (b² / 4a²) = (b² / 4a²) - (c/a).
  4. Factor the left side into a perfect binomial square: (x + b / 2a)² = (b² - 4ac) / 4a².
  5. Take the square root of both sides and isolate x: x + b / 2a = ±√(b² - 4ac) / 2a.
  6. Subtract b / 2a from both sides to arrive at the final formula: x = (-b ± √(b² - 4ac)) / 2a.

The Quadratic Formula Explained (Step-by-Step)

Example 1 (Two Real Roots): Solve x² - 5x + 6 = 0.
Here, a = 1, b = -5, c = 6.
Discriminant = (-5)² - 4(1)(6) = 25 - 24 = 1 (positive).
x = (5 ± √1) / 2 = (5 ± 1) / 2.
x₁ = (5 + 1) / 2 = 3, and x₂ = (5 - 1) / 2 = 2.

Example 2 (Complex Roots): Solve x² + 2x + 5 = 0.
Here, a = 1, b = 2, c = 5.
Discriminant = 2² - 4(1)(5) = 4 - 20 = -16 (negative).
Real part = -b / (2a) = -2 / 2 = -1.
Imaginary part = √16 / 2 = 4 / 2 = 2.
Roots: x₁ = -1 + 2i, and x₂ = -1 - 2i.

Real-World Scientific and Engineering Applications

Frequently Asked Questions

What happens if coefficient a equals 0?

If a = 0, the x² term vanishes, turning the equation into a first-degree linear equation (bx + c = 0) rather than a quadratic. By mathematical definition, coefficient a must be non-zero.

What do complex roots mean in practice?

Complex roots occur when the discriminant (b² - 4ac) is negative, requiring the square root of a negative number. Graphically, this indicates that the parabola never intersects the x-axis on a standard Cartesian plane. In physics and electrical engineering, complex roots represent oscillatory damping and AC circuit impedance.

Why is there a plus-or-minus symbol in the quadratic formula?

The ± symbol represents two distinct mathematical branches: one adding the square root of the discriminant and one subtracting it. Because a parabola is symmetric, it typically intersects the horizontal axis at two distinct points.

How is the quadratic formula derived?

The formula is algebraically derived by completing the square on the general equation ax² + bx + c = 0. Dividing across by a, moving the constant term to the right, and adding (b / 2a)² to both sides forms a perfect square binomial that solves for x.

What is a repeated double root?

When the discriminant equals exactly zero, the square root portion contributes zero. Both roots evaluate to the identical value -b / (2a). Geometrically, this means the vertex of the parabola touches the x-axis at exactly one tangential point.

How do I solve an equation that is not in standard form?

Rearrange all terms to one side of the equals sign using basic algebraic operations. For example, if given x² = 6x - 8, subtract 6x and add 8 to both sides to write x² - 6x + 8 = 0, yielding a = 1, b = -6, and c = 8.

What is the quadratic formula used for?

The quadratic formula is used in algebra to find the roots (or x-intercepts) of a quadratic equation in the form of ax² + bx + c = 0.

What does the discriminant tell you?

The discriminant (b² - 4ac) tells you the number of real roots. If it is positive, there are two real roots. If zero, there is one real root. If negative, there are two complex (imaginary) roots.