Mathematics
Quadratic equation calculator
Solve a quadratic equation ax² + bx + c = 0 for real roots using the discriminant, and find the vertex of the parabola y = ax² + bx + c.
Also available for Germany, in German
Also available for Poland, in Polish (dobrykalkulator.pl)
Enter a number as you would write it, for example 1,250, −2.5 or 1e3. Downloads keep your entries and results; nothing is stored or sent.
Result
Formula / calculation:
If a = 0, the equation is linear. If a = b = 0, c = 0 gives all real numbers and c ≠ 0 gives no solution. Negative discriminants have no real roots; complex roots and graphs are outside this tool. Coefficients: at most six decimal places, absolute value up to 1,000,000. Zero is allowed. Inputs use a decimal point without thousands separators. Results are approximate; standard display uses up to 12 significant digits.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
For nonzero a, the discriminant b² − 4ac determines the number of real roots. The vertex has x = −b/(2a).
Worked example
For a = 1, b = −3, c = 2, the roots are 1 and 2; the vertex is (1.5, −0.25).
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- a
- 1
- b
- -3
- c
- 2
- Decimal places (0–12)
- 6
Result
- Discriminant Δ
- 1
- Vertex x
- 1.5
- Vertex y
- -0.25
- Smaller real root
- 1
- Larger real root
- 2
Frequently asked questions
How do I solve a quadratic equation?
Enter the coefficients a, b and c of ax² + bx + c = 0. The calculator finds the real roots and the vertex of y = ax² + bx + c.
What is the discriminant and why does it matter?
For nonzero a, the discriminant b² − 4ac determines the number of real roots. A negative discriminant means no real roots.
How do I find the vertex of a parabola?
The vertex has x = −b/(2a). For a = 1, b = −3, c = 2, the vertex is (1.5, −0.25).
What happens if a is zero?
If a = 0, the equation is linear. If a = b = 0, then c = 0 gives all real numbers and c ≠ 0 gives no solution.
Does the calculator give complex roots?
No. Complex roots and graphs are outside this tool, which solves over the real numbers.
What are the input limits for the coefficients?
Coefficients can have at most six decimal places and an absolute value up to 1,000,000. Zero is allowed.
What are the roots of x² − 3x + 2?
For a = 1, b = −3, c = 2, the roots are 1 and 2.