Skip to content

Quadratic Formula Calculator

Enter the coefficients of ax² + bx + c = 0. The calculator computes the discriminant, explains what it tells you about the roots, applies the quadratic formula exactly (simplifying square roots), and shows factoring or completing the square as an alternative method.

How to use the quadratic formula calculator

  1. Rewrite your equation in standard form ax² + bx + c = 0.
  2. Enter a, b and c (a cannot be zero).
  3. Read the discriminant, the exact roots and their decimal approximations.

Examples

x² − 3x − 10 = 0

Answer: x = −2, x = 5

2x² − 3x − 1 = 0

Answer: x = (3 ± √17)/4

x² + 2x + 5 = 0

Answer: x = −1 ± 2i

The quadratic formula

Every quadratic equation (with ) can be solved with

Enter the coefficients , and , or type the whole equation, and the calculator substitutes them, simplifies the square root exactly, and gives both roots as exact values and decimals.

The discriminant tells you what to expect

The expression under the root, , is called the discriminant:

Discriminant Roots Graph of
two different real roots crosses the x-axis twice
one repeated real root touches the x-axis at its vertex
two complex roots doesn't reach the x-axis

Worked example

Solve . Here , , .

  1. Discriminant: .
  2. Substitute: .
  3. Simplify the root: , so .
  4. Decimals: or .

Check: the roots add to and multiply to . Both are true.

Common mistakes

  • Sign of : if , then and (always positive).
  • Dividing only part of the top by . The whole numerator is divided by .
  • Not rearranging first. The equation must equal zero: rewrite as .

When to use something else

If the quadratic factors easily (like ), factoring is faster. Completing the square gives the vertex form. The formula always works, which is why it's the safe choice on a test.

Formulas

Practice problems

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

  1. 1.Solve .

    Show answer

    or . , so .

  2. 2.Solve .

    Show answer

    . and .

  3. 3.Solve .

    Show answer

    or . , so .

  4. 4.How many real roots does have?

    Show answer

    None. .

  5. 5.Solve .

    Show answer

    (a repeated root). .

Key terms

Quadratic equation
An equation of the form with .
Discriminant
The value , which tells you how many real roots there are.
Roots (zeros)
The solutions of the equation, where the graph crosses the x-axis.
Complex root
A root involving , which appears when the discriminant is negative.
Parabola
The U-shaped graph of a quadratic function.

Frequently asked questions

What does the discriminant tell me?

Δ = b² − 4ac. If Δ > 0 there are two real roots, if Δ = 0 one repeated root, and if Δ < 0 two complex conjugate roots.

When should I factor instead?

If Δ is a perfect square, the roots are rational and the quadratic factors nicely over the integers — factoring is usually faster.

Does it handle decimals?

Yes. Decimal coefficients are converted to exact fractions when possible.

Why is there a ± in the quadratic formula?

A square root has a positive and a negative value, and a parabola can cross the x-axis at two points. The + gives one root and the − gives the other.

What if $a = 0$?

Then the equation isn't quadratic: is linear and has one solution, . The formula would divide by zero.

Can I use the formula if the equation factors?

Yes, it always works and gives the same answer. Factoring is just faster when it's easy to see.

How do I get decimals from the exact answer?

The calculator shows both. For example is about and . Keep the exact form if your teacher asks for simplest radical form.