Quadratic Formula Calculator
What are the roots of your quadratic equation?
Calculate the roots of quadratic equations using the quadratic formula. Input your coefficients and get both real and complex solutions with step-by-step breakdown.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Every quadratic equation is like a U-shaped curve that either crosses, touches, or misses the horizontal axis entirely. The quadratic formula finds exactly where that curve intersects the x-axis, if it does at all. Unlike factoring, which only works for nice numbers, the formula handles any quadratic equation no matter how messy the coefficients.
The formula uses the discriminant (the part under the square root) as an early warning system. Before doing any complex arithmetic, b² - 4ac tells you whether you'll get real numbers, a single repeated solution, or complex numbers with imaginary parts. This makes the quadratic formula both a calculation tool and a classification system.
The ± symbol in the formula means you're actually solving two equations simultaneously. The plus version gives you one root, the minus version gives you the other. When the discriminant is zero, both versions produce identical results, which is why you get a double root instead of two distinct solutions.
When To Use This
Right tool, right situation
Use the quadratic formula when factoring fails or looks difficult. If you can't immediately see two numbers that multiply to ac and add to b, the formula provides a guaranteed path to the answer. It's especially valuable for equations with decimal coefficients, large numbers, or irrational solutions that don't factor neatly.
The formula is essential for real-world applications like projectile motion, optimization problems, and finding break-even points in business. Physics problems often produce quadratic equations with messy coefficients that resist factoring. Engineering calculations frequently require exact decimal answers rather than factored forms.
Avoid the quadratic formula when simpler methods work better. If the equation factors easily (like x² - 5x + 6 = 0), factoring is faster and less error-prone. For equations where c = 0, factor out x first. If you only need to know whether real solutions exist, calculate the discriminant without completing the full formula.
Common Mistakes
Why results sometimes look wrong
The most common error is sign confusion when translating from standard form to coefficients. In x² - 3x + 2 = 0, students often enter b = 3 instead of b = -3, getting completely wrong solutions. Always match the signs exactly as written in the equation, including the spaces around plus and minus symbols.
Another frequent mistake is forgetting that a cannot equal zero. Students sometimes try to solve linear equations like 3x + 5 = 0 using the quadratic formula, which breaks the calculation entirely. If there's no x² term, use linear methods instead of forcing quadratic tools.
Many students panic when they see complex solutions and assume they made an error. Complex roots are mathematically valid and appear whenever the discriminant is negative. Instead of avoiding these problems, learn to interpret them: the equation has no real x-intercepts, but the complex solutions still contain useful information about the equation's behavior.
The Math
Worked examples and deeper derivation
The quadratic formula x = (-b ± √(b² - 4ac)) / 2a emerges from completing the square on the general form ax² + bx + c = 0. Starting with the original equation, you divide by a, move the constant term, add (b/2a)² to both sides, factor the left side into a perfect square, and solve for x.
The discriminant b² - 4ac controls everything about the solution behavior. When positive, √(discriminant) produces a real number, giving two distinct x-intercepts. When zero, the square root disappears, collapsing both solutions into one point where the parabola barely touches the axis. When negative, the square root of a negative number introduces the imaginary unit i.
The denominator 2a determines how the solutions spread from the axis of symmetry at x = -b/2a. Larger values of |a| make the parabola narrower, bringing the roots closer together. Smaller values create wider parabolas with roots farther apart. The sign of a determines whether the parabola opens upward (positive a) or downward (negative a).
Expert Unlock
The thing most explanations skip
The quadratic formula reveals why some parabolas never cross the x-axis: negative discriminants force square roots of negative numbers, pushing solutions into complex number territory. This connects algebra directly to complex analysis and explains why quadratic equations always have exactly two solutions when you count complex numbers and multiplicities.
How do I know if my quadratic has real solutions?
Need something this doesn't cover?
Suggest a tool — we'll build it →