Skip to content

Quadratic Formula

Solves any quadratic equation ax² + bx + c = 0.

Variables

a, b, c
Coefficients of ax² + bx + c = 0 (a ≠ 0)
x
The solutions (roots)

Explanation

The quadratic formula comes from completing the square on . The expression under the square root, , is the discriminant: positive gives two real roots, zero gives one repeated root, and negative gives two complex roots.

Example

Solve : . Then , so , giving or .

How to use it

  1. Rearrange the equation into the form .
  2. Read off , and , including their signs.
  3. Work out the discriminant first.
  4. Substitute into the formula and simplify the square root.

Another worked example

Solve . Here , , .

The discriminant is negative, so there are no real roots and the parabola never crosses the x-axis.

Where it comes from

Complete the square on : divide by , move across, add to both sides, then take the square root. The formula is that process done once, in general.

Common mistakes

  • Using instead of at the front.
  • Writing when is negative. .
  • Dividing only the square root by , instead of the whole numerator.

Quick checks

The two roots add up to and multiply to (Vieta's formulas).

Where it's used

  • Physics: the time a thrown ball takes to land comes from solving .
  • Business: break-even points of a profit model shaped like a parabola are its roots.
  • Engineering: designing arches, lenses and satellite dishes, whose cross-sections are parabolas.
  • Computer graphics: finding where a ray hits a sphere reduces to a quadratic in the ray's distance.

Key takeaways

  • Put the equation in the form before reading off , and .
  • Check the discriminant first to know what kind of answer to expect.
  • The formula always works, even when factoring doesn't.

Try it: Quadratic Formula Calculator

Solve ax² + bx + c = 0 with the quadratic formula. Shows the discriminant, exact roots, decimal values and factoring.

Open calculator

Practice problems

Try each one first, then open the answer to check your work.

  1. 1.Solve .

    Show answer

    or . The discriminant is .

  2. 2.Solve .

    Show answer

    or , from .

  3. 3.Solve .

    Show answer

    , about 3.73 and 0.27.

  4. 4.How many real roots does have?

    Show answer

    None. The discriminant is , which is negative.

  5. 5.Solve .

    Show answer

    .

Key terms

Quadratic equation
An equation of the form with .
Root
A solution of the equation, where the graph meets the x-axis.
Discriminant
, which decides the number and type of roots.
Complex root
A root involving , which appears when the discriminant is negative.
Coefficient
The number multiplying a variable term, such as in .

Frequently asked questions

Can the quadratic formula solve every quadratic?

Yes — every quadratic equation, including ones with complex roots.

What is the discriminant?

It's , the part under the square root. Its sign tells you how many real roots there are before you finish solving: positive means two, zero means one, negative means none (two complex roots).

Should I factor or use the formula?

Factor when the numbers are small and it's quick to see. The formula always works, so use it when factoring isn't obvious, the roots are irrational, or you just want a guaranteed method.

What if $b$ or $c$ is zero?

The formula still works, but it's quicker to solve directly. For , . For , factor out to get or .

Why must $a$ not be zero?

If the equation is linear, not quadratic, and the formula would divide by zero. Solve instead.

Can I use the formula on $3x^2 = 12x$?

Yes. Move everything to one side first: , so , , . You'll get and .

How do I simplify the square root in my answer?

Pull out square factors: . Then divide every term by the common factor if possible, so .

Related formulas

More algebra formulas