A quadratic equation calculator solves a x squared plus b x plus c equals zero using the quadratic formula. Enter the three coefficients and it returns the roots, the discriminant, and the vertex. For x squared minus 5 x plus 6, the roots are x equals 2 and x equals 3.
Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.
Saved results (0)
How to Use the Quadratic Equation Calculator
- Write your equation in the form a x^2 + b x + c = 0.
- Enter the three coefficients a, b and c.
- Read the roots, whether real or complex.
- Check the discriminant and the vertex of the parabola.
Here is what each result means:
| Result | What it means |
|---|---|
| Roots | The values of x that make the equation zero. |
| Discriminant | b squared minus 4ac, which tells you the type of roots. |
| Vertex | The turning point of the parabola. |
What Is a Quadratic Equation?
A quadratic equation is a second-degree equation of the form a x^2 + b x + c = 0, where a is not zero. Its graph is a parabola, and the roots are the points where that parabola meets the x-axis. A quadratic has at most two roots, which may be two real numbers, one repeated real number, or a pair of complex numbers.
Quadratics appear across science and daily life: the path of a thrown ball, the area of a rectangle with a fixed perimeter, and many optimization problems all lead to one. Solving it means finding the x values that satisfy the equation, and the quadratic formula does that for every case.
How Does the Quadratic Formula Work?
The calculator uses the quadratic formula, which solves any quadratic directly from its coefficients.
- Compute the discriminant D = b^2 - 4ac.
- If D is positive there are two real roots; if zero, one repeated root; if negative, two complex roots.
- Substitute into the formula and simplify for each root.
For higher powers, the cube root calculator and other tools handle roots that a quadratic does not.
Quadratic Equation Example
Solve x^2 - 5x + 6 = 0, so a is 1, b is -5 and c is 6.
Calculation: the discriminant is (-5)^2 - 4(1)(6) = 25 - 24 = 1, which is positive. The roots are x = (5 +/- sqrt(1)) / 2, giving x = 3 and x = 2. The vertex sits at (2.5, -0.25), the lowest point of the parabola.
What the Discriminant Tells You
The sign of the discriminant b^2 - 4ac decides the number and type of roots before you solve.
| Discriminant | Roots | Graph |
|---|---|---|
| Positive | Two distinct real roots | Crosses the x-axis twice |
| Zero | One repeated real root | Touches the x-axis once |
| Negative | Two complex roots | Never meets the x-axis |
This single number is often all you need when a problem asks only whether real solutions exist.
Factoring vs the Quadratic Formula and Other Methods
The formula always works, but other methods can be quicker in special cases.
| Method | Best when |
|---|---|
| Factoring | The roots are simple whole numbers |
| Quadratic formula | Any equation, always works |
| Completing the square | You also need the vertex form |
| Graphing | You want a visual estimate |
This tool uses the formula, so it handles messy or complex roots that do not factor neatly.
What Affects the Roots
The Leading Coefficient A
It sets how wide the parabola is and which way it opens. A larger size makes a narrower curve.
The Discriminant
The combination b squared minus 4ac decides whether the roots are real, repeated or complex.
The Constant C
It is where the parabola crosses the y-axis and shifts the whole curve up or down.
When to Use a Quadratic Equation Calculator
Checking Homework
Confirm the roots you found by hand, including tricky complex answers.
Physics and Motion
Solve for the time a projectile lands, which often forms a quadratic.
Design and Area
Find a dimension when an area or product condition gives a quadratic.
Common Mistakes
1. Sign Errors on B and C
Move every term to one side first, then read the signs carefully into the formula.
2. Forgetting the Plus-or-minus
The square root gives two values. Missing one loses a root.
3. Dividing Only Part by 2a
The whole numerator, not just the root, is divided by 2a.
4. Ignoring Complex Roots
A negative discriminant still has solutions; they are complex, not nonexistent.
5. Treating a Linear Equation as Quadratic
If a is zero it is not a quadratic. Solve bx + c = 0 instead.
Accuracy and Limitations
The formula is exact; only the displayed decimals are rounded.
What it calculates accurately
- Real and complex roots
- The discriminant and root type
- The vertex of the parabola
What it does not do
- Solve higher-degree equations
- Show step-by-step factoring
- Give exact surd or fraction forms
- Graph the parabola visually
How We Solve Your Quadratic
Frequently Asked Questions
How do you solve a quadratic equation?
Put it in the form a x squared plus b x plus c equals zero, then apply the quadratic formula x equals minus b plus or minus the square root of b squared minus 4ac, all over 2a. This tool does that and returns both roots.
What is the discriminant?
It is b squared minus 4ac. If it is positive there are two real roots, if zero one repeated root, and if negative two complex roots. It tells you the type of solution before you solve.
Can a quadratic have no real solutions?
Yes. When the discriminant is negative, the parabola never crosses the x-axis, so there are no real roots. The two solutions are complex numbers instead.
What are complex roots?
When the discriminant is negative, the roots take the form of a real part plus or minus an imaginary part times i, where i is the square root of minus one. They come as a conjugate pair.
What if a equals zero?
Then it is not a quadratic but a linear equation, b x plus c equals zero, with a single root x equals minus c over b. The calculator handles this case for you.
What is the vertex of a quadratic?
It is the turning point of the parabola, at x equals minus b over 2a. The y value there is the minimum if a is positive or the maximum if a is negative.
Is factoring or the formula better?
Factoring is quick when the roots are simple whole numbers. The quadratic formula always works, including for messy or complex roots, which is why this tool uses it.
Why do my roots look slightly off?
Results are rounded to four decimals for display. A root that is really a whole number may show a tiny rounding difference in the last place.
Is my information saved?
No. The calculation runs in your browser and nothing you enter is stored or sent anywhere, unless you choose Save, which keeps the result only on this device.
Sources
- Quadratic equation (Wikipedia).
- Quadratic formula explained (Maths Is Fun).
- The discriminant (Maths Is Fun).
Related Guides
Related Calculators
Looking for more math tools?
Explore all math calculatorsThis calculator solves real and complex roots of a quadratic equation using the quadratic formula. Results are rounded for display, so a root that looks like a whole number may carry a tiny rounding difference in the last decimal. Spotted an error? Let us know.
Author
Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.




