🌐 EN

📈 Quadratic Formula Calculator

Enter three quadratic coefficients to find the discriminant and both equation roots.

Equation Format: ax² + bx + c = 0
Result
—
Discriminant (Δ)—
Root x₁—
Root x₂—

Inputs and checks

  • Enter coefficients a, b, and c for ax² + bx + c = 0; defaults are 1, -5, and 6.
  • Edit any coefficient to recalculate; the page does not accept a full symbolic equation.
  • Coefficient a must be nonzero. If a=0, the calculator does not switch to a linear-equation solver.
  • Signed and decimal coefficients are accepted; output numbers use four fixed decimal places.

Reading the result

  • The discriminant Δ=b²−4ac determines whether there are two distinct real roots, one repeated root, or two complex roots.
  • The roots use (-b ± √Δ)/(2a); complex answers display an imaginary component marked i.
  • A parabola chart may appear, but it is optional and calculation precision is limited by floating-point arithmetic.
  • Results display exactly 4 fractional digits, while decimal and grouping separators may vary with your browser's locale.
  • When a is negative, complex-root signs may appear as + - or - -; interpret these displayed signs carefully.

Examples

Solving x² - 5x + 6 = 0

Input
a: 1; b: -5; c: 6
Result
Discriminant: 1.0000; type: Two Real Roots; x₁: 3.0000; x₂: 2.0000
How to check it
(-5)² - 4×1×6 = 1; x = (5 ± 1)/2, giving 3 and 2.

Solving x² - 2x + 5 = 0

Input
a: 1; b: -2; c: 5
Result
Discriminant: -16.0000; type: Two Complex Roots; x₁: 1.0000 + 2.0000i; x₂: 1.0000 - 2.0000i
How to check it
(-2)² - 4×1×5 = -16; x = (2 ± 4i)/2 = 1 ± 2i.

Frequently asked questions

What does a negative discriminant mean?
There are no real roots; the calculator displays two conjugate complex roots.
Can a equal zero?
No. The page displays an error rather than solving the resulting linear equation.
Why are the roots identical when Δ=0?
The plus and minus square-root terms both become zero, giving a repeated root.