Last updated March 2026

Quadratic Formula Calculator

Solve any quadratic equation of the form ax² + bx + c = 0. Get the discriminant, roots, vertex, and axis of symmetry.

1x² + 0x + 0 = 0
Discriminant (b² – 4ac) --
Root Type --
x₁ --
x₂ --
Vertex (h, k) --
Axis of Symmetry --

What Is a Quadratic Equation?

A quadratic equation is a polynomial equation of the second degree, meaning the highest power of the variable is 2. The standard form of a quadratic equation is ax² + bx + c = 0, where a, b, and c are constants and a ≠ 0. If a were zero, the equation would reduce to a linear equation (bx + c = 0), which is a first-degree polynomial with at most one solution.

The name "quadratic" comes from the Latin word "quadratus," meaning square, because the equation involves a squared term. Quadratic equations appear throughout mathematics, science, engineering, economics, and everyday problem-solving. They describe the path of a thrown ball (projectile motion), the shape of satellite dishes and headlight reflectors (parabolas), the relationship between price and demand in economics, and the behavior of electrical circuits.

Every quadratic equation has exactly two solutions (roots), though these roots may be equal to each other (a repeated root), may be real numbers, or may be complex numbers involving the imaginary unit i. The nature of the roots is determined entirely by the discriminant, which is the expression b² – 4ac found under the square root in the quadratic formula.

The Quadratic Formula

The quadratic formula provides a direct method for finding the solutions of any quadratic equation. Given ax² + bx + c = 0 with a ≠ 0, the solutions are:

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

The ± symbol indicates that there are generally two solutions: one using addition and one using subtraction. The expression under the square root, b² – 4ac, is called the discriminant (often denoted by the Greek letter delta, Δ).

Example: Solve x² – 5x + 6 = 0. Here, a = 1, b = –5, c = 6. The discriminant is (–5)² – 4(1)(6) = 25 – 24 = 1. Since the discriminant is positive, there are two distinct real roots: x = (5 + 1) / 2 = 3 and x = (5 – 1) / 2 = 2. You can verify by factoring: x² – 5x + 6 = (x – 2)(x – 3) = 0.

Deriving the Quadratic Formula

The quadratic formula is derived from the standard form using a technique called completing the square. Understanding the derivation helps build mathematical intuition and shows that the formula is not arbitrary but follows logically from basic algebra.

Start with ax² + bx + c = 0. Divide both sides by a to get x² + (b/a)x + c/a = 0. Move the constant term: x² + (b/a)x = –c/a. To complete the square, add (b/(2a))² to both sides: x² + (b/a)x + (b/(2a))² = (b/(2a))² – c/a. The left side is now a perfect square: (x + b/(2a))² = (b² – 4ac) / (4a²). Take the square root of both sides: x + b/(2a) = ±√(b² – 4ac) / (2a). Solve for x: x = (–b ± √(b² – 4ac)) / (2a).

This derivation reveals why the formula works for all quadratic equations, regardless of whether the roots are real or complex. It also shows the fundamental role of the discriminant in determining the nature of the solutions.

Understanding the Discriminant

The discriminant, Δ = b² – 4ac, is the key to understanding the nature of a quadratic equation's solutions without actually solving the equation. It tells you three things about the roots:

The discriminant also has a geometric interpretation. Its sign tells you whether the parabola y = ax² + bx + c intersects, touches, or completely misses the x-axis. When Δ is a perfect square and the coefficients are rational, the roots are also rational, which means the quadratic can be factored over the rational numbers.

Vertex and Axis of Symmetry

Every parabola has a vertex, which is its highest or lowest point, and an axis of symmetry, which is the vertical line passing through the vertex that divides the parabola into two mirror-image halves.

Vertex: (h, k) where h = –b/(2a) and k = a·h² + b·h + c
Axis of Symmetry: x = –b/(2a)

If a > 0, the parabola opens upward and the vertex is the minimum point. If a < 0, the parabola opens downward and the vertex is the maximum point. The vertex form of a quadratic is y = a(x – h)² + k, which makes the vertex coordinates immediately visible.

Example: For y = 2x² – 8x + 3, the vertex x-coordinate is h = –(–8)/(2 × 2) = 8/4 = 2. The y-coordinate is k = 2(2)² – 8(2) + 3 = 8 – 16 + 3 = –5. So the vertex is at (2, –5) and the axis of symmetry is x = 2. Since a = 2 > 0, this is the minimum point of the parabola.

