Algebra & Functions · Grades 9–11

How to Solve Quadratic Equations: Factoring and the Formula

How to Solve Quadratic Equations: Factoring and the Formula — illustration
Short answer: A quadratic equation has the form ax² + bx + c = 0. You can solve it by factoring, or always by the quadratic formula x = (−b ± √(b² − 4ac)) / 2a. For x² − 3x − 4 = 0 the answer is x = 4 or x = −1.

Step 1: get the equation into standard form

Move every term to one side so the other side is 0, then read off a, b and c with their signs. x² = 3x + 4 becomes x² − 3x − 4 = 0, so a = 1, b = −3 and c = −4.

Step 2: try factoring first

Look for two numbers that multiply to c and add to b. For x² − 3x − 4, those numbers are −4 and +1, giving (x − 4)(x + 1). Setting each bracket to zero gives the two roots.

Step 3: use the formula when factoring is not obvious

The formula works for every quadratic. Compute the discriminant D = b² − 4ac first; it tells you what kind of answer to expect.

  • D > 0 → two different real roots
  • D = 0 → one repeated real root
  • D < 0 → no real roots; two complex roots
x² − 3x − 4 = 0
Answerx = 4 or x = −1
  • Factored form: (x − 4)(x + 1)
  • Discriminant D = 25
  • Vertex: (1.5, −6.25)
Step-by-step working 6 steps
  1. 1
    Identify a, b and c
    x² − 3x − 4 = 0
    a = 1,  b = −3,  c = −4
  2. 2
    Calculate the discriminant
    D = b² − 4ac = (−3)² − 4(1)(−4) = 25

    D is positive: two different real roots.

  3. 3
    Apply the quadratic formula
    x = (−b ± √D) / 2a = (3 ± √25) / 2 = (3 ± 5) / 2
  4. 4
    Solve for both roots
    x₁ = 4
    x₂ = −1
  5. 5
    Check by substitution
    f(4) = 0
    f(−1) = 0

    Both should be 0 (allowing for tiny rounding).

  6. 6
    Vertex of the parabola
    x = −b / 2a = 1.5,  y = −6.25  →  vertex (1.5, −6.25)

    The parabola opens upward, so the vertex is the minimum point.

When a is not 1

Factoring is harder when a ≠ 1, but the formula does not care. 2x² + 3x − 2 = 0 gives x = 0.5 or x = −2.

2x² + 3x − 2 = 0
Answerx = 0.5 or x = −2
  • Factored form: 2(x − 0.5)(x + 2)
  • Discriminant D = 25
  • Vertex: (−0.75, −3.125)
Step-by-step working 6 steps
  1. 1
    Identify a, b and c
    2x² + 3x − 2 = 0
    a = 2,  b = 3,  c = −2
  2. 2
    Calculate the discriminant
    D = b² − 4ac = (3)² − 4(2)(−2) = 25

    D is positive: two different real roots.

  3. 3
    Apply the quadratic formula
    x = (−b ± √D) / 2a = (−3 ± √25) / 4 = (−3 ± 5) / 4
  4. 4
    Solve for both roots
    x₁ = 0.5
    x₂ = −2
  5. 5
    Check by substitution
    f(0.5) = 0
    f(−2) = 0

    Both should be 0 (allowing for tiny rounding).

  6. 6
    Vertex of the parabola
    x = −b / 2a = −0.75,  y = −3.125  →  vertex (−0.75, −3.125)

    The parabola opens upward, so the vertex is the minimum point.

When there are no real roots

If D is negative, the square root in the formula is of a negative number. The roots are complex: x² + 2x + 5 = 0 gives x = −1 ± 2i. Graphically, the parabola never touches the x-axis.

Negative discriminant
Answerx = −1 ± 2i
  • No real x-intercepts: the parabola never crosses the x-axis.
  • Discriminant D = −16
  • Vertex: (−1, 4)
Step-by-step working 4 steps
  1. 1
    Identify a, b and c
    x² + 2x + 5 = 0
    a = 1,  b = 2,  c = 5
  2. 2
    Calculate the discriminant
    D = b² − 4ac = (2)² − 4(1)(5) = −16

    D is negative: no real roots — two complex roots.

  3. 3
    Complex roots
    x = (−2 ± √16·i) / 2
    x = −1 ± 2i

    The square root of a negative number introduces i, where i² = −1.

  4. 4
    Vertex of the parabola
    x = −b / 2a = −1,  y = 4  →  vertex (−1, 4)

    The parabola opens upward, so the vertex is the minimum point.

Common mistakes

Losing the sign of b

In the formula the first term is −b. If b is already negative, −b is positive.

Dividing only the square root by 2a

Both −b and the root are divided by 2a.

Skipping the check

Substitute each root into the original equation. Both should give 0.

Put it into practice. Try your own numbers in the Quadratic Equation Solver and compare each step with the method above.

Frequently asked questions

Can a quadratic have just one solution?

Yes, when the discriminant is exactly zero, the parabola just touches the x-axis and the single root is counted twice.

Is the quadratic formula the same as completing the square?

The formula is what you get when you complete the square on the general equation. They are two routes to the same answer.

Written and reviewed by Mateuss M.

Mateuss M. writes and reviews mathematical content for CalcSolver, focusing on online calculators, formulas, equations, and practical math tools. He reviews calculator functionality, calculation methods, formulas, examples, and explanations to help ensure that each tool is clear, useful, and easy to understand.

Related articles