Quadratic Formula Calculator
Find real or complex roots with steps and a graph in your browser.
Enter the three coefficients to solve the quadratic.
Example · x² − 5x + 6 = 0
Real roots
x² − 5x + 6 = 0 has two real roots.
- Discriminant
- 1
- Vertex
- (2.5, -0.25)
Calculation steps
- D = (−5)² − 4 × 1 × 6 = 1.
- Substitute into x = (−b ± √D) ÷ (2a) to get (5 ± 1) ÷ 2.
- The roots are 2 and 3.
Processed on this device — nothing is uploaded
What you can do here
- Real and complex roots
- Discriminant and vertex
- Parabola graph
- Quadratic formula steps
How do I solve a quadratic equation with the quadratic formula?
The quadratic formula calculator solves ax² + bx + c = 0 using three coefficients. The discriminant b² − 4ac determines whether the equation has two distinct real roots, one repeated real root or a complex pair. For x² − 5x + 6 = 0, the roots are 2 and 3. Calculation runs in your browser.
The result includes the parabola’s vertex, a graph and the steps for finding the roots.
Key facts
- Price
- Free
- Sign-up
- None
- Upload
- None — runs on your device
- Limits
- The coefficient of x² must be nonzero · Up to 15 significant digits per coefficient
- Works with
- Three real coefficients a, b and c
- Output
- Real or complex roots, discriminant, vertex, parabola and working
- Updated
How to solve with the quadratic formula
- Put the equation in standard form
Move every term to one side and write it as ax² + bx + c = 0.
- Enter the coefficients
Enter a, b and c with their signs. The coefficient a must be nonzero. Enter zero for a missing x or constant term.
- Read the roots and graph
Calculate the roots, check the discriminant and open Calculation steps to see the substitutions.
The quadratic formula and a worked example
Start with ax² + bx + c = 0 and a ≠ 0. The discriminant D = b² − 4ac tells you the kind of roots. D > 0 gives two real roots, D = 0 gives a repeated root and D < 0 gives two complex conjugate roots. The quadratic formula is x = (−b ± √D) ÷ (2a).
For x² − 5x + 6 = 0, enter a = 1, b = −5 and c = 6. The discriminant is (−5)² − 4 × 1 × 6 = 1. Substitute to get (5 ± 1) ÷ 2, which gives x = 2 and x = 3. The graph crosses the x-axis at those two points.
The vertex’s x-coordinate is −b ÷ (2a). Substitute it into the polynomial to find the y-coordinate. Here the vertex is (2.5, −0.25). For a negative discriminant, use √D = i√(−D), where i² = −1. Numeric results are rounded for display when needed.
Frequently asked questions
What does a negative quadratic discriminant mean?
It gives two complex conjugate roots. Their real parts agree and their imaginary parts have opposite signs. The parabola stays on one side of the x-axis, so the graph has no real x-intercepts.
What if the discriminant equals exactly zero?
The equation has a repeated real root. In the formula the plus and minus give the same value, −b ÷ (2a). That root is where the vertex touches the x-axis.
Can the first coefficient a be zero?
No. A quadratic equation requires a nonzero x² coefficient. With a = 0, the equation becomes linear when b is nonzero, so the quadratic formula’s denominator would be zero.
How do I enter a quadratic with a missing middle term?
Enter 0 for b. For example, x² − 9 = 0 has a = 1, b = 0 and c = −9. The calculator gives the two roots −3 and 3.
Related tools
About this tool
Made by ZirkoMirko. Last updated .
Check it yourself in your browser’s Network panel while using the tool. How we handle your data.