Quadratic Formula Calculator

Solve quadratic equations of the form ax2 + bx + c = 0. Get real/complex roots, discriminant, and graph.

Equation
Discriminant (Δ)0
Root 1 (x1)-
Root 2 (x2)-
Nature of Roots-
Sum of Roots-
Product of Roots-

About Quadratic Formula Calculator

This Quadratic Formula Calculator solves equations of the form ax² + bx + c = 0, providing both real and complex roots, the discriminant, the nature of the roots, and the sum and product of the roots. It also plots the parabola on an interactive chart so you can visualize the function and its x-intercepts. The discriminant (Δ = b² − 4ac) tells you everything about the roots: positive means two distinct real roots, zero means one repeated real root, and negative means two complex conjugate roots. Quadratic equations appear throughout algebra, physics, engineering, and economics — from calculating projectile trajectories to optimizing profit functions. The sum and product of roots relationships (given by −b/a and c/a) provide a quick sanity check. The chart uses Chart.js to render the curve, showing the vertex and the roots as x-intercepts when they are real. This calculator is perfect for high school and college students checking their work, for teachers preparing examples, and for professionals who occasionally need to solve quadratic models quickly.

How to Use This Calculator

Let's solve the equation x² - 5x + 6 = 0. Enter a = 1, b = -5, and c = 6, then click Calculate. The discriminant is 1 (positive), so there are two distinct real roots. The calculator shows x₁ = 3 and x₂ = 2. The sum of roots is 5 (which equals -b/a = 5) and the product is 6 (which equals c/a = 6). The chart plots the parabola crossing the x-axis at x = 2 and x = 3. Now try a case with complex roots: x² + 2x + 5 = 0 (a = 1, b = 2, c = 5). The discriminant is -16, so the roots are x = -1 ± 2i — shown as complex numbers in the result. The chart shows the parabola hovering above the x-axis with no intercepts.

How to Interpret Your Results

The discriminant is your first clue. If Δ > 0, like when a = 1, b = -7, c = 10 yields Δ = 9, the parabola crosses the x-axis at two points (x = 2 and x = 5). If Δ = 0, the parabola just touches the x-axis at one point — the vertex sits right on the axis. For example, x² - 6x + 9 = 0 has Δ = 0 and the only root is x = 3. If Δ < 0, like x² + 4x + 7 = 0 with Δ = -12, the parabola never touches the x-axis, and the roots are complex. The sum and product also tell you something: they equal -b/a and c/a respectively, which is useful for quickly checking if you factored correctly.

Frequently Asked Questions

What does the discriminant tell me about my equation?

The discriminant (Δ = b² - 4ac) tells you how many real roots exist. If Δ is positive, like Δ = 25 for x² - 7x + 6 = 0, you get two real roots (x = 1 and x = 6). If Δ = 0, there's exactly one real root. If Δ is negative, both roots are complex numbers and the graph never touches the x-axis.

How do I find the vertex of a parabola?

The vertex of a parabola f(x) = ax² + bx + c is at x = -b/(2a). Plug this x-value back into the function to find the y-coordinate. For example, f(x) = x² - 4x + 3 has vertex at x = 4/(2) = 2, and f(2) = 4 - 8 + 3 = -1, so vertex = (2, -1).

What does the discriminant tell me?

The discriminant Δ = b² - 4ac reveals the nature of roots: Δ > 0 means two distinct real roots, Δ = 0 means one repeated real root (double root), and Δ < 0 means two complex conjugate roots. It also tells you about the graph — positive Δ means the parabola crosses the x-axis twice, zero means it touches once, negative means no x-intercepts.

How many roots can a quadratic equation have?

A quadratic equation always has exactly two roots (counting multiplicity). They can be two distinct real roots (Δ > 0), one repeated real root (Δ = 0), or two complex conjugate roots (Δ < 0). The fundamental theorem of algebra guarantees exactly two roots for any quadratic equation.

What is the quadratic formula?

The quadratic formula is x = [-b ± √(b² - 4ac)] / (2a), where a, b, c are coefficients of ax² + bx + c = 0. The ± symbol means you get two solutions: one with +√ and one with -√. The expression under the square root (b² - 4ac) is the discriminant, which determines the nature of the roots.