What this calculator does
A quadratic equation has the form ax² + bx + c = 0, where a is not zero. Its solutions come from the quadratic formula, and the discriminant b² − 4ac tells you how many real solutions exist before you solve anything. This calculator applies the formula for any coefficients you enter, including decimals and negative numbers, then reports the vertex and axis of symmetry so you can see the shape of the parabola as well as where it meets the x-axis.
How to use it
- Enter the coefficients a, b, and c from ax² + bx + c = 0.
- Use a minus sign for negative coefficients, such as b = −5.
- Select Solve to see the roots, discriminant, vertex, and axis of symmetry.
- If a = 0, expect a linear result with a single solution.
How it works
Example calculations
Example 1: two real roots
For x² − 5x + 6 = 0, a = 1, b = −5, and c = 6. The discriminant is 25 − 24 = 1, which is positive, so there are two real roots. The formula gives (5 ± 1)/2, so x = 3 and x = 2. The vertex is at h = 2.5 and k = 6 − 6.25 = −0.25, and the axis of symmetry is x = 2.5. The parabola opens upward because a is positive, so the vertex is its lowest point.
Example 2: one repeated root
For 2x² + 4x + 2 = 0, a = 2, b = 4, and c = 2. The discriminant is 16 − 16 = 0, so the two roots collapse into one repeated root at x = −4/4 = −1. The expression factors as 2(x + 1)², and the vertex sits on the x-axis at (−1, 0).
Example 3: two complex roots
For x² + 1 = 0, a = 1, b = 0, and c = 1. The discriminant is 0 − 4 = −4, which is negative, so there are no real roots. The roots are x = ±i, since i² = −1. The parabola opens upward with its vertex at (0, 1) and never touches the x-axis.
What the result means
The discriminant is the fastest way to read a quadratic. A positive value means the parabola crosses the x-axis twice, so both roots are real and different. Zero means it just touches the axis at the vertex, which is why the two roots collapse into one repeated value. A negative value means the parabola never reaches the x-axis, and the two roots are a conjugate pair written with i. The vertex is the turning point: for a positive a it is the lowest point, and for a negative a the highest. Its x-coordinate, −b/(2a), is also the axis of symmetry, the vertical line that splits the parabola into mirror images. Together, the roots and the vertex give you enough to sketch the curve by hand, even when the roots are complex and the curve never crosses the axis.
Common mistakes
- Dropping the ± so only one root is reported.
- Dividing only the square root by 2a instead of the whole numerator.
- Losing a sign when b is negative and −b turns positive.
- Treating a = 0 as a quadratic and dividing by zero.
- Reporting complex roots as if they were real numbers on the x-axis.
Assumptions and limits
- Coefficients are real numbers, including decimals and negatives.
- The equation is already in standard form ax² + bx + c = 0.
- a = 0 is solved as a linear equation, not a quadratic.
- Complex roots are shown with i, where i² = −1.
- Results are rounded for display.
Frequently asked questions
What does a negative discriminant mean?
It means the parabola does not cross the x-axis, so the equation has no real roots. The two roots are complex numbers that involve i, and the calculator shows them in the a ± bi form.
What happens if a is zero?
The x² term vanishes, so the equation is linear: bx + c = 0. The calculator says so and solves x = −c/b. If b is also zero, there is no solution unless c is zero too, in which case every x works.
Why is there only one root when the discriminant is zero?
The parabola touches the x-axis at a single point, the vertex. The formula returns the same value twice, so it is called a repeated or double root.
How do I find the vertex without graphing?
Use h = −b/(2a), then substitute h back into the equation to get k, or use k = c − b²/(4a). The axis of symmetry is the line x = h.
Can I enter decimals or fractions?
Decimals work directly. For fractions, enter the decimal value, or multiply the whole equation by the denominator so every coefficient becomes a whole number.
Does the order of the roots matter?
No. The two roots form a set, so x = 2 and x = 3 is the same answer as x = 3 and x = 2. The order of display does not change the solution.
Sources
2026 update
How to use the professional output
This page is not just a formula box. The result is designed to be checked, compared, and taken away.
- Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
- A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
- Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.
The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.
Part of a decision center
Math Decision Center
See the companion tools, decision guides, and patterns that go with this calculator.
Go deeper
