The quadratic equation solver on this page takes any equation in the form axΒ² + bx + c = 0 and instantly returns the discriminant, both roots (real or complex), the vertex of the parabola, the axis of symmetry, and β most importantly for students β the complete step-by-step working of the quadratic formula so you can see exactly how the answer was reached, not just what it is.
Arb Digital built this tool because most "quadratic calculators" online only spit out a final number with no explanation. That's fine if you already know the method and just need to double-check arithmetic, but it's useless if you're trying to learn how to factor, complete the square, or apply the quadratic formula for the first time. This solver shows its work every single time.
What This Quadratic Equation Solver Does
Given the three coefficients a, b, and c of a quadratic equation axΒ² + bx + c = 0, the tool computes:
- The discriminant, bΒ² β 4ac, and what it tells you about the roots before you solve anything further
- Both roots of the equation, using exact fractions when the numbers work out cleanly and decimal approximations otherwise
- Whether the roots are two distinct real numbers, one repeated real number, or two complex conjugates
- The vertex of the parabola y = axΒ² + bx + c, which is the highest or lowest point of the curve
- The axis of symmetry, the vertical line that splits the parabola into two mirror-image halves
- A full step-by-step derivation using the quadratic formula, written out the same way a teacher would on a whiteboard
It also gracefully handles the edge case where a = 0. In that situation the equation isn't quadratic at all anymore β it collapses into a linear equation bx + c = 0 β and the tool switches automatically to solving that instead of throwing an error or dividing by zero.
How to Use the Quadratic Equation Solver
- Identify a, b, and c. Write your equation in standard form axΒ² + bx + c = 0 first. For example, xΒ² β 5x + 6 = 0 has a = 1, b = β5, c = 6.
- Enter the three coefficients. Type each value into its own field β decimals and negative numbers are both fine.
- Click "Solve Equation." The tool calculates the discriminant, the roots, the vertex, and the axis of symmetry in one pass.
- Read the root type first. The headline result tells you immediately whether you're dealing with two real roots, one repeated root, or two complex roots β this matches what the sign of the discriminant predicts.
- Follow the step-by-step working underneath the input fields to see the exact substitution into the quadratic formula, the discriminant calculation, the square root, and the final division β the same sequence you'd be expected to show on a test.
- Check the vertex and axis of symmetry in the result grid if your assignment asks you to graph the parabola or find its minimum/maximum value.
The Quadratic Formula β How It's Calculated
Every quadratic equation axΒ² + bx + c = 0 (with a β 0) can be solved using the quadratic formula:
x = (βb Β± β(bΒ² β 4ac)) / (2a)
The expression under the square root, bΒ² β 4ac, is called the discriminant and it does the real work of classifying the answer before you even finish the arithmetic:
- If the discriminant is positive, its square root is a real number, so the Β± in the formula produces two different real roots.
- If the discriminant is exactly zero, the Β± produces the same value twice β a single repeated root, and the parabola just touches the x-axis at its vertex instead of crossing it.
- If the discriminant is negative, its square root isn't a real number, so the two roots become a pair of complex conjugates of the form p Β± qi, where i is the imaginary unit ββ1. Graphically, this means the parabola never touches the x-axis at all.
This formula and its derivation via completing the square are covered in detail by resources like Wolfram MathWorld and standard high-school algebra curricula, and it is one of the oldest continuously-used formulas in mathematics, with roots (no pun intended) going back to ancient Babylonian and Indian mathematicians.
The Vertex and Axis of Symmetry Explained
Every quadratic function graphs as a parabola β a U-shaped (or upside-down U) curve. The vertex is the single point where that curve turns around: the minimum point if a is positive (parabola opens upward) or the maximum point if a is negative (parabola opens downward). You can find the vertex's x-coordinate with the formula x = βb/(2a), and then find the y-coordinate by plugging that x value back into the original equation. The vertical line that passes straight through the vertex is called the axis of symmetry, and it always has the equation x = βb/(2a) β the parabola is a perfect mirror image on either side of this line. This is genuinely useful outside the classroom too: the vertex formula shows up in optimization problems like maximizing area for a fixed amount of fencing, or finding the peak height of a projectile modeled by a quadratic.
Why Some Roots Are Exact Fractions and Others Are Decimals
When the discriminant works out to be a perfect square (like 1, 4, 9, 16, 25...), the square root in the quadratic formula is a whole number, and the two roots often simplify to clean integers or simple fractions β this solver checks for that case and shows you the exact, reduced fraction whenever possible, alongside the decimal for convenience. When the discriminant is not a perfect square, the square root is an irrational number, and the roots can only be expressed exactly using the radical symbol (like (3 + β5)/2) or approximated as a rounded decimal. This tool shows both the symbolic exact form and a decimal rounded to four places so you can use whichever your assignment or context calls for.
Complex Roots: What p Β± qi Actually Means
When the discriminant is negative, the roots are complex numbers written as p Β± qi, where p is the real part (equal to βb/(2a)) and q is the coefficient of the imaginary part (equal to β|discriminant|/(2a)). These aren't "wrong" or "no solution" β they're valid answers in the complex number system, and they matter in fields like electrical engineering (AC circuit analysis), control theory, and signal processing. Graphically, a negative discriminant simply means the parabola never crosses the real x-axis, so there's no real x-intercept to find, but the algebra still produces a perfectly valid pair of complex conjugate solutions.
Factoring vs. the Quadratic Formula
Before reaching for the quadratic formula, many students first try factoring β rewriting axΒ² + bx + c as the product of two binomials, like (x β 2)(x β 3), and setting each factor equal to zero. Factoring is faster when it works, but it only works cleanly when the roots are rational numbers, which happens precisely when the discriminant is a perfect square. The quadratic formula, by contrast, always works, no exceptions β it solves every quadratic equation with real coefficients, whether the roots are whole numbers, fractions, irrational decimals, or complex numbers. A good habit is to glance at the equation and try factoring first if the numbers look friendly, then fall back on the formula (or this calculator) the moment factoring starts to feel like guesswork.
Completing the square is the third classic method, and it's actually where the quadratic formula comes from in the first place β you can derive the formula yourself by taking the general equation axΒ² + bx + c = 0, dividing through by a, moving the constant to the other side, adding (b/2a)Β² to both sides to create a perfect square trinomial, and then taking the square root of both sides. Working through that derivation once by hand is one of the best ways to understand why the formula looks the way it does, rather than just memorizing it.
Graphing the Parabola From Your Results
With the vertex, the axis of symmetry, and the roots all in hand, you already have almost everything needed to sketch an accurate graph by hand. Plot the vertex first, since it's the turning point of the curve. Draw the vertical axis-of-symmetry line through it. If the discriminant was positive, mark both real roots where the parabola crosses the x-axis β the curve should pass through them symmetrically around the axis of symmetry. If a is positive, the parabola opens upward and the vertex is the minimum point; if a is negative, it opens downward and the vertex is the maximum. Finally, plug in one or two extra x-values on either side of the vertex to get a sense of how quickly the curve rises or falls, and connect the points with a smooth U-shaped curve rather than straight line segments.
Arb Digital builds fast, high-converting websites and content β and free tools like this one to go with them. Explore the rest of our calculators below, or reach out if your business needs a site that works this hard.
Try the Slope Calculator All Free ToolsCommon Mistakes to Avoid
- Forgetting the negative sign on b. If your equation is xΒ² β 5x + 6 = 0, then b = β5, not 5 β dropping the sign is the single most common error students make with this formula.
- Applying the quadratic formula when a = 0. If a is zero, the equation isn't quadratic anymore, and the formula's 2a denominator becomes division by zero β solve it as a linear equation instead, which this tool does automatically.
- Only reporting one root. The Β± in the formula almost always means there are two answers to report, even when they look similar.
- Mixing up the vertex formula with a root. The vertex x-coordinate (βb/2a) is not a root of the equation unless the discriminant is zero β don't confuse "where the parabola turns" with "where it crosses zero."
- Rounding too early. If you need an exact answer, keep the square root symbolic until the very last step instead of rounding the discriminant's square root first.
Related Free Tools From Arb Digital
Pair this solver with our Scientific Calculator for any extra arithmetic, the Slope Calculator for linear equations, and the Pythagorean Theorem Calculator for right-triangle geometry. For everyday number problems, check out our Fraction Calculator and Ratio Calculator, or browse everything in our free online tools hub.
Frequently Asked Questions
The discriminant, bΒ² β 4ac, tells you the root type before you finish solving: positive means two real roots, zero means one repeated real root, and negative means two complex roots.
Yes. When a is 0 the equation is no longer quadratic, so the solver automatically switches to solving the resulting linear equation bx + c = 0 instead.
Complex roots appear when the discriminant is negative, meaning the parabola never crosses the x-axis; the roots take the form p Β± qi, where i represents the imaginary unit.
The vertex x-coordinate is βb/(2a), and the vertex y-coordinate is found by substituting that x-value back into the original equation axΒ² + bx + c.
Whenever the discriminant is a perfect square, the roots simplify to exact whole numbers or clean fractions, which the tool displays alongside the decimal; otherwise only an irrational decimal approximation exists.
No β it's designed to help you check your answer and understand each step, but you should still practice the quadratic formula by hand until you can do it independently.
This tool runs entirely in your browser using built-in JavaScript. Nothing you enter is uploaded, stored, or sent to any server.