Methods for Solving Quadratic Equations

While the quadratic formula works for all quadratic equations, there are other methods that may be quicker in specific situations:

Factoring

If the quadratic can be factored into two binomials, you can find the roots by setting each factor equal to zero. For example, x² – 5x + 6 = (x – 2)(x – 3) = 0 gives x = 2 or x = 3. Factoring is fast when it works but is not always possible with integer or rational coefficients.

Completing the Square

This method transforms the equation into vertex form by adding and subtracting a constant. It is the method used to derive the quadratic formula itself and is useful when you want to rewrite the equation in vertex form for graphing purposes.

Graphing

Plot the function y = ax² + bx + c and identify where it crosses the x-axis. This method gives approximate solutions and is useful for visualization but is less precise than algebraic methods. Modern graphing calculators and software make this approach very accessible.

Square Root Method

If the equation is in the form ax² + c = 0 (no linear term), it can be solved directly: x² = –c/a, so x = ±√(–c/a). For example, 3x² – 27 = 0 gives x² = 9, so x = ±3.

Real-World Applications of Quadratic Equations

Quadratic equations model many natural and man-made phenomena. Here are some of the most common applications:

Complex Roots and the Imaginary Unit

When the discriminant is negative, the quadratic formula involves the square root of a negative number. In the real number system, this has no solution. However, mathematicians extended the number system by introducing the imaginary unit i, defined as i = √(–1). Using this definition, √(–9) = 3i, and complex numbers take the form a + bi where a is the real part and b is the imaginary part.

Complex roots of a quadratic equation always come in conjugate pairs. If one root is a + bi, the other is a – bi. This is because the coefficients a, b, and c are real numbers, and the ± in the quadratic formula produces the conjugate pair.

Example: Solve x² + 2x + 5 = 0. The discriminant is 4 – 20 = –16. The roots are x = (–2 ± √(–16)) / 2 = (–2 ± 4i) / 2 = –1 ± 2i. The two roots are –1 + 2i and –1 – 2i, which are complex conjugates.

Complex numbers are not merely abstract; they are essential in electrical engineering (AC circuit analysis), quantum mechanics, signal processing, and control theory. The use of complex numbers to describe oscillations and wave phenomena is one of the most powerful tools in physics and engineering.

Frequently Asked Questions

What is the quadratic formula?

The quadratic formula is x = (–b ± √(b² – 4ac)) / (2a). It solves any equation of the form ax² + bx + c = 0, where a is not zero. You substitute the values of a, b, and c from your equation into the formula to find the two roots. The ± symbol means you calculate two answers: one with addition and one with subtraction.

What is the discriminant and what does it tell you?

The discriminant is the expression b² – 4ac from under the square root in the quadratic formula. It determines the nature of the roots. If the discriminant is positive, the equation has two different real solutions. If the discriminant is zero, there is exactly one real solution (a repeated root). If the discriminant is negative, the two solutions are complex conjugate numbers involving the imaginary unit i.

What happens when a = 0 in ax² + bx + c = 0?

When a = 0, the equation is no longer quadratic but becomes a linear equation: bx + c = 0. If b is also zero and c is not zero, there is no solution. If both b and c are zero, the equation is satisfied by all values of x. Otherwise, the single solution is x = –c/b. The quadratic formula cannot be used when a = 0 because it would involve dividing by zero.

How do you find the vertex of a parabola?

The vertex of the parabola y = ax² + bx + c is at the point (h, k), where h = –b/(2a) and k is found by substituting h back into the equation: k = a(h)² + b(h) + c. The vertex represents the minimum point if a is positive (parabola opens upward) or the maximum point if a is negative (parabola opens downward). The vertical line x = h is the axis of symmetry.

Can the quadratic formula give complex or imaginary roots?

Yes. When the discriminant b² – 4ac is negative, the square root of a negative number is involved, which produces complex roots. These roots always come in conjugate pairs: if one root is p + qi, the other is p – qi. For example, x² + 4 = 0 has discriminant –16, giving roots x = ±2i. Complex roots mean the parabola does not cross the x-axis.

Related Calculators