Quadratic Equation Calculator

Enter coefficients of ax2+bx+c=0ax^2+bx+c=0. A negative discriminant produces conjugate complex roots with the displayed real part and ±i times the imaginary magnitude. When a is zero, the equation is linear.

Results

Enter your values and select Calculate.

x=−b±b2−4ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

How it works

Enter coefficients of ax2+bx+c=0ax^2+bx+c=0. A negative discriminant produces conjugate complex roots with the displayed real part and ±i times the imaginary magnitude. When a is zero, the equation is linear.

x=−b±b2−4ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}