Quadratic Formula Calculator
Find the exact real or complex roots of any quadratic equation by entering coefficients a, b, and c.
Last updated:
Calculation Examples
📋Steps to Calculate
-
Enter coefficient a, the leading term in front of x squared.
-
Enter coefficients b and c from your equation.
-
Click Calculate to see both roots, the discriminant, and the step-by-step solution.
Mistakes to Avoid ⚠️
- Forgetting the plus-or-minus sign and computing only one root instead of two.
- Computing the discriminant as b squared minus 4c without multiplying by a, the most common arithmetic error.
- Dividing only one term of the numerator by 2a instead of the entire expression.
- Leaving the radical unsimplified, so the answer is correct but not in its simplest form.
Practical Applications📊
Solve projectile problems in physics: a ball thrown upward at 20 m/s from a height of 1.5 m lands after about 4.16 seconds.
Find break-even points where a profit function modeled as a quadratic crosses zero.
Locate intersection points of curves in geometry, engineering design, and computer graphics.
Questions and Answers
Can the calculator handle complex and imaginary roots?
Yes, a negative discriminant returns the roots in standard complex form \(p + qi\) and \(p - qi\) instead of an error. Here \(p = -\frac{b}{2a}\) and \(q = \frac{\sqrt{|\Delta|}}{2|a|}\). For \(x^2 + 4 = 0\), \(\Delta = -16\), so \(p = 0\), \(q = 2\), and the roots are \(\pm 2i\). Complex roots matter in AC circuit analysis, control systems, and quantum mechanics, where they describe oscillation and decay.
How do you solve a quadratic equation using the formula?
Write the equation as \(ax^2 + bx + c = 0\), then substitute \(a\), \(b\), and \(c\) into \(x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\). Compute the discriminant first, because its sign tells you whether to expect two real roots, one repeated root, or complex roots. For \(2x^2 + 3x - 5 = 0\), the discriminant is \(9 + 40 = 49\), so \(x = \frac{-3 \pm 7}{4}\), which gives \(x = 1\) and \(x = -2.5\). The calculator does this in one click and shows each step.
Is the quadratic formula better than factoring or completing the square?
The quadratic formula is the only one of the three methods that works for every quadratic equation, including those with irrational or complex roots. Factoring is faster when the roots are integers: \(x^2 - 5x + 6\) becomes \((x - 2)(x - 3)\) in seconds. But \(x^2 + x - 1\) has no integer factorization, and the formula gives \(x \approx 0.618\) and \(x \approx -1.618\) directly. Completing the square is the right tool when you need vertex form \(y = a(x - h)^2 + k\) with \(h = -\frac{b}{2a}\).
What does the discriminant tell you about the roots?
The discriminant \(\Delta = b^2 - 4ac\) tells you the type of roots before you compute them. When \(\Delta > 0\), there are two distinct real roots and the parabola crosses the x-axis at two points. When \(\Delta = 0\), there is exactly one real root, and the vertex of the parabola sits on the x-axis. When \(\Delta < 0\), the roots are complex conjugates of the form \(p \pm qi\) and the parabola has no real x-intercepts. If \(a\), \(b\), and \(c\) are integers and \(\Delta\) is a perfect square, the roots are rational numbers.
What formula does the calculator use and how accurate is it?
The calculator applies \[x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\] in double-precision floating-point arithmetic, which carries about 15 to 16 significant digits. When \(b^2\) is much larger than \(4ac\), the textbook form subtracts two nearly equal numbers and loses digits (catastrophic cancellation). The stable variant avoids this: compute \(x_1 = \frac{-b - \operatorname{sgn}(b)\sqrt{\Delta}}{2a}\), with \(\operatorname{sgn}(b) = 1\) for \(b \ge 0\), then get the second root from the Vieta product as \(x_2 = \frac{c}{a x_1}\). Numerical Recipes by Press et al. recommends this approach.
What is a quadratic formula calculator and what does it solve?
A quadratic formula calculator finds all roots of any equation \(ax^2 + bx + c = 0\) with \(a \neq 0\), whether they are real, repeated, or complex. Enter the three coefficients and the tool returns both roots, the discriminant, and a step-by-step breakdown. For example, \(x^2 - 5x + 6 = 0\) gives \(x = 3\) and \(x = 2\). It suits everything from school algebra to engineering problems with parabolic models.
Disclaimer: This calculator is designed to provide helpful estimates for informational purposes. While we strive for accuracy, financial (or medical) results can vary based on local laws and individual circumstances. We recommend consulting with a professional advisor for critical decisions.