Quadratic Formula Calculator

Type a, b and c — get the roots of ax² + bx + c = 0 with every step of the formula, the vertex and a graph.

100% private — runs entirely in your browser. Your data is processed on your device and never sent to the internet.

Everything is worked out in your browser and saved on this device for next time.

About the quadratic formula calculator

A quadratic equation has the form ax² + bx + c = 0, with a not zero. Its solutions (also called roots) come from the quadratic formula:

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

Type a, b and c. The calculator works through the formula step by step: the discriminant, the square root, then both roots. It writes the roots as exact fractions or roots when it can (x = 1 ± √2), finds complex roots when there are no real ones, and draws the parabola with its roots and vertex.

Features

  • Every step — the discriminant, the square root and both roots, with your numbers
  • Exact form — fractions (1/2), simplified roots (1 ± √2) and complex roots (−1 ± 2i)
  • Real or complex — the discriminant tells which, and the calculator says so
  • Factored form — like (2x − 1)(x + 3), when the roots are fractions
  • Vertex and vertex form — the turning point, the axis of symmetry and y = a(x − h)² + k
  • A graph — the parabola with its roots, vertex and axis of symmetry
  • Decimals and fractions welcome — type 0.5, 1/2 or −3
  • Saved on your device — your equation is still there next time

What the discriminant tells you

The discriminant is D = b² − 4ac, the part under the square root.

DRootsThe graph
D > 0two different real rootscrosses the x-axis twice
D = 0one double roottouches the x-axis once
D < 0no real roots, two complex rootsdoes not reach the x-axis

If D is a perfect square (0, 1, 4, 9, 16 …) and a, b, c are whole numbers, the roots are fractions and the equation can be factored.

Worked examples

Two real roots: 2x² + 5x − 3 = 0. a = 2, b = 5, c = −3.

D = 5² − 4 × 2 × (−3) = 25 + 24 = 49. √49 = 7.

x = (−5 ± 7) / 4, so x₁ = 2/4 = 1/2 and x₂ = −12/4 = −3. Factored: (2x − 1)(x + 3).

Roots with a square root: x² − 2x − 1 = 0.

D = 4 + 4 = 8, and √8 = 2√2. x = (2 ± 2√2) / 2 = 1 ± √2, so x₁ ≈ 2.4142 and x₂ ≈ −0.4142.

One double root: x² − 4x + 4 = 0.

D = 16 − 16 = 0, so x = 4 / 2 = 2. Factored: (x − 2)².

Complex roots: x² + 2x + 5 = 0.

D = 4 − 20 = −16, and √(−16) = 4i. x = (−2 ± 4i) / 2 = −1 ± 2i. The parabola stays above the x-axis; its vertex is (−1, 4).

The vertex

The vertex is the turning point of the parabola: h = −b / (2a) and k = c − b² / (4a). For 2x² + 5x − 3 the vertex is (−5/4, −49/8) = (−1.25, −6.125). The line x = h is the axis of symmetry: the two roots sit at the same distance on each side of it.

Frequently asked questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) / (2a). It solves every equation of the form ax² + bx + c = 0, as long as a is not 0.

What if a = 0?

Then it is not a quadratic. The equation is bx + c = 0, a straight line, and x = −c ÷ b. The calculator shows that answer and says so.

What are complex roots?

When the discriminant is negative, there is no real number whose square is negative, so the roots use i, where i² = −1. They always come in pairs like −1 + 2i and −1 − 2i.

Can I type fractions or decimals?

Yes. Type 1/2, 0.5 or −3. Decimals are turned into whole numbers inside (0.5x² − 1.5x + 1 becomes x² − 3x + 2), so the exact form still works.

Why is there no factored form?

The factored form with whole numbers only exists when the roots are fractions. x² − 2x − 1 has roots 1 ± √2, so it does not factor with whole numbers.

Related tools

How to use it

  • Type a, b and c — the equation appears above the boxes
  • Use a minus sign for negative numbers, and 0 for a missing term
  • Read the roots in the result box, with the exact form, the discriminant and the vertex
  • Follow the steps under the form and look at the graph
  • Or tap an example to see each kind of answer

We add new tools regularly — subscribe on YouTube to be notified when each one goes live.

More tools

View all

Recommended Apps

View all