Algebra

How to Solve Quadratic Equations: Formula, Discriminant, Examples

Updated 2026-07-04 4 min read vi

Quadratic equations are one of the most important topics in algebra and show up everywhere from homework to standardized tests. This guide walks through the complete method for solving them: the discriminant, the quadratic formula, a reduced formula for even coefficients, Vieta's formulas, and a couple of shortcuts for spotting roots instantly.

What is a quadratic equation?

A quadratic equation in one variable has the form:

where , , and are known numbers (the coefficients) and is the unknown. The condition is essential — if , the term disappears and the equation becomes linear.

For example, is a quadratic equation with , , and .

The quadratic formula

To solve a quadratic equation, first compute the discriminant (often written as delta):

The sign of tells you how many real solutions the equation has:

Discriminant Number of roots Root formula
Two distinct real roots
One repeated (double) root
No real roots (over )

When , the two roots come from the quadratic formula:

The reduced formula

When the coefficient is even, you can set and use the reduced discriminant:

The roots are then:

This keeps the numbers smaller, so the arithmetic is faster and less error-prone.

Worked examples

Example 1 — Δ > 0. Solve .

Here , , , so:

Since , the equation has two distinct roots:

Example 2 — using the reduced formula. Solve .

Here is even, so set . Then:

Example 3 — Δ < 0. Solve .

Since , the equation has no real solutions.

Vieta's formulas

If the equation has two roots and , then:

Vieta's formulas are incredibly useful because they give you the sum and product of the roots without solving the equation. They are commonly used to:

  • Guess the two roots quickly when they are nice whole numbers.
  • Check your answers after solving.
  • Analyze the signs of the roots (if the roots have opposite signs; if and both roots are positive, and so on).

For instance, in we need two numbers with sum and product . Those numbers are and — exactly the roots found in Example 1.

Quick shortcuts for special cases

Two special patterns let you read off the roots immediately:

  • If , then and .
  • If , then and .

For example, has , so instantly and .

Common mistakes to avoid

  • Forgetting the condition . Always confirm the leading coefficient is non-zero before applying the quadratic formula.
  • Sign errors in . Watch the term carefully — it flips sign when is negative.
  • Jumping to conclusions when . There are no real roots, but over the complex numbers the equation still has two solutions.
  • Dropping the . When you must take both the and signs to get both roots.

Master the discriminant and Vieta's formulas, and you can solve almost any quadratic equation quickly. Try the examples above in the calculator to check each step of your work.

Solve this in the calculator Open CalcES and check your work step by step.

Frequently asked questions

When does a quadratic equation have real solutions?

Look at the discriminant Δ = b² − 4ac. If Δ > 0 there are two distinct real roots, if Δ = 0 there is one repeated (double) root, and if Δ < 0 the equation has no real solutions.

What is the quadratic formula?

For ax² + bx + c = 0 with a ≠ 0, the solutions are x = (−b ± √(b² − 4ac)) / (2a). The ± sign gives the two roots whenever the discriminant is non-negative.

What are Vieta's formulas used for?

Vieta's formulas give the sum and product of the roots without solving: x₁ + x₂ = −b/a and x₁·x₂ = c/a. They help you guess nice roots, check your answers, and analyze the signs of the solutions.

Does a quadratic equation always have two solutions?

Not over the real numbers. There are two distinct real roots only when Δ > 0; when Δ = 0 there is a single repeated root, and when Δ < 0 there are no real solutions (though two complex ones exist).

Related articles