Quadratic Formula Calculator

Find the roots, discriminant and vertex, with steps.

ax² + bx + c = 0

Use 0 for a missing term. Decimals (0.5) and fractions (2/3) are fine.

Try an example

Roots

x = 1/2 or x = −5

2x² + 9x − 5 = 0 has two rational roots: 1/2 and −5.

Roots as decimals
0.5 and −5
Discriminant b² − 4ac
121
Factored form
(2x − 1)(x + 5) = 0
Vertex
(−9/4, −121/8) ≈ (−2.25, −15.125)
Axis of symmetry
x = −9/4 ≈ −2.25
Parabola opens
Up, so the vertex is the minimum
y-intercept
(0, −5)
Vertex form
y = 2(x + 9/4)² − 121/8
y = 2x² + 9x − 5. Vertex (−2.25, −15.13); crosses the x-axis at 0.5 and −5.0.5−5

The graph marks the vertex (ring) and any x-intercepts (dots). The rows above give the same points as text.

Fix the highlighted field to update the result.

Step by step

Solving with the quadratic formula
StepWorking
Standard form2x² + 9x − 5 = 0, so a = 2, b = 9, c = −5
DiscriminantD = b² − 4ac = 9² − 4 × 2 × (−5) = 81 + 40 = 121
What D tells youD > 0 and a perfect square (11²), so there are two rational roots.
Quadratic formulax = (−b ± √D) / 2a = (−9 ± √121) / 4
Simplify√121 = 11, so x = 2/4 = 1/2 or x = −20/4 = −5
CheckSum of roots = −b/a = −9/2; product = c/a = −5/2

How to use

  1. Write your equation as ax² + bx + c = 0.
  2. Enter a, b and c. Use 0 for a missing term. Decimals (0.5) and fractions (2/3) are fine.
  3. Read the roots, the discriminant, the vertex and the step-by-step working.

The quadratic formula

For ax² + bx + c = 0 with a ≠ 0:

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

The part under the root, D = b² − 4ac, is the discriminant. It tells you what kind of roots to expect before you finish.

Discriminant Roots Example
Positive perfect square Two rational roots 2x² + 9x − 5 = 0
Positive, not a perfect square Two irrational roots 2x² + 10x + 11 = 0
Zero One repeated root 4x² − 20x + 25 = 0
Negative Two complex roots x² + x + 2 = 0

The graph of y = ax² + bx + c is a parabola. Its vertex is at x = −b/2a, which is also the axis of symmetry.

Examples

  • 2x² + 9x − 5 = 0: D = 81 + 40 = 121 = 11², so x = (−9 ± 11)/4 = 1/2 or −5. Factored: (2x − 1)(x + 5) = 0.
  • 2x² + 10x + 11 = 0: D = 100 − 88 = 12 and √12 = 2√3, so x = (−5 ± √3)/2, about −1.633974596 and −3.366025404.
  • x² + x + 2 = 0: D = 1 − 8 = −7, so x = (−1 ± √7 i)/2, about −0.5 ± 1.322875656i.
  • Vertex of y = x² + 4x + 3: x = −4/2 = −2 and y = 4 − 8 + 3 = −1, so the vertex is (−2, −1).
Fractions, accuracy and checking your answer

When a, b or c are fractions, the calculator first multiplies every term by the lowest common denominator. For example, ½x² + ⅔x − ⅓ = 0 becomes 3x² + 4x − 2 = 0. Exact answers then stay exact.

Decimal roots use a rearranged form of the formula that avoids losing digits when b² is much larger than 4ac.

To check roots, their sum is −b/a and their product is c/a.

Need to simplify a root by hand? The square root calculator shows each step, for example √12 = 2√3.

Frequently asked questions

What is the quadratic formula?

For ax² + bx + c = 0 with a ≠ 0, x = (−b ± √(b² − 4ac)) / 2a. The plus sign gives one root and the minus sign gives the other.

What does the discriminant tell you?

It tells you the type of roots. Positive b² − 4ac means two real roots, zero means one repeated root, and negative means two complex roots.

What happens if a = 0?

Then it is a linear equation, not a quadratic. bx + c = 0 has the single solution x = −c/b, as long as b isn’t 0.

How do I find the vertex of a parabola?

The vertex is at x = −b/2a; put that x back into the equation to get y. For y = x² + 4x + 3, the vertex is (−2, −1).

Should I use the formula or factor?

Use the formula whenever the quadratic doesn’t factor quickly. It solves every quadratic, while factoring is only fast when the roots are whole numbers or simple fractions.

What are complex roots?

They are roots of the form p ± qi, where i is the square root of −1. They appear when the discriminant is negative and always come in a conjugate pair.

Embed this calculator

Add this calculator to your own website for free. Copy the code below and paste it into your page’s HTML. The attribution link is optional.