The quadratic formula solves any quadratic equation with a nonzero squared-term coefficient. Its discriminant tells whether there are two, one repeated, or no real roots.
Free quadratic formula and discriminant practice: topic practice PDF, topic quiz. The original short practice below includes explained solutions.
Rules and restrictions
For \(ax^2+bx+c=0\), \(a\ne0\), use \(D=b^2-4ac\) and \(x=(-b\pm\sqrt D)/(2a)\). Positive D gives two distinct real roots, zero D one repeated real root, and negative D no real roots. Over the complex numbers, negative D gives a conjugate pair.
Worked examples
Example 1
Solve \(2x^2-4x-1=0\).
Here \(a=2,b=-4,c=-1\). Compute \(D=(-4)^2-4(2)(-1)=16+8=24\). Substitute: \(x=(4\pm\sqrt{24})/4=(4\pm2\sqrt6)/4=1\pm\sqrt6/2\). There are two distinct real irrational roots.
Example 2
Classify and solve \(9x^2+12x+4=0\).
Use \(a=9,b=12,c=4\). Then \(D=12^2-4(9)(4)=144-144=0\). The repeated root is \(x=-12/(2\cdot9)=-2/3\). Check the factorization: \((3x+2)^2=0\).
Try these before opening the solutions
- Solve \(x^2+3x-1=0\).
- Classify the real roots of \(2x^2+x+3=0\).
- Solve \(x^2=6x-8\) with the formula.
- What happens if a = 0?
Show step-by-step solutions
- With \(a=1,b=3,c=-1\), \(D=9+4=13\). Thus \(x=(-3\pm\sqrt{13})/2\), two real irrational roots.
- Compute \(D=1^2-4(2)(3)=1-24=-23\). The discriminant is negative, so there are no real roots. Over the complex numbers, the roots are \((-1\pm i\sqrt{23})/4\).
- First move all terms left: \(x^2-6x+8=0\). Then \(D=(-6)^2-4(1)(8)=36-32=4\). Thus \(x=(6\pm2)/2\), giving 4 and 2. Both satisfy the original equation.
- The quadratic formula would divide by zero. The equation is not quadratic; solve \(bx+c=0\) as a linear equation if \(b\ne0\), or inspect the constant statement if b is also zero.
Common mistakes
Keep signs when identifying b and c. The entire numerator is divided by 2a, and the square applies to all of a negative b.
Related skills
Quadratic Formula and Discriminant worksheets; Graphing Quadratic Functions lesson; Solving Quadratic Inequalities lesson; Solving Quadratic Equations lesson.

