CalculatorSwitch
Calculator Switch
Math

Quadratic Formula Calculator

Last updated:

How to Use This Calculator

Step 1: Identify a, b, c from ax² + bx + c = 0.

Step 2: Enter a (cannot be zero), b, and c.

Step 3: Click Calculate for roots, discriminant, vertex, and step-by-step solution.

What Is a Quadratic Equation?

A quadratic equation has the form ax² + bx + c = 0 where a is not zero. Every quadratic has exactly two roots: two real, one repeated, or two complex.

The discriminant (b²-4ac) determines root type: positive = two real, zero = one repeated, negative = complex.

The graph is a parabola. Opens up if a>0, down if a<0. Vertex at x = -b/(2a).

The Quadratic Formula

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

Discriminant:
- Positive: Two real roots
- Zero: One repeated root
- Negative: Two complex roots

Example: x²-5x+6=0 (a=1,b=-5,c=6)
D = 25-24 = 1
x = (5±1)/2, x1=3, x2=2

Discriminant Reference

DiscriminantRoot TypeGraph
Positive (>0)Two real rootsCrosses x-axis twice
Zero (=0)One repeated rootTouches x-axis once
Negative (<0)Two complex rootsDoes not cross x-axis

Examples

Example 1: x²-5x+6=0: D=1, x=3 and x=2

Example 2: x²-6x+9=0: D=0, x=3 (double root)

Example 3: x²+2x+5=0: D=-16, x=-1±2i (complex)

Tips

Try factoring first. x²-5x+6 = (x-2)(x-3) is faster.

a cannot be zero. That makes it linear, not quadratic.

Negative discriminant = complex roots. Always in conjugate pairs.

Vertex for optimization. x=-b/(2a) gives max/min.

Frequently Asked Questions

Can the calculator handle complex and imaginary roots?
Yes. When the discriminant (b squared minus 4ac) is negative, the equation has no real solutions — instead, it has two complex conjugate roots. The calculator displays these in the standard form a plus or minus bi, where i represents the imaginary unit (the square root of negative 1). For example, the equation x squared plus 1 equals 0 gives roots of positive i and negative i.
What happens if the coefficient a is zero?
If a equals zero, the equation becomes bx + c = 0, which is a linear equation, not a quadratic. The quadratic formula requires division by 2a, and dividing by zero is undefined. The calculator will show an error message. To solve a linear equation, simply isolate x: x = negative c divided by b. For example, 3x + 6 = 0 gives x = -2.
What is the vertex of a parabola and why is it shown?
The vertex is the highest or lowest point on the parabola — the U-shaped curve that a quadratic equation produces when graphed. Its x-coordinate is negative b divided by 2a, and the y-coordinate is found by plugging that x value back into the equation. If a is positive, the vertex is a minimum (the parabola opens upward). If a is negative, the vertex is a maximum. The vertex is essential for optimization problems in physics and economics.
How can I verify that the calculator gave the correct roots?
Substitute each root back into the original equation ax squared plus bx plus c. If the result equals zero (or very close to zero due to rounding), the root is correct. You can also verify by factoring: if the roots are x1 and x2, then a times (x minus x1) times (x minus x2) should expand back to your original equation. For example, roots 2 and 3 give (x-2)(x-3) = x squared minus 5x plus 6.
What is the difference between roots, zeros, and solutions?
In the context of quadratic equations, these three terms all mean the same thing — the x-values that make the equation equal to zero. 'Roots' comes from algebra, 'zeros' comes from function theory (values where f(x) = 0), and 'solutions' is the general mathematical term. You may also hear 'x-intercepts' in graphing contexts, which refers to the points where the parabola crosses the x-axis — same values, different perspective.
Can I use this calculator for cubic or higher-degree equations?
No. The quadratic formula only works for second-degree polynomials (ax squared plus bx plus c = 0). Cubic equations (degree 3) and quartic equations (degree 4) have their own formulas, though they are much more complex. A mathematician named Galois proved that there is no general algebraic formula for polynomial equations of degree 5 or higher — those must be solved using numerical approximation methods.

Related Calculators

Was this useful?