Skip to main content

Quadratic Formula Calculator

The quadratic formula in action.

Interactive Tool
Live Calculation

Quadratic Formula Calculator

undefined

Evaluated Formula:undefined
Guidance:
The discriminant b^2 - 4ac tells you the nature of the roots.
If a = 0, the equation is linear, not quadratic.
Discriminant
1

Calculated instantly

Root 13
Root 22

Embed this calculator

Put this calculator on your own site with the snippet below. The frame contains the tool only, reports its own height, and carries a visible link back to the full page. Embedding is free; keep the attribution link as it is, and do not wrap the frame in a way that hides it.

Preparing the embed code for this page...

What This Calculator Does

The Quadratic Formula Calculator solves any second-degree equation of the form ax^2 + bx + c = 0. It handles real and complex roots and shows the discriminant.

How It Works

x = (-b +/- sqrt(b^2 - 4ac)) / 2a. If the discriminant is positive, there are two real roots. If zero, one repeated root. If negative, two complex roots.

Example

x^2 - 5x + 6 = 0: x = (5 +/- sqrt(25-24)) / 2 = (5 +/- 1) / 2 = 3 or 2.

Formula

Quadratic
x = (-b +/- sqrt(b^2 - 4ac)) / 2a

Reading the Results

Discriminant

Positive = 2 real roots. Zero = 1 repeated root. Negative = 2 complex roots.

Root 1

The first solution using the plus branch of the quadratic formula.

Root 2

The second solution using the minus branch of the quadratic formula.

Frequently Asked Questions

What if the discriminant is negative?

The equation has two complex roots involving the imaginary unit i. The calculator will show complex results.

Can a be zero?

No. If a = 0, the equation becomes linear (bx + c = 0) and has one solution at x = -c/b.

What is the vertex of a parabola?

The vertex is at x = -b/(2a). The calculator shows the roots; you can compute the vertex from the coefficients.