Quadratic Formula Calculator

Enter the coefficients and see the exact roots of the quadratic.

The coefficient of x², not 0.

The coefficient of x.

The constant term.

Try

Result

You entered1x2+−5x+6=01x^2 + -5x + 6 = 0

x=2,x=3\displaystyle x = 2, x = 3

Discriminant

1\displaystyle 1

Nature of roots

Two real roots\displaystyle \text{Two real roots}

Vertex

(52,−14)\displaystyle \left(\frac{5}{2}, -\frac{1}{4}\right)

Axis of symmetry

x=52\displaystyle x = \frac{5}{2}

Factored form

(x−2)(x−3)\displaystyle (x - 2)(x - 3)

Decimal roots

x=2,x=3\displaystyle x = 2, x = 3
Show the work
  1. Coefficients of the quadratic

    Compare the equation with ax2+bx+c=0ax^2 + bx + c = 0 to read off the coefficients: a=1a = 1, b=−5b = -5 and c=6c = 6.

  2. Discriminant

    The discriminant DD is the part under the square root in the quadratic formula. Its sign decides whether the roots are real or complex, so it is worked out first.

    D=b2−4ac=(−5)2−4×1×6=25−24=1\begin{aligned} D &= b^2 - 4ac \\ &= \left(-5\right)^2 - 4 \times 1 \times 6 \\ &= 25 - 24 \\ &= 1 \end{aligned}
  3. Quadratic formula

    Because D>0D > 0 there are two real roots, one from the plus sign and one from the minus sign. Put −b-b, DD and 2a2a into the formula.

    x=−b±b2−4ac2a=5±12\begin{aligned} x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \\ &= \frac{5 \pm \sqrt{1}}{2} \end{aligned}
  4. Square root of a perfect square

    The discriminant is a perfect square, so its root is exact and the roots are rational.

    1=1\sqrt{1} = 1
  5. Plus sign: first root

    Take the plus sign in the ±\pm, add in the numerator, then divide by 2a2a.

    x1=5+12=62=3\begin{aligned} x_1 &= \frac{5 + 1}{2} \\ &= \frac{6}{2} \\ &= 3 \end{aligned}
  6. Minus sign: second root

    Take the minus sign instead and work in the same way.

    x2=5−12=42=2\begin{aligned} x_2 &= \frac{5 - 1}{2} \\ &= \frac{4}{2} \\ &= 2 \end{aligned}
  7. Result

    So the solutions are x=2x = 2 and x=3x = 3.

Worked examples