Quadratic Formula Calculator
Enter coefficients for ax² + bx + c = 0 and click calculate.
What Is a Quadratic Equation?
A quadratic equation is a second-degree polynomial equation written in the standard form: ax² + bx + c = 0, where a ≠ 0. The highest power of x is 2, which is what makes it “quadratic.”
These equations appear everywhere: physics (projectile motion), economics (maximizing profit), engineering (trajectory and optimization), and even computer graphics.
The Quadratic Formula
When factoring is difficult or impossible, the fastest universal method is the quadratic formula:
This formula gives every solution (or “root”) of a quadratic equation. The expression inside the square root, b² - 4ac, is called the discriminant.
What each coefficient means
- a: Controls the curve’s direction and width.
- b: Influences symmetry and horizontal shift.
- c: The y-intercept when x = 0.
How to Use This Calculator
- Type values for a, b, and c.
- Click Calculate Roots.
- Review the discriminant and root type (real or complex).
- Use Clear to reset quickly.
The calculator also handles edge cases. If a = 0, the equation is no longer quadratic, and it is treated as a linear equation when possible.
Understanding the Discriminant
The discriminant tells you how many real solutions exist:
- b² - 4ac > 0: two distinct real roots
- b² - 4ac = 0: one repeated real root
- b² - 4ac < 0: two complex conjugate roots
This is useful before solving because it previews the result type immediately.
Worked Examples
Example 1: Two Real Roots
Solve x² - 5x + 6 = 0. Here, a = 1, b = -5, c = 6. Discriminant = (-5)² - 4(1)(6) = 25 - 24 = 1. Because the discriminant is positive, there are two real roots: x = 2 and x = 3.
Example 2: One Repeated Root
Solve x² + 4x + 4 = 0. Here, a = 1, b = 4, c = 4. Discriminant = 16 - 16 = 0. A zero discriminant means one repeated root: x = -2.
Example 3: Complex Roots
Solve x² + 2x + 5 = 0. Here, a = 1, b = 2, c = 5. Discriminant = 4 - 20 = -16. Since it’s negative, roots are complex: x = -1 ± 2i.
Common Mistakes to Avoid
- Forgetting that a cannot be 0 in a quadratic equation.
- Sign errors while substituting negative values for b or c.
- Dropping parentheses in -b or 2a.
- Assuming every equation has real roots.
- Rounding too early and losing accuracy.
Quick FAQ
Can this calculator solve decimals and fractions?
Yes. You can enter decimal values directly (for example, 0.5 or -2.75). Fractions can be entered in decimal form.
Why are my roots complex?
Complex roots occur when the discriminant is negative. This means the parabola does not intersect the x-axis.
Is factoring better than the formula?
Factoring is faster when easy, but the quadratic formula always works, so it is the most reliable general method.
Final Thoughts
A good quadratic equation formula calculator saves time, reduces sign mistakes, and helps you learn by showing what the discriminant means. Try different values above and observe how the roots change as coefficients change. It is one of the best ways to build intuition for algebra and graph behavior.