iTutorzz

Free algebra tool

Quadratic Equation Solver

Enter a, b and c to solve ax² + bx + c = 0 with the quadratic formula, step by step. You get the discriminant and what it means, the solutions in exact form (fractions, simplified square roots or complex numbers), the factored form when there is one, the vertex, and a graph of the parabola. Free, no signup.

x^2 − 5x + 6 = 0
Try an example:

Discriminant

1
Two real solutions

Solutions

x = 2
x = 3

Vertex

(frac{5}{2}, −frac{1}{4})
lowest point (opens up)
Factored form(x − 2)(x − 3) = 0
12341234
x-intercepts (solutions)vertex (2.5, −0.25)y-intercept (0, 6)dashed line: axis of symmetry x = 2.5

Step by step

  1. 1
    Identify the coefficients in ax² + bx + c = 0: a = 1, b = −5, c = 6.
  2. 2
    Find the discriminant, the part under the square root in the quadratic formula. Its sign tells you how many real solutions there are.
    D = b^2 − 4ac = (−5)^2 − 4 × 1 × 6 = 25 − 24 = 1
  3. 3
    Use the quadratic formula.
    x = frac{−b ± √(D)}{2a} = frac{−(−5) ± √(1)}{2 × 1}
  4. 4
    D = 1 is a perfect square (√1 = 1), so both solutions are rational numbers.
    x = frac{5 + 1}{2} = 3 \quad \text{or} \quad x = frac{5 − 1}{2} = 2
  5. 5
    Because the solutions are rational, the quadratic factors:
    x^2 − 5x + 6 = (x − 2)(x − 3)
  6. 6
    The vertex (turning point) is at x = −b ⁄ 2a. The parabola opens upward, so the vertex is its lowest point.
    x = frac{−b}{2a} = frac{5}{2}, \quad y = −frac{1}{4}

Worked example: 2x² − 7x + 3 = 0

Here a = 2, b = −7 and c = 3. First the discriminant:

D\displaystyle D
=b2−4ac=(−7)2−4(2)(3)\displaystyle = b^{2} - 4ac = (-7)^{2} - 4(2)(3)
=49−24=25\displaystyle = 49 - 24 = 25

D is positive and a perfect square, so there are two rational solutions:

x\displaystyle x
=7±254=7±54\displaystyle = \frac{7 \pm \sqrt{25}}{4} = \frac{7 \pm 5}{4}
x\displaystyle x
=3orx=12\displaystyle = 3 \quad \text{or} \quad x = \frac{1}{2}

Because the solutions are rational, the quadratic factors as (2x−1)(x−3)=0(2x - 1)(x - 3) = 0. Check: (2x−1)(x−3)=2x2−6x−x+3=2x2−7x+3(2x - 1)(x - 3) = 2x^{2} - 6x - x + 3 = 2x^{2} - 7x + 3.

Three ways to solve a quadratic

  • Factoring: fastest when it works - find two numbers that multiply to ac and add to b.
  • Completing the square: rewrite as a(x−h)2+k=0a(x - h)^{2} + k = 0; it also gives the vertex (h, k) directly.
  • The quadratic formula: always works, which is why the solver uses it. It comes from completing the square on ax2+bx+c=0ax^{2} + bx + c = 0 in general.

Reading the graph

The solutions are where the parabola crosses the x-axis (the green points). The vertex (blue) sits on the axis of symmetry, exactly halfway between the two solutions, and the curve crosses the y-axis at c. A parabola that never reaches the x-axis is the picture of a negative discriminant.

Frequently asked questions

What is the quadratic formula?+

For any equation ax2+bx+c=0ax^{2} + bx + c = 0 with a not equal to 0, the solutions are x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}. The ± gives the two solutions: one with plus, one with minus.

What does the discriminant tell you?+

The discriminant is D=b2−4acD = b^{2} - 4ac, the part under the square root. If D is positive there are two real solutions, if D is 0 there is one repeated solution, and if D is negative there are no real solutions (two complex ones). If D is a perfect square and a, b, c are whole numbers, the solutions are rational and the quadratic factors.

When should I factor instead of using the formula?+

Factor when it's quick to spot two numbers that multiply to ac and add to b - for x2−5x+6x^{2} - 5x + 6, −2 and −3 work, so it factors as (x−2)(x−3)(x - 2)(x - 3). The quadratic formula always works, so use it when factoring isn't obvious. Both give the same answers.

How do you find the vertex of a parabola?+

The vertex is at x=−b2ax = \frac{-b}{2a}; put that x back into the equation to get y. For y=x2−4x+1y = x^{2} - 4x + 1 the vertex is at x=2x = 2 and y=4−8+1=−3y = 4 - 8 + 1 = -3. It's the lowest point when a is positive and the highest point when a is negative.

What does it mean when the answer has i in it?+

i is the imaginary unit, i=−1i = \sqrt{-1}. A negative discriminant means the parabola never crosses the x-axis, so there are no real solutions; the complex solutions come in pairs like −1±2i-1 \pm 2i. In most algebra classes you would write “no real solutions”.

Stuck on quadratics?

Factoring, completing the square and the quadratic formula click faster with someone who can see where you go wrong. Our algebra tutors work one-on-one - your first trial lesson is free.

Make algebra click

A 1-on-1 algebra tutor turns quadratics, functions and graphs into skills you can use on every test - your first trial lesson is free.