calculator.onl
Categories50

Quadratic equation calculator

Find real roots, discriminant and vertex of y = ax² + bx + c.

A worked example

Lower the parabola by changing its constant term. Find the two new crossings. First real root · -1 → -3 / Second real root · 1 → 3.

First real root1Second real root2Discriminant1Distinct real roots2
Coefficient of x²; nonzero, from −1,000,000 to 1,000,000.

Coefficient of x, using at most six decimal places.

Constant term, using at most six decimal places.

Updates as you type

Use coefficients from −1,000,000 to 1,000,000 with at most six decimal places; a must be nonzero.

YOUR RESULT

First real root

1

Calculated from your inputs

Second real root2
Vertex x1.5
Vertex y-0.25
Discriminant1
Distinct real roots2
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

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

InputWhat it meansExample value
Quadratic coefficient aCoefficient of x²; nonzero, from −1,000,000 to 1,000,000.1
Linear coefficient bCoefficient of x, using at most six decimal places.-3
Constant cConstant term, using at most six decimal places.2

How the calculation works

  1. Calculate D = b² − 4ac using the exact six-decimal coefficient grid.
  2. D > 0 gives two real roots, D = 0 one repeated root, and D < 0 no real roots.
  3. The vertex is (−b/(2a), −D/(4a)); roots use a cancellation-resistant formula.
The formulaD = b² − 4ac; h = −b/(2a); k = −D/(4a); y = a(x − h)² + k

A 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 enter
Result for this example · First real root1

This 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.