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+2x+1=01x^2 + 2x + 1 = 0

x=−1(doubleroot)\displaystyle x = -1 (double root)

Discriminant

0\displaystyle 0

Nature of roots

One repeated real root\displaystyle \text{One repeated real root}

Vertex

(−1,0)\displaystyle \left(-1, 0\right)

Axis of symmetry

x=−1\displaystyle x = -1

Factored form

(x+1)2\displaystyle (x + 1)^2

Decimal roots

x=−1\displaystyle x = -1
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=2b = 2 and c=1c = 1.

  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=22−4×1×1=4−4=0\begin{aligned} D &= b^2 - 4ac \\ &= 2^2 - 4 \times 1 \times 1 \\ &= 4 - 4 \\ &= 0 \end{aligned}
  3. Quadratic formula

    Because D=0D = 0 the plus and the minus give the same value, so there is one repeated root. Put −b-b, DD and 2a2a into the formula.

    x=−b±b2−4ac2a=−2±02\begin{aligned} x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \\ &= \frac{-2 \pm \sqrt{0}}{2} \end{aligned}
  4. One repeated root

    Adding or subtracting 0 changes nothing, so both signs give the same value.

    x=−2±02=−22=−1\begin{aligned} x &= \frac{-2 \pm 0}{2} \\ &= \frac{-2}{2} \\ &= -1 \end{aligned}
  5. Result

    So the solutions are x=−1x = -1 (a repeated root).

Worked examples