A little context. A clearer answer.
When this calculator is useful
Find real roots, discriminant and vertex of y = ax² + bx + c. Enter your values and inspect the calculation details. For a related calculation, try Polynomial Long Division Calculator with Remainder.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Quadratic coefficient a | Coefficient of x²; nonzero, from −1,000,000 to 1,000,000. | 1 |
| Linear coefficient b | Coefficient of x, using at most six decimal places. | -3 |
| Constant c | Constant term, using at most six decimal places. | 2 |
How the calculation works
- Calculate D = b² − 4ac using the exact six-decimal coefficient grid.
- D > 0 gives two real roots, D = 0 one repeated root, and D < 0 no real roots.
- The vertex is (−b/(2a), −D/(4a)); roots use a cancellation-resistant formula.
D = b² − 4ac; h = −b/(2a); k = −D/(4a); y = a(x − h)² + kA worked example
Worked example: a = 1, b = −3, c = 2 gives D = 1, roots 1 and 2, and vertex (1.5, −0.25).
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
Requires a nonzero a and coefficients with at most six decimal places. Only real roots are returned. The plotted window is local to the vertex; extreme roots may require reading the table.
Frequently asked questions
Can a equal zero?
No. That would be a linear or constant equation, outside this quadratic tool.
What does a negative discriminant mean?
There are no real roots. The calculator still reports the vertex and discriminant.
Are two equal roots counted twice?
No. A repeated root is one distinct real root; the second output identifies the repetition.