Quadratic Equation Solver

By Harmain Manzoor · Reviewed by Fahad Ullah

MathAlgebra·Last updated August 4, 2026

A quadratic equation is any equation that can be written as ax squared plus bx plus c equals zero. This tool solves that equation for you, returning real or complex roots along with the steps used to reach them. Below the calculator, the page also walks through the discriminant, a few alternative solving methods, and the mistakes people run into most often.

What Is a Quadratic Equation, and What Do a, b, and c Represent?

Standard form writes a quadratic equation as ax squared plus bx plus c equals zero, with the condition that a can never be zero, since that's what keeps the squared term in the equation at all. Each letter plays a specific role. In 2x squared minus 3x plus 1 equals 0, a is 2 and controls how narrow or wide the parabola is; b is -3 and represents the linear term; and c is 1, which marks where the parabola crosses the y-axis. If a happens to equal zero, the equation loses its squared term entirely and becomes linear rather than quadratic, so it no longer belongs to this category. Equations don't always show up already in standard form either. Something like x squared equals 3x minus 1 needs to be rearranged first, moving every term to one side, which turns it into x squared minus 3x plus 1 equals 0 before any solving method can be applied.

Term

Role

Example (2x² - 3x + 1 = 0)

a

Controls the width and direction of the parabola

2

b

The linear term's coefficient

-3

c

The y-intercept of the parabola

1

Rearranging

x² = 3x - 1 becomes standard form

x² - 3x + 1 = 0

 

How Does the Quadratic Formula Solve Any Quadratic Equation?

The quadratic formula states that x equals negative b, plus or minus the square root of b squared minus 4ac, all divided by 2a. Take x squared plus 4x minus 5 equals 0 as an example, where a is 1, b is 4, and c is -5. Substituting those values gives x equals negative 4, plus or minus the square root of 16 minus (4 times 1 times -5) over 2. That simplifies to negative 4 plus or minus the square root of 36, over 2, which becomes negative 4 plus or minus 6, over 2. Working through both signs gives x equals 1 and x equals -5. Two mistakes show up constantly at this stage: dropping the negative sign in front of b when it's already negative and forgetting to simplify a common factor that's sitting in the final fraction. This formula works on every quadratic equation without exception, because it comes directly from completing the square, so it succeeds even in cases where factoring doesn't turn up a clean answer.

Step

Working

Start with the equation

x² + 4x - 5 = 0 (a = 1, b = 4, c = -5)

Substitute into the formula

x = (-4 ± √(16 - 4(1)(-5))) / 2

Simplify under the root

x = (-4 ± √(36)) / 2

Simplify the square root

x = (-4 ± 6) / 2

Final roots

x = 1 and x = -5

 

What Is the Discriminant and What Does Its Sign Tell You?

The discriminant is b squared minus 4ac, the expression sitting under the square root in the quadratic formula. Its sign alone tells you what kind of roots to expect before any further work is done. The most common slip at this stage is writing b squared plus 4ac instead of subtracting, which throws off the whole calculation. It's also worth being clear on what a negative discriminant actually means: no real solution doesn't mean no solution at all; it means the equation has two complex conjugate roots instead of real ones.

Discriminant Sign

Root Type

Example

Positive

Two distinct real roots

x² - 5x + 6 = 0 gives x = 2 and x = 3

Zero

One repeated real root

x² - 4x + 4 = 0 gives x = 2 (double root)

Negative

Two complex conjugate roots

x² + x + 1 = 0 gives x = (-1 ± i√3) / 2

 

What Other Methods Can Solve a Quadratic Equation Besides the Formula?

The quadratic formula works on every equation, but it isn't always the fastest route. Factoring is quicker when the numbers line up cleanly, completing the square is useful when the equation needs to be rewritten in vertex form anyway, graphing gives a visual read on where the roots fall, and a direct square root shortcut handles the simplest cases in a couple of lines. Each of these fits a particular situation better than the others, and they're covered briefly below.

Method

Best Used When

Factoring

The discriminant is a perfect square and terms split cleanly

Completing the Square

The equation needs to be rewritten in vertex form

Graphing

A visual read on the roots is enough; exact precision isn't required

Square Root Shortcut

b equals zero and x squared can be isolated directly

 

How Do You Solve a Quadratic Equation by Factoring?

Take x squared plus 5x plus 6 equals 0. This factors into (x + 2)(x + 3) equals 0, which means either x + 2 equals 0 or x + 3 equals 0, giving roots of x = -2 and x = -3. Factoring only works out this cleanly when the discriminant works out to a perfect square, the same discriminant covered above.

For equations with larger or non-monic coefficients that don't split apart so easily, the factoring calculator walks through more worked examples.

How Do You Solve a Quadratic Equation by Completing the Square or When b Equals 0?

