Quadratic Calculator
Use this quadratic calculator to solve equations in the form ax^2 + bx + c = 0. Enter the coefficients, load a guided example if you want a quick start, and review the discriminant, formula substitution, and final roots in one clean workflow.
All calculations use standard published formulas. Results are for informational use only.
Enter the number in front of x^2. It cannot be 0.
Enter the number in front of x, including any negative sign.
Enter the constant term from the standard form equation.
x^2 - 3x + 2 = 0 has two real roots because D = 1 is positive. The solutions are x1 = 2, x2 = 1. This means the parabola crosses the x-axis twice, so you should expect two distinct intercepts on a graph.
Step-by-step solution
Step-by-step solution
The quadratic formula expects the equation to be arranged as ax^2 + bx + c = 0.
These three numbers are the only inputs used by the discriminant and the quadratic formula.
The discriminant is the part under the square root, so it tells you what kind of roots to expect before you finish the formula.
Here D = 1, so this equation has two real roots.
Now replace b, D, and 2a with the values from your equation.
Evaluate the plus branch for x1 and the minus branch for x2, then simplify each fraction.
Formula
Formula and substitution
The quadratic formula solves every genuine quadratic equation, even when factoring is awkward or impossible. The key idea is to compute the discriminant first, then evaluate the plus branch and the minus branch without dropping signs.
If your equation is not already in the form ax^2 + bx + c = 0, rewrite it first. That one habit prevents most beginner mistakes and keeps the substitution step accurate.
| Part | Expression | Why it matters |
|---|---|---|
| Standard form | ax^2 + bx + c = 0 | This is the format you should enter into the calculator. |
| Discriminant | D = b^2 - 4ac | Use D to classify the roots before finishing the calculation. |
| Root 1 | x1 = (-b + sqrt(D)) / (2a) | The plus branch of the quadratic formula. |
| Root 2 | x2 = (-b - sqrt(D)) / (2a) | The minus branch of the quadratic formula. |
Substitution for your current equation
D = (-3)^2 - 4(1)(2)
D = 9 - 8
D = 1
| Discriminant | Meaning | Interpretation |
|---|---|---|
| D > 0 | Two distinct real solutions | The parabola crosses the x-axis twice. |
| D = 0 | One repeated real solution | The parabola touches the x-axis once at the vertex. |
| D < 0 | Two complex solutions | The parabola does not cross the x-axis in the real plane. |
Examples
Examples
These worked examples show the three outcome patterns users care about most: two real roots, one repeated real root, and two complex roots. The current result snapshot below updates from your own inputs, so you can compare your equation with the reference cases at a glance.
| Equation | Discriminant | Type | Result |
|---|---|---|---|
| x^2 - 5x + 6 = 0 | 1 | Two real roots | x1 = 3, x2 = 2 |
| x^2 - 6x + 9 = 0 | 0 | One repeated real root | x = 3 |
| x^2 + 4x + 13 = 0 | -36 | Two complex roots | x1 = -2 + 3i, x2 = -2 - 3i |
Explanation
Explanation and learning guide
Introduction
A quadratic calculator is more useful when it teaches as well as calculates. Students, teachers, exam candidates, and working professionals often need more than a quick pair of numbers. They need to know whether the equation has two real roots, one repeated root, or a complex pair, and they need to understand how the discriminant drives that outcome. This page is built to do both jobs: solve the equation instantly and explain why the answer makes sense.
Unlike thin calculator pages that show only a final value, this tool treats the entire workflow as part of the result. You can read the equation in standard form, confirm the coefficients, follow the quadratic formula substitution, and compare the final roots with the discriminant classification. That makes the page useful for homework checks, self-study, classroom review, and fast algebra verification when you want confidence rather than guesswork.
What Is a Quadratic Equation
A quadratic equation is any equation that can be written as x^2 with a non-zero leading coefficient, usually in the form ax^2 + bx + c = 0. The highest power of x is 2, which is what separates quadratics from linear equations and higher-degree polynomials. In graph form, a quadratic produces a parabola. Depending on the coefficients, that parabola may open upward or downward and may cross the x-axis twice, once, or not at all.
That is why the standard form quadratic equation matters so much. Once the equation is arranged as ax^2 + bx + c = 0, every part of the solving process becomes systematic. The coefficient a controls the curvature and direction of the parabola, b affects its horizontal placement, and c gives the y-intercept. If those values are clear, the discriminant and the final solutions are straightforward to compute and much easier to interpret.
Formula and Discriminant
The most dependable universal method is the quadratic formula: x1 = (-b + sqrt(D)) / (2a) and x2 = (-b - sqrt(D)) / (2a), where D = b^2 - 4ac. That is the reason many learners search for a quadratic formula calculator when factoring feels uncertain. The formula works even when the roots are irrational, repeated, or complex. If the equation is truly quadratic, this approach will always produce the correct solution set.
The discriminant calculator is the fastest way to understand the character of the answer before you compute the final numbers. A positive D means two distinct real roots, zero means one repeated real root, and a negative value means a complex conjugate pair. This simple classification saves time, checks your expectations, and helps you connect algebraic steps to the shape of the underlying parabola.
How To Use the Calculator
If you are learning how to solve quadratic equations, keep the process disciplined. First enter the coefficient of x^2 into a, the coefficient of x into b, and the constant into c. Make sure a is not zero. As soon as all three inputs are valid, the page computes D = b^2 - 4ac, identifies the root type, and shows the exact substitution path. Because the solution updates instantly, the tool is well suited to quick experimentation with different equations.
The step-by-step block is especially useful when you want quadratic equations with steps. Instead of compressing the work into a single line, the page breaks the solution into equation setup, coefficient identification, formula selection, discriminant calculation, and final evaluation of x1 and x2. That is the format most learners need when they are trying to understand why the result changes after a single coefficient is edited.
Examples and Interpretation
Good quadratic equation examples show more than a neat textbook case. An equation such as x^2 - 5x + 6 = 0 has two real roots because D is positive, while x^2 - 6x + 9 = 0 has only one repeated root because D equals zero. A third example such as x^2 + 4x + 13 = 0 shows why negative discriminants matter: the equation still has solutions, but they live in the complex number system rather than on the real x-axis.
This variety is important because many users assume every quadratic should factor cleanly into integers. In reality, some equations factor nicely, some reduce to a double root, and others can only be expressed neatly through radicals or complex numbers. Seeing these patterns side by side helps you read the result with more confidence and understand what the parabola is doing without having to graph it separately.
Types of Roots
The types of roots in quadratic equation are not just a textbook classification. They tell you how the equation behaves. Two real roots mean the parabola crosses the x-axis twice. One repeated real root means it touches the x-axis at the vertex and turns around. Two complex roots mean the parabola does not cross the x-axis in the real plane. Once you know this relationship, the discriminant becomes more than a formula; it becomes a quick structural summary of the equation.
That connection is especially helpful when you are checking work under time pressure. If the discriminant is clearly negative, you know not to expect integer factors. If it is zero, you know both branches of the formula should match. If it is positive but not a perfect square, you know the answer will likely stay in radical or decimal form. Reading the equation that way helps you avoid preventable mistakes and makes the final answer easier to verify.
Factoring Versus the Formula
One of the most common algebra decisions is factoring vs quadratic formula. Factoring is fast when the numbers are cooperative, especially in introductory examples with small integers. But factoring is a pattern-recognition method, not a guaranteed universal method. The quadratic formula is slower by hand, yet it works every time and removes the guesswork. That makes it the safer default when you want accuracy on unfamiliar equations.
The smartest habit is to recognize both tools and choose the one that fits the equation in front of you. If a quadratic factors immediately, use that path. If it does not, move to the formula without hesitation. This calculator is designed around that exact workflow: it gives you the dependable formula-based solution while still helping you understand the algebra behind the answer.
Frequently Asked Questions
How does this quadratic calculator solve equations instantly?
This quadratic calculator reads the coefficients a, b, and c from the standard equation ax^2 + bx + c = 0, computes the discriminant, and then applies the quadratic formula. Because the calculation only depends on those three values, the result updates immediately as you type. The page also explains each step so you can see the structure behind the answer rather than treating the tool as a black box.
When should I use a quadratic formula calculator?
Use a quadratic formula calculator whenever the equation is already in standard form or when factoring is slow, inconvenient, or impossible. The quadratic formula works for every quadratic equation, including ones with messy decimals, irrational roots, and complex roots. Factoring is faster when the numbers are friendly, but the formula is the reliable universal method when you need a consistent process.
What does the discriminant calculator tell me?
The discriminant formula is D = b^2 - 4ac. It classifies the answer before you finish the entire calculation. If D is greater than 0, the equation has two real roots. If D equals 0, both solutions collapse into one repeated root. If D is less than 0, the roots are complex. That is why teachers and textbooks focus on the discriminant before the final substitution step.
Why are there sometimes two roots of quadratic equation?
A quadratic graph is a parabola, and a parabola can cross the x-axis in two places, touch it once, or never cross it in the real number system. Those geometric possibilities correspond to two real roots, one repeated real root, or two complex roots. The two roots come from the plus and minus branches of the quadratic formula, which is why the formula naturally produces a pair of answers when D is positive.
Can this tool show quadratic equations with steps for decimals and negative coefficients?
Yes. The step generator does not depend on whole numbers. It will still show the equation, identify a, b, and c, calculate D = b^2 - 4ac, and then evaluate the final roots even when the coefficients are decimals or negatives. The formatting stays readable by using plain text expressions such as x^2 and sqrt(), which makes the walkthrough easier to follow on mobile and desktop.
What is a standard form quadratic equation and why does it matter?
A standard form quadratic equation is written as ax^2 + bx + c = 0. This format matters because the coefficients line up exactly with the quadratic formula and the discriminant. If an equation starts in another form, such as vertex form or factored form, the safest first step is to rewrite it in standard form so the coefficient positions are clear and the substitution step stays accurate.
How should I interpret results from a complex roots calculator?
When the discriminant is negative, the solutions include i, the imaginary unit. That means the parabola does not cross the x-axis in the real plane, but the equation still has valid algebraic solutions in the complex number system. Complex roots always come as a conjugate pair such as -2 + 3i and -2 - 3i. Seeing that pair is a sign that your equation is still solved correctly even though there are no real intercepts.