What this calculator does
This tool solves any quadratic equation written in the standard form \(\text{a}x^2 + \text{b}x + \text{c} = 0\), where a, b and c are real coefficients and a ≠ 0. It returns both roots (real or complex), the discriminant, and a plain-English description of the nature of the roots.
How to use it
Enter the three coefficients. The coefficient a multiplies x², b multiplies x, and c is the constant. If a is zero the equation is no longer quadratic, so the calculator asks you to enter a non-zero value. Choose how many significant digits to display from the dropdown; this affects only the rounding of the output, not the underlying computation.
The formula explained
The roots come from the quadratic formula $$x = \frac{-\text{b} \pm \sqrt{\text{b}^{2} - 4\,\text{a}\,\text{c}}}{2\,\text{a}}$$ where the discriminant is $$D = \text{b}^{2} - 4\,\text{a}\,\text{c}$$ When \(D > 0\) there are two distinct real roots. When \(D = 0\) the ± term vanishes, giving one repeated real root \(x = -\text{b} / (2\,\text{a})\). When \(D < 0\) the square root is imaginary, producing a complex conjugate pair with real part \(-\text{b} / (2\,\text{a})\) and imaginary part \(\sqrt{-D} / (2\,\text{a})\).
Worked example
For a = 2, b = 3, c = −5: $$D = 3^{2} - 4\cdot 2\cdot (-5) = 9 + 40 = 49$$ Since \(D > 0\), \(\sqrt{49} = 7\), so \(x_1 = (-3 + 7) / 4 = 1\) and \(x_2 = (-3 - 7) / 4 = -2.5\). The roots are 1 and −2.5.
FAQ
What if the discriminant is negative? You get two complex conjugate roots of the form \(p \pm qi\); this calculator reports the real part \(p\) and imaginary part \(q\) separately.
Why must a be non-zero? If a = 0 the x² term disappears and the equation becomes linear (\(\text{b}x + \text{c} = 0\)), so the quadratic formula's division by \(2\,\text{a}\) is undefined.
Does the significant-digits setting change the answer? No. It only controls how many digits are shown; the math is performed in full double precision and then rounded for display.