Completing the square on x squared plus 6x plus 5 equals 0 means rewriting the left side as (x + 3) squared minus 4 equals 0, then isolating it and taking the square root to get x = -1 and x = -5. It takes more manual steps than the formula, but it's the same process the formula is built from, and it produces vertex form along the way. When b equals zero instead, such as 2x squared equals 18, the fastest route is isolating x squared to get x squared equals 9 and then taking the square root of both sides directly for x = 3 and x = -3. That shortcut is just a special case of the formula rather than a separate rule of its own.

For the full conversion from standard form into vertex form, the standard form to vertex form calculator covers that process end to end.

What Are the Most Common Mistakes When Solving a Quadratic Equation?

● Forgetting to rearrange the equation into standard form before applying any method.

● Dropping the plus-or-minus sign, which leaves only one root instead of the two the equation actually has.

● Sign errors in the discriminant, usually adding 4ac instead of subtracting it.

● Leaving the final answer unsimplified, such as (8 ± 2 root 11) / 2 instead of reducing it to 4 ± root 11.

 

What Do the Roots of a Quadratic Equation Represent?

The roots are simply the x-values where the parabola crosses the x-axis. What that means in practice depends on context, in a projectile motion problem, for instance, a root marks the moment a thrown object hits the ground.

What Is the Relationship Between the Roots and the Vertex?

The vertex sits exactly halfway between the two real roots, with its x-coordinate at negative b over 2a, the same expression found inside the quadratic formula. Its y-coordinate comes from substituting that x-value back into the original equation. Depending on the sign of a, the vertex marks either the parabola's minimum or maximum point, which in a projectile motion problem corresponds to the peak height reached.

For readers who want the vertex, axis of symmetry, and max or min value directly rather than deriving it from the roots, the vertex of a parabola calculator returns all three in one step.

What Is the Sum and Product of the Roots?

Vieta's formulas state that the sum of the roots equals negative b over a, and the product of the roots equals c over a. For x squared minus 5x plus 6 equals 0, the roots are 2 and 3, and sure enough, 2 + 3 = 5 (matching -b/a) and 2 times 3 = 6 (matching c/a). This is a fast way to sanity check an answer without solving the whole equation over again.

What Real-World Problems Use a Quadratic Equation?

Projectile motion is one of the most common examples, where an equation models an object's height over time and the roots mark when it leaves the ground and when it lands again. Business problems use the same structure to find break-even points or maximize profit, since revenue and cost often relate in a curved rather than straight-line way. Geometry problems lean on quadratics too, especially when an area needs to be worked backward into unknown dimensions, such as the length and width of a rectangle. Chemistry equilibrium calculations and electrical circuit analysis both rely on quadratic equations as well, though that depth of application is better covered on its own page.

For full worked solutions to each of these scenarios, the quadratic equation word problems page goes through them in detail.

Explore More Quadratic Equation Tools

Once an equation is solved, a few follow-up needs tend to come up next, whether that's finding a vertex directly, converting between equation forms, factoring something more complex, working through a system of equations, or handling a complex number that came out of the answer. The tools below cover each of those next steps.

Where Can You Find the Vertex of a Parabola Directly?

The vertex was already covered above using negative b over 2a, but a vertex of a parabola calculator returns the vertex, axis of symmetry, and max or min value in a single step for readers who want vertex-focused work rather than root-finding.

How Do You Convert Standard Form Into Vertex Form?

This uses the same completing-the-square process covered earlier, just applied to rewrite the whole equation. The standard form to vertex form calculator handles that conversion for a different, useful view of the same parabola.

How Do You Factor a More Complex Quadratic Expression?

The factoring example covered above used a simple monic trinomial. The factoring calculator handles larger coefficients and non-monic leading terms with full step breakdowns.

How Do You Solve a System That Includes a Quadratic Equation?

Pairing a quadratic with a linear or second quadratic equation is a different skill from solving one equation alone, since it requires substitution or graphing both together. The system of equations solver covers that process.

What Is a Complex Number and How Do You Work With One?

A complex root produced above, written in a plus bi form, is one case of the broader complex number system. The complex number calculator helps simplify or perform further arithmetic on that answer.

Frequently Asked Questions

What Does a Negative Discriminant Mean?

A negative discriminant means the equation has no real roots, but it still has two complex conjugate roots involving i. That's a valid answer type, not a sign the equation can't be solved.

Can a Quadratic Equation Have No Real Solutions?

Yes, whenever the discriminant is negative. The equation still has two solutions, they're just complex rather than real.

What Does It Mean When Both Roots Are Equal?

The roots are equal when the discriminant works out to exactly zero, since the plus and minus versions of the formula collapse to the same value once the square root term disappears. This is called a repeated or double root.

How Do You Check Yousolutions;r Answer After Solving a Quadratic Equation?

Substitute each root back into the original equation and confirm it evaluates to zero. The sum-and-product relationship covered earlier also works as a faster cross-check.

What Is a Real-Life Example of a Quadratic Equation?

Projectile motion is a common one, where the equation models an object's height over time. The roots represent when the object leaves the ground and when it returns to it.


Leave Your Feedback

Help us improve this calculator

Rating

Recent Feedback

No feedback yet.