Quadratic Formula Calculator
Solve any quadratic equation ax² + bx + c = 0 and see every step: the discriminant, substitution into the quadratic formula, and real or complex roots with the vertex and factored form.
Tell us more, and we'll get back to you.
Contact UsAbout Quadratic Formula Calculator
Practical context, assumptions, examples, and next steps for using the result well.What a quadratic formula calculator does
A quadratic formula calculator solves any equation that can be written in the standard form ax² + bx + c = 0. Quadratic equations show up across algebra, physics, and finance: they describe the path of a thrown ball, the area of a rectangle with a fixed perimeter, or the break-even point of a business. Whenever a relationship squares a variable, you eventually reach a quadratic, and the quadratic formula solves every one of them.
This calculator does more than print an answer. It shows the whole method: it identifies the coefficients you entered, substitutes them into the quadratic formula, computes the discriminant, classifies the roots as two real, one repeated, or two complex solutions, and then finishes the arithmetic to produce the exact roots. Each line is labeled so you can follow the logic, check your homework, or learn the procedure rather than just copying a number. The vertex, axis of symmetry, and factored form are reported alongside the roots to give a complete picture of the parabola.
Key idea: every quadratic with real coefficients has exactly two roots when you count complex numbers and repeated roots. The discriminant tells you which of those three cases you are in before you finish solving.
The formula and the coefficients
The quadratic formula gives the solutions of ax² + bx + c = 0 directly from its coefficients:
Where:
- a is the coefficient of the x² term and must not be zero. If a is zero the x² term vanishes and the equation is linear.
- b is the coefficient of the x term. It can be zero, positive, or negative.
- c is the constant term, the part with no variable.
- ± means you evaluate the formula twice, once with a plus sign and once with a minus sign, to produce the two roots.
The hardest part of using the formula is usually identifying the coefficients correctly, especially the signs. Always rearrange the equation so that one side equals zero before reading off a, b, and c. For example, 3x² = 2x − 5 must first become 3x² − 2x + 5 = 0, giving a = 3, b = −2, and c = 5. A missing term means the coefficient is zero: in x² − 9 = 0 the b term is absent, so b = 0.
The quadratic formula is derived by completing the square on the general equation, which is why it works for every quadratic without exception. Once you trust the derivation, you can treat the formula as a reliable machine: feed in any a, b, and c, and the correct roots come out. If you need to brush up on squaring and powers first, the exponent calculator is a helpful companion.
Reading the discriminant
The expression under the square root, b² − 4ac, is called the discriminant and is often written with the Greek letter delta (Δ). Its sign alone tells you how many real solutions the equation has and what kind of numbers they will be, which is why experienced problem-solvers calculate it first.
Δ > 0
Two distinct real roots. The parabola crosses the x-axis at two separate points. The square root is a real number, so the ± sign produces two different answers.
Δ = 0
One repeated real root. The parabola just touches the x-axis at its vertex. The square root is zero, so the plus and minus cases collapse into a single value, x = −b / 2a.
Δ < 0
Two complex-conjugate roots. The parabola never touches the x-axis. The square root of a negative number introduces the imaginary unit i, so the answers take the form p ± qi.
Because the discriminant is so informative, this calculator reports it explicitly and explains which case applies. A negative discriminant is not an error; it simply means the real number line has no solution and you must move into the complex numbers, where the equation still has two roots that are mirror images of each other across the real axis.
Solving a quadratic step by step
Following a consistent sequence makes quadratic equations approachable, even when the numbers are messy. Here is the exact procedure the calculator carries out and that you can reproduce by hand:
- Write the equation in standard form. Move every term to one side so the other side is zero, giving ax² + bx + c = 0.
- Identify a, b, and c. Read the coefficients carefully, including their signs, and set any missing term to zero.
- Substitute into the formula. Replace a, b, and c in x = (−b ± √(b² − 4ac)) / 2a, using brackets to keep negative signs intact.
- Compute the discriminant. Evaluate b² − 4ac first. Its sign tells you whether to expect two real roots, one repeated root, or a complex pair.
- Take the square root. If the discriminant is positive or zero, take its real square root. If it is negative, take the square root of its absolute value and attach the imaginary unit i.
- Evaluate both roots. Apply the plus sign and then the minus sign, dividing each result by 2a, to obtain the two solutions.
- Check your answers. Substitute each root back into the original equation; a correct root makes the left side equal zero.
The calculator displays every one of these steps with the actual numbers filled in, so you can compare your own working line by line and find exactly where a slip occurred.
Worked examples
Three short examples cover each discriminant case so you can see how the same procedure handles very different outcomes.
Example 1: Two real roots
Solve x² − 5x + 6 = 0. Here a = 1, b = −5, c = 6. The discriminant is (−5)² − 4·1·6 = 25 − 24 = 1, which is positive. Its square root is 1, so x = (5 ± 1) / 2, giving x = 3 and x = 2. You can confirm by factoring: (x − 2)(x − 3) = 0.
Example 2: One repeated root
Solve x² + 4x + 4 = 0. Here a = 1, b = 4, c = 4. The discriminant is 4² − 4·1·4 = 16 − 16 = 0, so there is a single repeated root at x = −b / 2a = −4 / 2 = −2. The factored form is the perfect square (x + 2)² = 0.
Example 3: Complex roots
Solve x² + 2x + 5 = 0. Here a = 1, b = 2, c = 5. The discriminant is 2² − 4·1·5 = 4 − 20 = −16, which is negative. The square root of −16 is 4i, so x = (−2 ± 4i) / 2 = −1 ± 2i. The two complex-conjugate roots are −1 + 2i and −1 − 2i.
Notice that the steps never change. Only the sign of the discriminant decides whether the answers are integers, a single value, irrational surds, or complex numbers. To express very large or very small roots cleanly, the scientific notation calculator can help.
Vertex, axis of symmetry, and factored form
Solving for the roots is only part of understanding a quadratic. The graph of y = ax² + bx + c is a parabola, and three additional pieces of information describe its shape and position.
- Vertex. The turning point sits at x = −b / 2a, and substituting that value back into the equation gives its y-coordinate. The parabola opens upward when a is positive and downward when a is negative, so the vertex is the minimum or maximum of the function.
- Axis of symmetry. The vertical line x = −b / 2a splits the parabola into two mirror-image halves. When the roots are real, they sit at equal distances on either side of this line, which is a quick way to check your solutions.
- Factored form. When the roots r₁ and r₂ are real, the quadratic can be written as a(x − r₁)(x − r₂). A repeated root gives a perfect square a(x − r)². This form makes the x-intercepts obvious and is useful for sketching and for simplifying larger expressions.
The calculator reports all three so you can move directly from solving the equation to graphing or analyzing it. If your work involves comparing proportional relationships rather than parabolas, the ratio calculator and fraction calculator are useful companions for the surrounding algebra.
Common mistakes and how to avoid them
Most quadratic errors are arithmetic slips rather than conceptual misunderstandings. Watching for these recurring traps will keep your answers reliable.
- Sign errors on b. The formula uses −b, so a negative b becomes positive. For b = −5 the term −b is +5. Wrapping the value in brackets, −(−5), prevents this very common mistake.
- Forgetting to set the equation to zero. The coefficients are only valid once the equation is in standard form. Reading a, b, and c before moving every term to one side gives wrong numbers.
- Mishandling a missing term. An absent x or constant term means that coefficient is zero, not one. In x² − 9 = 0, b is 0, so the roots are simply ±3.
- Dividing only part of the numerator by 2a. The entire expression −b ± √(b² − 4ac) is divided by 2a, not just one piece of it.
- Treating a negative discriminant as no solution. A negative discriminant means there are no real roots, but there are still two complex roots. Do not stop early; switch to complex numbers.
- Letting a equal zero. If a is zero the equation is not quadratic and dividing by 2a fails. Solve bx + c = 0 directly instead.
By entering your coefficients above and comparing each labeled step with your own working, you can spot exactly where any of these errors crept in and build the confidence to solve quadratics quickly and correctly.
Frequently Asked Questions
What is the quadratic formula?
The quadratic formula solves any equation of the form ax² + bx + c = 0, as long as a is not zero. It states that x = (−b ± √(b² − 4ac)) / 2a. The plus-or-minus sign produces the two solutions, and the expression under the square root, b² − 4ac, is called the discriminant. This calculator plugs your coefficients into that formula and shows every substitution along the way.
How do I find the roots of a quadratic equation with steps?
First write the equation in standard form and identify a, b, and c. Substitute those values into x = (−b ± √(b² − 4ac)) / 2a, calculate the discriminant b² − 4ac, take its square root, and then evaluate the two values created by the ± sign. The calculator above performs each of these steps for you and labels them so you can follow or check your own work.
What does the discriminant tell you?
The discriminant Δ = b² − 4ac reveals how many real solutions a quadratic has before you finish solving it. If Δ is positive there are two distinct real roots, if Δ equals zero there is one repeated real root, and if Δ is negative there are two complex-conjugate roots and the parabola never touches the x-axis. The sign of the discriminant is the quickest way to classify a quadratic.
Can the quadratic formula give complex or imaginary roots?
Yes. When the discriminant is negative, the square root of a negative number introduces the imaginary unit i, where i² = −1. The two solutions then appear as a complex-conjugate pair, written as p ± qi. This calculator handles that case automatically: it reports the real part and the imaginary part instead of returning an error or NaN.
Why can't the coefficient a be zero?
If a equals zero, the x² term disappears and the equation reduces to bx + c = 0, which is linear rather than quadratic. The quadratic formula also divides by 2a, so a value of zero would mean dividing by zero. For that reason the calculator asks you to enter a non-zero coefficient for a; for linear equations you only need to solve bx + c = 0 directly.
What is the vertex and how is it related to the roots?
The vertex is the turning point of the parabola y = ax² + bx + c, located at x = −b / 2a. Its x-coordinate is also the axis of symmetry, which sits exactly halfway between the two roots when they are real. Knowing the vertex helps you sketch the graph and understand whether the parabola opens upward (a > 0) or downward (a < 0), and whether it crosses, touches, or misses the x-axis.