Quadratic Formula Calculator

Solve any quadratic equation ax² + bx + c = 0 — real or complex roots, discriminant and vertex.

Written by Ahmet Tur · Reviewed by Kübra Yıldız · Updated

Your result will appear here

Fill in the fields and press Calculate.

Enter the three coefficients of a quadratic equation and this calculator solves it with the quadratic formula, giving both roots — real or complex — along with the discriminant that tells you which kind to expect and the vertex of the parabola.

Quadratic Formula Calculator: step-by-step worked example

Solve 2x² − 4x − 6 = 0.

Example inputs
a (coefficient of x²)
2
b (coefficient of x)
-4
c (constant)
-6
  1. 1

    Discriminant

    Δ = b² − 4ac

    (-4)² − 4 × 2 × (-6) = 64

  2. 2

    Square root of the discriminant

    √Δ (complex roots if Δ < 0)

    √64 = 8

  3. 3

    First root

    x₁ = (−b + √Δ) ÷ 2a

    (4 + 8) ÷ 4 = 3

  4. 4

    Second root

    x₂ = (−b − √Δ) ÷ 2a

    (4 − 8) ÷ 4 = -1

  5. 5

    Vertex

    V(−b ÷ 2a, c − b² ÷ 4a)

    = (1, -8)

Result · x₁3
The parabola and its roots (where y = 0)
101-8
x -2: 10x -1.63: 5.7813x -1.25: 2.125x -0.88: -0.9688x -0.5: -3.5x -0.13: -5.4688x 0.25: -6.875x 0.63: -7.7188x 1: -8x 1.38: -7.7188x 1.75: -6.875x 2.13: -5.4688x 2.5: -3.5x 2.88: -0.9688x 3.25: 2.125x 3.63: 5.7813x 4: 10
-2x4
  • y = ax² + bx + c:10 → 10

Good to know: Δ > 0: two real roots; Δ = 0: one repeated root; Δ < 0: no real roots (complex pair). Quick check with Vieta: x₁ + x₂ = −b/a and x₁ × x₂ = c/a.

Quadratic Formula Calculator — how it works

The quadratic formula

For ax² + bx + c = 0 (with a ≠ 0), the roots are:

x = (−b ± √(b² − 4ac)) ÷ 2a

The discriminant decides the roots

The part under the root, b² − 4ac, is the discriminant, and its sign tells you what to expect:

DiscriminantRoots
PositiveTwo distinct real roots
ZeroOne repeated real root
NegativeTwo complex conjugate roots

The vertex

Every quadratic is a parabola with a turning point (vertex) at x = −b ÷ 2a, and the y-value there is the minimum (if a > 0) or maximum (if a < 0). The calculator returns both coordinates.

Worked example

Solve x² − 3x + 2 = 0. Here a = 1, b = −3, c = 2, so the discriminant is (−3)² − 4·1·2 = 9 − 8 = 1 — positive, so two real roots. Applying the formula: x = (3 ± √1) ÷ 2 = (3 ± 1) ÷ 2, giving x = 2 and x = 1. The vertex sits at x = 3 ÷ 2 = 1.5, y = −0.25.

Frequently asked questions

What is the quadratic formula?+

x = (−b ± √(b² − 4ac)) ÷ 2a. It solves any quadratic equation ax² + bx + c = 0 for its two roots. The ± gives the two solutions, and a must be non-zero for the equation to be quadratic.

What does the discriminant tell me?+

The discriminant, b² − 4ac, reveals the nature of the roots before you solve. Positive means two different real roots, zero means one repeated real root, and negative means two complex (conjugate) roots.

What are complex roots?+

When the discriminant is negative, the square root is of a negative number, so the roots involve the imaginary unit i (√−1). They come as a conjugate pair like −1 + 2i and −1 − 2i, and the parabola never crosses the x-axis.

What is the vertex of a parabola?+

The turning point, at x = −b ÷ 2a. It is the lowest point when a is positive (the parabola opens up) and the highest when a is negative. The tool gives both the x and y coordinates.

Why must a not equal zero?+

If a is 0 the x² term disappears and the equation becomes linear (bx + c = 0), not quadratic — the formula divides by 2a, which would be division by zero. The calculator requires a non-zero a.

About this page

Publisher:
Kalkoro — Teknolojig Bilişim Teknolojileri A.Ş., İstanbul
Written by:
Ahmet Tur — Editor (Math, date & time, unit conversion, physics & chemistry, everyday tools)
Reviewed by:
Kübra Yıldız — Editor

Parameters come from official sources; the last update date is shown at the bottom of the page.

Spotted a wrong result? Use the "Report a bug" button at the top of the page; every report is reviewed.

How we calculate and our accuracy policy →

Results are for information only. For official matters the relevant authority's calculation prevails.

Last updated: