Quadratic Equation Solver

Introduction to the Quadratic Equation Solver

This quadratic equation solver is built for expressions that can be written in the standard form ax² + bx + c = 0 with a ≠ 0. That restriction is the dividing line between quadratic and non-quadratic work: if a drops to zero, the term disappears and the equation becomes linear instead. In this calculator, the coefficients should already be arranged so the squared term, linear term, and constant are easy to read.

Quadratic equations appear wherever a relationship bends instead of staying in a straight line. Projectile motion, area problems, curve fitting, and many introductory algebra exercises all lead to the same shape. This page is meant to remove the repetition from solving them by hand while still showing you the ideas behind the answer. Once you know how the coefficients affect the roots, discriminant, and vertex, the result box becomes a quick check rather than a mysterious output.

The solver returns the roots, the discriminant, and the vertex for the quadratic you enter. Real roots mark x-values where the graph crosses the axis. Complex roots are still valid algebraically, but they do not show up as real x-intercepts. Seeing all three pieces together helps you connect the algebra of ax² + bx + c with the geometry of the parabola.

Understanding the quadratic formula for quadratic equations

For a quadratic equation in standard form, the most general solution method is the quadratic formula. It works no matter whether the equation factors neatly, contains decimals, or produces repeated or complex roots. That is why this calculator can handle ordinary homework examples and awkward expressions with the same process.

Written in standard mathematical notation, the formula is:

x = - b ± b 2 - 4 a c 2 a

The quantity under the square root, b² − 4ac, is called the discriminant. It is the fastest clue to the type of roots you are about to get. If the discriminant is positive, the square root is a real positive number, so the formula produces two different real roots. If the discriminant is zero, the square root becomes zero and both branches of the formula collapse to the same value, giving one repeated real root. If the discriminant is negative, the square root involves a negative number, which means the roots are complex and come as a conjugate pair.

That one expression explains a lot of the geometry too. A positive discriminant means the parabola crosses the x-axis twice. A zero discriminant means the parabola just touches the axis at its vertex and turns around. A negative discriminant means the parabola never reaches the x-axis at all, so the equation has no real x-intercepts. The calculator shows the discriminant directly because it is often more informative than the raw roots alone, especially when you are checking work or reasoning about the graph before plotting anything.

The solver also reports the vertex. For a quadratic y = ax² + bx + c, the x-coordinate of the vertex is −b / (2a). Plugging that x-value back into the expression gives the y-coordinate. The vertex is the turning point of the parabola: the minimum point when a > 0 and the maximum point when a < 0. Seeing the roots and the vertex together is useful because it ties the algebra to the graph. If the roots are real, the vertex sits halfway between them on the x-axis. If the roots are repeated, the vertex lies exactly on the axis. If the roots are complex, the vertex is above or below the axis instead of touching it.

How to use this quadratic calculator

To use this quadratic calculator, begin by rewriting your equation so everything is on one side and the other side equals zero. This step matters because the calculator reads the coefficients directly from the standard form. For instance, if your original equation is 3x² + 7 = 2x, you should rearrange it to 3x² − 2x + 7 = 0. Only after that step do the coefficients become clear: a = 3, b = −2, and c = 7. The minus sign on b is part of the coefficient, so entering the wrong sign changes the entire equation.

Next, enter those coefficients into the three input boxes. The first box is the coefficient of , the second is the coefficient of x, and the third is the constant term. Decimals are fine. Negative numbers are fine. Zero is allowed for b or c, but not for a. After you submit the form, the calculator evaluates the discriminant, determines whether the roots are real or complex, and displays the roots with a rounded decimal presentation. It also lists the vertex in coordinate form.

Interpreting the result depends on context. If you are solving a purely algebraic exercise, the roots themselves may be the end of the story. If you are modelling a physical situation, the units come from whatever the variable represents. For example, if x stands for time in seconds, then the real roots are times. If x stands for length in meters, the roots are lengths. The calculator does not impose units because those belong to your original problem, but it gives the mathematical structure you need to interpret them correctly.

A quick mental check can save you from typo-driven confusion. If your discriminant is large and positive, two distinct real roots are expected. If your discriminant is exactly zero, the result should show only one real value. If your discriminant is negative, do not expect the graph to cross the x-axis. Those rough expectations make the output easier to trust, and they also make the calculator a better learning tool because you can compare your intuition with the computed answer.

Quadratic worked examples and result interpretation

Example with two real roots. Consider 2x² − 5x − 3 = 0. Here a = 2, b = −5, and c = −3. The discriminant is (−5)² − 4(2)(−3) = 25 + 24 = 49, which is positive. That immediately tells you the equation has two distinct real roots. Applying the formula gives x = (5 ± 7) / 4, so the roots are 3 and −0.5. On a graph, the parabola crosses the x-axis at those two x-values. If you enter those coefficients below, the calculator should reproduce the same result and list the vertex between the roots.

Example with a repeated root. Now look at x² − 4x + 4 = 0. The discriminant is (−4)² − 4(1)(4) = 0. A zero discriminant means the formula gives the same answer from both the plus and minus branches, so there is one repeated real root: x = 2. Graphically, this is the classic case where the parabola touches the x-axis at exactly one point and turns around. That single point is also the vertex, which is why repeated roots are sometimes described as the graph “kissing” the axis.

Example with complex roots. Finally, consider x² + 4x + 13 = 0. The discriminant becomes 4² − 4(1)(13) = 16 − 52 = −36, which is negative. That tells you before any further work that there are no real roots. Using the formula gives x = (−4 ± √−36) / 2 = −2 ± 3i. The graph never crosses the x-axis, but the equation is still completely solvable in the complex number system. This is a good example of why the calculator shows more than just intercept-style intuition: some valid roots are not visible on the ordinary graph.

The table below summarizes the three common discriminant cases in one glance:

Discriminant Root pattern Graph behavior What the calculator will show
D > 0 Two distinct real roots Parabola crosses the x-axis twice Two different real numbers
D = 0 One repeated real root Parabola touches the x-axis at the vertex One real number
D < 0 Two complex conjugate roots Parabola does not intersect the x-axis Values in the form p ± qi

There are a few practical assumptions worth remembering. This calculator expects numeric coefficients and uses standard floating-point arithmetic, so extremely large or tiny numbers can introduce rounding effects. It also assumes you want the equation interpreted in standard quadratic form. If a = 0, the tool correctly warns that the expression is not quadratic. That is not an error in the calculator; it is a reminder that the formula only applies once the squared term actually exists. For most school, tutoring, and self-check situations, these are exactly the right assumptions.

Frequently asked questions about quadratic equations

How do I know whether my equation is quadratic?

For this quadratic calculator, an equation counts as quadratic only if it can be rearranged into ax² + bx + c = 0 with a ≠ 0. The term is what makes it quadratic; if a = 0, the equation drops to a linear form instead.

How do I know whether an equation is quadratic?

An equation is quadratic if it can be written in the standard form ax² + bx + c = 0 with a ≠ 0. It must include an term and no higher power such as or x⁴.

What does the discriminant tell me?

The discriminant D = b² − 4ac tells you what kind of roots the quadratic has. A positive discriminant means two distinct real roots, zero means one repeated real root, and a negative discriminant means two complex roots.

Can a quadratic equation have no real solution?

Yes. When the discriminant is negative, the roots are complex rather than real, so the parabola does not cross the x-axis at any real point.

What is the vertex of a parabola and how is it related to the roots?

The vertex is the highest or lowest point of the parabola y = ax² + bx + c. Its x-coordinate is −b / (2a). If the discriminant is zero, the vertex lies on the x-axis and matches the repeated root.

Do I always have to use the quadratic formula?

No. Some quadratics factor easily, and some are simpler to solve by completing the square. The quadratic formula still matters because it works for every quadratic equation with a ≠ 0, which makes it the dependable method behind this calculator.

Enter the coefficients from a quadratic written in the form ax² + bx + c = 0. The calculator will return the roots, discriminant, and vertex.

Enter the coefficient of the squared term. This value cannot be zero for a quadratic equation.
Use the coefficient of the linear term, including its sign.
This is the constant term with no x attached.
The solutions to your quadratic equation will appear here.

Optional mini-game: Discriminant Sprint

If you want a fast way to build intuition for quadratic equations, try the mini-game below. Each incoming card shows a quadratic equation, and your job is to route it to the correct lane before it reaches the solver gate. Send it left if the discriminant is positive and the equation has two real roots, keep it in the center if the discriminant is zero and the equation has one repeated root, or send it right if the discriminant is negative and the roots are complex. It is separate from the calculator, so you can ignore it completely if you only need the answer box.

The game is built around the same idea the calculator uses: you do not need to solve every root from scratch if you can quickly read the sign of b² − 4ac. That makes it a nice bridge between formula memorization and actual recognition. As the round continues, special waves change the mix of equations so you can practice repeated-root patterns, complex-root recognition, and rapid classification under light time pressure.

Score0
Time75.0s
Streak0
Lives3
Best0

Discriminant Sprint

Route each quadratic before it hits the solver gate

Objective: classify the equation by the sign of D = b² − 4ac. Use the left lane for two real roots, the center lane for a repeated root, and the right lane for complex roots.

Controls: tap or click the left, middle, or right side of the game area. Keyboard fallback: for two real roots, for repeated root, and for complex roots.

Survive 75 seconds or until you miss three equations. Every 20 seconds the pattern shifts, so watch for perfect-square pulses and complex storms.

Best score is saved on this device. This mini-game is optional and does not affect the calculator output above.

Embed this calculator

Copy and paste the HTML below to add the Quadratic Equation Solver | Find Roots, Discriminant, and Vertex from ax² + bx + c = 0 to your website.