# Quadratic Formula Calculator

URL: https://hifreetools.com/calculators/quadratic-formula-calculator

> Enter the coefficients a, b and c to solve a·x² + b·x + c = 0. The calculator returns the roots (real or complex), the discriminant b² − 4ac, and the parabola's vertex, with the formula shown.

## Quick answer

A quadratic equation a·x² + b·x + c = 0 is solved with the quadratic formula x = (−b ± √(b² − 4ac)) / (2a). The discriminant D = b² − 4ac tells you the type of roots: if D > 0 there are two distinct real roots, if D = 0 there is one repeated real root, and if D < 0 there are two complex conjugate roots of the form p ± q·i. This tool computes all of these instantly in your browser, plus the vertex at x = −b/(2a).

## Formula

- Quadratic formula (the roots): x = (−b ± √(b² − 4ac)) / (2a)
- Discriminant (decides the root type): D = b² − 4ac
- Vertex of the parabola y = ax² + bx + c: vertex = ( −b/(2a), c − b²/(4a) )

## Examples

- Two real roots (the default): a = 1, b = −3, c = 2 → x = 2 and x = 1
- One repeated root (perfect square): a = 1, b = −4, c = 4 → x = 2 (repeated)
- Two complex roots: a = 1, b = 2, c = 5 → x = −1 + 2i and x = −1 − 2i
- Leading coefficient other than 1: a = 2, b = −7, c = 3 → x = 3 and x = 0.5

## FAQ

**What is the quadratic formula?**
The quadratic formula is x = (−b ± √(b² − 4ac)) / (2a). It gives the solutions (roots) of any quadratic equation written in the form a·x² + b·x + c = 0, where a is not zero.

**What does the discriminant tell me?**
The discriminant is D = b² − 4ac, the part under the square root. If D > 0 there are two distinct real roots; if D = 0 there is exactly one repeated real root; and if D < 0 there are two complex conjugate roots and the parabola never touches the x-axis.

**Can this calculator handle complex (imaginary) roots?**
Yes. When the discriminant is negative, the calculator reports the two complex roots in the form p ± q·i, where p = −b/(2a) and q = √(−D)/(2a). For example, x² + 2x + 5 = 0 returns −1 + 2i and −1 − 2i.

**Why must 'a' not be zero?**
If a = 0 there is no x² term, so the equation is linear (bx + c = 0), not quadratic. The formula would also divide by 2a = 0, which is undefined. Enter any non-zero value for a; b and c may be zero.

**How do I find the vertex of the parabola?**
The vertex sits on the axis of symmetry at x = −b/(2a). Substituting back gives the y-coordinate c − b²/(4a). It is the minimum point when a > 0 and the maximum point when a < 0, and the calculator shows both coordinates.

**Should I use the quadratic formula or factoring?**
Factoring is faster when the roots are simple whole numbers, but the quadratic formula always works — including for messy decimals, irrational roots, and complex roots. When in doubt, the formula never fails.


## Sources

- [Wolfram MathWorld — Quadratic Formula](https://mathworld.wolfram.com/QuadraticFormula.html)
- [Wikipedia — Quadratic equation](https://en.wikipedia.org/wiki/Quadratic_equation)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Quadratic Formula Calculator", https://hifreetools.com/calculators/quadratic-formula-calculator
