Quadratic Formula Calculator

Solve ax² + bx + c = 0 with the quadratic formula and get exact answers: whole numbers, fractions, simplified roots such as 1 ± √2, or complex roots such as −1 ± 2i, plus the vertex, the factored form and the graph.

Calculator Numbers & Math Updated Oct 3, 2026
How to Use
  1. Write the equation as ax² + bx + c = 0 and type a, b and c. Decimals and fractions such as 1/2 are fine.
  2. Read the roots in exact form, the discriminant, the vertex and the type of roots.
  3. Show Work follows the quadratic formula step by step, simplifying the square root.
  4. The table gives the vertex form, the factored form (when the roots are rational), and the sum and product of the roots.
  5. The graph shows the parabola crossing the x-axis at the roots, with its vertex and axis of symmetry.
ax² + bx + c = 0
x²
x
constant
Presets
Parabola
Roots
—
Discriminant
—
Vertex
—
Type
—

Worked Example

x² − 2x − 1 = 0. a = 1, b = −2, c = −1, so Δ = (−2)² − 4(1)(−1) = 4 + 4 = 8. Then x = (2 ± √8) ÷ 2. Since √8 = 2√2, x = (2 ± 2√2) ÷ 2 = 1 ± √2, about 2.414 and −0.414.

A thrown ball. Thrown upward at 20 m/s from 1.5 m, its height is h = −4.9t² + 20t + 1.5. It lands when h = 0: Δ = 400 + 29.4 = 429.4, √Δ = 20.722, so t = (−20 − 20.722) ÷ (−9.8) = 4.16 s (the other root, −0.07 s, is before it was thrown).

The common mistake: dropping the sign of b. In x² − 5x + 6, b is −5, so −b is +5: x = (5 ± 1) ÷ 2 = 3 and 2. Using −5 instead of +5 gives −2 and −3, the roots of x² + 5x + 6.

Show Work

Enter a, b and c to see the step-by-step working.

Formulas

Quadratic formula
x = (−b ± √(b² − 4ac)) ÷ 2a
Discriminant
Δ = b² − 4ac
Vertex
h = −b/2a, k = c − b²/4a
Vertex form
a(x − h)² + k
Vieta
x₁ + x₂ = −b/a, x₁x₂ = c/a

Four Thousand Years of Quadratics

Babylonian tablets from around 2000–1600 BC solve problems such as “a square and its side make 0;45” with a recipe that is the quadratic formula in words. Brahmagupta wrote a general rule in 628 AD, including negative numbers, and al-Khwarizmi’s algebra (around 820) solved quadratics by completing actual squares, drawn as geometry.

The formula as written today came with symbolic algebra in the 16th and 17th centuries; Descartes’ La Géométrie (1637) is close to the modern form. Complex roots were accepted much later, once Euler and Gauss gave i a firm footing in the 18th and early 19th centuries.

About This Calculator

This calculator solves quadratic equations with exact arithmetic, so coefficients like 0.1 or 1/3 give exact roots. It simplifies square roots and common factors, gives complex roots in a ± bi form, finds the vertex, the vertex form and, when the roots are rational, the factored form, and plots the parabola.

Everything runs in your browser; nothing is sent anywhere.

Related calculators: Symbolic Algebra Engine, Graphing Calculator, and Complex Numbers Calculator.

Frequently Asked Questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) ÷ 2a, the solution of ax² + bx + c = 0 for any a ≠ 0. For x² − 5x + 6 = 0: a = 1, b = −5, c = 6, so x = (5 ± √(25 − 24)) ÷ 2 = (5 ± 1) ÷ 2, giving 3 and 2. It comes from completing the square on the general equation.

What does the discriminant tell me?

Δ = b² − 4ac decides the kind of roots before you finish. Positive: two different real roots, which are rational if Δ is a perfect square. Zero: one repeated root, where the parabola just touches the x-axis. Negative: no real roots, but two complex roots that are conjugates, such as −1 + 2i and −1 − 2i.

How do I simplify the square root in the answer?

Take square factors out of the root and cancel common factors. For x² − 2x − 1 = 0, Δ = 8, so x = (2 ± √8) ÷ 2 = (2 ± 2√2) ÷ 2 = 1 ± √2. Exact answers like this are what tests usually ask for; the decimal values are 2.4142 and −0.4142.

When can I factor instead?

When the discriminant is a perfect square, the roots are rational and the quadratic factors over whole numbers. 2x² + 3x − 2 has Δ = 25, roots −2 and 1/2, so it factors as (x + 2)(2x − 1). If Δ isn’t a perfect square, no factoring with whole numbers exists and the formula is the way.

What do complex roots mean?

That the parabola never crosses the x-axis. x² + 2x + 5 = 0 has Δ = −16, so x = (−2 ± √−16) ÷ 2 = −1 ± 2i, where i = √−1. In physics and engineering the same complex roots describe oscillations that die away, such as a damped spring.

How do I use the Quadratic Formula Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Do I need to install or sign up for anything?

Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.

Is my information private?

Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.

Common Use Cases

Homework

x² − 2x − 1 = 0 gives 1 ± √2, simplified step by step.

Projectiles

A ball thrown up at 20 m/s from 1.5 m lands after t = 4.16 s: −4.9t² + 20t + 1.5 = 0.

Factoring check

2x² + 3x − 2 = (x + 2)(2x − 1).

Maximum profit

Profit −2q² + 40q − 50 peaks at the vertex, q = 10, where it is 150.

Damping

r² + 2r + 5 = 0 gives −1 ± 2i: an oscillation that decays.

Last updated: