Skip to content

The Quadratic Formula

One formula that solves every second-degree equation — and tells you how many roots it has before you solve it.

∑ Mathematics

Formula used

x=-b+-4⁢a⁢c+b22⁢a

The two roots of any quadratic come from minus the middle coefficient, plus or minus the square root of the discriminant, over twice the leading coefficient.

What is this formula?

A quadratic is any equation in which the variable appears squared and no higher, written in standard form as ax² + bx + c = 0.

The formula is not a recipe to memorise but the result of completing the square: rearrange the terms until one side is a perfect square, then take the square root of both sides. Doing that once on the general form yields the formula, so it need not be repeated per equation.

Its most important part is what sits under the root: b² − 4ac, called the discriminant because it discriminates between kinds of solution before you compute them. Positive gives two distinct real roots, zero gives one repeated root, and negative gives two complex roots.

This has a direct geometric meaning. The curve is a parabola, and the roots are where it crosses the x-axis. A positive discriminant means it cuts the axis twice, zero means it just touches at one point, and negative means it never reaches the axis at all.

The ± is not notational decoration: a positive number has two square roots, equal in size and opposite in sign, and that is precisely where the two solutions come from.

Variables

a Leading coefficient
The coefficient of x²; it cannot be zero or the equation is not quadratic (dimensionless)
b Middle coefficient
The coefficient of x; it sets the parabola's horizontal position (dimensionless)
c Constant term
The term with no variable — the value of the function at x = 0 (dimensionless)
x Root
The value that makes both sides equal (dimensionless)

Units

The coefficients are pure numbers in mathematics, but in physical applications they carry units that must be consistent for the addition inside the equation to mean anything.

Rearranged forms

x=-b--4⁢a⁢c+b22⁢a

The second root, taking the negative sign of the square root.

D=-4⁢a⁢c+b2

The discriminant alone — compute it first to learn how many roots exist, and of what kind.

Worked example

Solve x² − 5x + 6 = 0.

  1. D=-4⁢a⁢c+b2
  2. D=1
  3. x=3

The discriminant is 1 — positive — so there are two real roots, x = 3 and x = 2. Check by substitution, or note that 3 + 2 = 5 and 3 × 2 = 6.

Where it is used

  • Finding the flight time or range of a projectile.
  • Recovering the dimensions of a shape that achieves a given area.
  • Locating a break-even point when cost or revenue is quadratic.
  • Optimisation problems where a function reaches a maximum or minimum.

Assumptions

  • The coefficient a is not zero.
  • The roots are real only when the discriminant is zero or greater.

Related formulas