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.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
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).

Finding where a ball hits the ground
Height equation: h = -16t² + 32t + 48, so a = -16, b = 32, c = 48
Solutions are t = -1 and t = 3. The negative solution is meaningless physically, so the ball hits the ground after 3 seconds.
Solving homework with no real solutions
Equation x² + 2x + 5 = 0, so a = 1, b = 2, c = 5
Solutions are -1 + 2i and -1 - 2i. The discriminant is -16, confirming complex roots. This equation has no x-intercepts on a graph.
Engineering optimization with perfect square
Equation 4x² - 12x + 9 = 0, so a = 4, b = -12, c = 9
Solution is x = 1.5 (double root). The discriminant equals zero, meaning this parabola touches the x-axis at exactly one point.
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?

What does the discriminant tell me?
The discriminant (b² - 4ac) determines solution types without calculating them. Positive discriminant means two real solutions, zero means one real solution (double root), and negative means two complex solutions with imaginary parts.
Why can't coefficient a be zero?
If a = 0, the equation becomes bx + c = 0, which is linear, not quadratic. Quadratic equations must have an x² term, requiring a ≠ 0 by definition.
How do I enter negative coefficients correctly?
Type the negative sign directly in the field. For equation x² - 3x + 2 = 0, enter a = 1, b = -3, c = 2. The calculator handles all positive and negative combinations automatically.

Need something this doesn't cover?

Suggest a tool — we'll build it →