Quadratic equations show up everywhere: in the path of a thrown ball, in the area of a garden you are designing, in profit calculations and in almost every algebra class. They look intimidating, with an x squared sitting in the middle, but every one of them can be solved with the same short recipe. This guide explains what a quadratic equation is, walks through three solving methods with worked examples, shows what the discriminant tells you before you start and finishes with a real physics problem.

What Is a Quadratic Equation?

A quadratic equation is any equation that can be written in the standard form:

ax² + bx + c = 0

Here a, b and c are known numbers, and a cannot be zero (otherwise the x² term disappears and you have a simple linear equation). The solutions, called roots, are the values of x that make the equation true. A quadratic has at most two real roots, and its graph is a U-shaped curve called a parabola. The roots are the places where the curve crosses the x-axis.

Method 1: Factoring

Factoring works when the numbers are friendly. You rewrite the expression as a product of two brackets and use the fact that a product is zero only when one of its parts is zero.

Example: x² - 5x + 6 = 0

  • Look for two numbers that multiply to 6 and add to -5. They are -2 and -3.
  • Write (x - 2)(x - 3) = 0.
  • So x - 2 = 0 or x - 3 = 0, which gives x = 2 or x = 3.

Check: 2² - 5 × 2 + 6 = 4 - 10 + 6 = 0, and 3² - 5 × 3 + 6 = 9 - 15 + 6 = 0. Both work.

Factoring is fast when it works, but many quadratics do not factor into neat whole numbers. For those you need a method that always works.

Method 2: The Quadratic Formula

The quadratic formula solves every quadratic equation, whatever the numbers look like:

x = (-b ± √(b² - 4ac)) ÷ 2a

The ± sign means you calculate twice, once with plus and once with minus, which gives the two roots.

Example: 2x² + 3x - 2 = 0, so a = 2, b = 3 and c = -2.

  • b² - 4ac = 9 - 4 × 2 × (-2) = 9 + 16 = 25
  • √25 = 5
  • x = (-3 + 5) ÷ 4 = 0.5
  • x = (-3 - 5) ÷ 4 = -2

A useful shortcut to check your answer: the two roots always add up to -b ÷ a and multiply to c ÷ a. Here -3 ÷ 2 = -1.5, and 0.5 + (-2) = -1.5. The product should be -2 ÷ 2 = -1, and 0.5 × (-2) = -1. Both checks pass.

The Discriminant Tells You What to Expect

The part under the square root, b² - 4ac, is called the discriminant. You can calculate it first and know what kind of answer is coming.

Discriminant Roots The graph Example
Positive (above 0) Two different real roots Crosses the x-axis twice x² - 5x + 6: D = 1, roots 2 and 3
Zero One repeated real root Touches the x-axis once x² + 4x + 4: D = 0, root -2
Negative (below 0) No real roots, two complex roots Never reaches the x-axis x² + 2x + 5: D = -16

Check the examples. For x² - 5x + 6, D = 25 - 24 = 1. For x² + 4x + 4, D = 16 - 16 = 0, so x = -4 ÷ 2 = -2. For x² + 2x + 5, D = 4 - 20 = -16. A negative number has no real square root, so the equation has no real solutions. In higher math you work with complex numbers: √(-16) = 4i, and the roots are x = (-2 ± 4i) ÷ 2 = -1 ± 2i.

Discriminant cases for quadratic equations: D positive gives two real roots, D zero gives one root and D negative gives no real roots

Method 3: Completing the Square

Completing the square rewrites the equation so that one side is a perfect square. It is the method that the quadratic formula is built from, and it is useful for finding the vertex of a parabola.

Example: x² + 6x + 5 = 0

  • Move the constant: x² + 6x = -5
  • Add (6 ÷ 2)² = 9 to both sides: x² + 6x + 9 = 4
  • Write the left side as a square: (x + 3)² = 4
  • Take the square root: x + 3 = 2 or x + 3 = -2
  • So x = -1 or x = -5

Which Method Should You Use?

  • Try factoring first when a is 1 and the numbers are small.
  • Use the quadratic formula when factoring does not work quickly, or when the coefficients are decimals or fractions.
  • Use completing the square when you want the vertex, or when the problem asks for it.

A Real Example: When Does the Ball Land?

A ball is thrown upward from a height of 1.5 m at 20 m/s. Ignoring air resistance, its height after t seconds is approximately h = -4.9t² + 20t + 1.5, using 9.8 m/s² for gravity. When does it hit the ground? Set h = 0:

  • a = -4.9, b = 20, c = 1.5
  • Discriminant: 20² - 4 × (-4.9) × 1.5 = 400 + 29.4 = 429.4
  • √429.4 ≈ 20.72
  • t = (-20 - 20.72) ÷ (-9.8) ≈ 4.16 seconds
  • The other root, t = (-20 + 20.72) ÷ (-9.8) ≈ -0.07, is negative and has no meaning here, because the ball was not in the air before it was thrown.

The highest point comes at the vertex, where t = -b ÷ 2a = 20 ÷ 9.8 ≈ 2.04 seconds. Putting that back in gives a peak height of about 21.9 m. Both answers come from the same equation, which is why quadratics matter in physics and engineering.

Height of a ball over time, h equals minus 4.9 t squared plus 20 t plus 1.5, with a peak of about 21.9 metres at 2.04 seconds and landing at about 4.16 seconds

Common Mistakes

  1. Forgetting to set the equation to zero. Move everything to one side first, so the equation is in ax² + bx + c = 0 form.
  2. Sign errors with b. The formula starts with -b, so if b is -5, then -b is +5.
  3. Losing the bracket in b² - 4ac. If c is negative, subtracting 4ac adds a positive number, as in the 2x² + 3x - 2 example.
  4. Dividing only part of the formula by 2a. The whole top line is divided by 2a.
  5. Dropping one root. The ± sign means two answers unless the discriminant is zero.
  6. Keeping an impossible answer. In word problems, a negative time or length may have to be discarded.

Calculate It Online

Enter a, b and c into the quadratic formula calculator to get the discriminant, the real or complex roots and every step. To check numbers for factoring, the factor calculator lists the factors of an integer, and the root calculator gives square roots when you do the formula by hand.

Frequently Asked Questions

What if a is zero?

Then it is not a quadratic equation. With a = 0 the equation becomes bx + c = 0, a linear equation with a single solution x = -c ÷ b.

Can a quadratic have more than two solutions?

No. A quadratic equation has at most two roots. Counting complex roots, it always has exactly two, which may be the same number.

Why does the formula have a plus-or-minus sign?

Because a square root has two values, one positive and one negative. Both can satisfy the equation, which is why a parabola can cross the x-axis in two places.