# Quadratic Formula Calculator

> Solve ax² + bx + c = 0 with the quadratic formula: real or complex roots, the discriminant and the vertex of the parabola.

- Live calculator: https://opuscalculator.com/calculators/quadratic-formula-calculator/
- Category: Math
- Last updated: 2026-11-22

## Inputs

| Input | Default | Allowed |
| --- | --- | --- |
| Coefficient a | 1 | -1000000000000 to 1000000000000 |
| Coefficient b | -5 | -1000000000000 to 1000000000000 |
| Coefficient c | 6 | -1000000000000 to 1000000000000 |

## Result with the default inputs

- Roots: x₁ = 3 and x₂ = 2
- Discriminant: 1
- Vertex: (2.5, -0.25)
- Type of roots: Two real roots

## How it is calculated

x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant is Δ = b² − 4ac. The vertex of the parabola is at x = −b ÷ 2a, with y = c − b² ÷ 4a.

Formula (LaTeX): `x = \dfrac{-b \pm \sqrt{b^{2} - 4ac}}{2a}`

## Worked example

x² − 5x + 6 = 0: Δ = 25 − 24 = 1, so x = (5 ± 1) ÷ 2 gives x₁ = 3 and x₂ = 2. The vertex is at (2.5, −0.25). For 2x² + 2x + 5 the discriminant is −36, so the roots are −0.5 ± 1.5i.

## Frequently asked questions

### What if a is zero?

Then the equation is linear, not quadratic, and has one solution x = −c ÷ b.

### What does a negative discriminant mean?

The parabola never crosses the x-axis, so there are no real roots; the two complex roots are conjugates of each other.

### Can I check the roots?

Their sum is −b ÷ a and their product is c ÷ a. Here 3 + 2 = 5 and 3 × 2 = 6.

## Sources

- [9.3 Solve Quadratic Equations Using the Quadratic Formula (Intermediate Algebra 2e)](https://openstax.org/books/intermediate-algebra-2e/pages/9-3-solve-quadratic-equations-using-the-quadratic-formula), OpenStax, Rice University, checked 2026-11-29. The quadratic formula for ax^2 + bx + c = 0 with a not equal to 0, and the discriminant b^2 - 4ac: positive gives 2 real solutions, zero gives 1 real solution, negative gives 2 complex solutions. The vertex output is not covered by this page.

## Cite this page

- APA: Opus Calculator. (2026, November 22). Quadratic Formula Calculator [Online calculator]. https://opuscalculator.com/calculators/quadratic-formula-calculator/
- Plain: Quadratic Formula Calculator, Opus Calculator, https://opuscalculator.com/calculators/quadratic-formula-calculator/

Numbers on this page come from the same code as the live calculator, using exact decimal arithmetic. Source: Opus Calculator, https://opuscalculator.com/calculators/quadratic-formula-calculator/
