Quadratic Formula Calculator
With the default inputs, the roots comes to x₁ = 3 and x₂ = 2.
Result
Exact decimal arithmetic
The formula
x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant is Δ = b² − 4ac. The vertex of the parabola is at x = −b ÷ 2a, with y = c − b² ÷ 4a.
Worked example
x² − 5x + 6 = 0: Δ = 25 − 24 = 1, so x = (5 ± 1) ÷ 2 gives x₁ = 3 and x₂ = 2. The vertex is at (2.5, −0.25). For 2x² + 2x + 5 the discriminant is −36, so the roots are −0.5 ± 1.5i.
About this calculator
A quadratic equation has the form ax² + bx + c = 0 with a not equal to zero. Its roots come from the quadratic formula, and the part under the square root, the discriminant, tells you what to expect: positive gives two real roots, zero gives one repeated root and negative gives a pair of complex roots. Enter the three coefficients to get the roots, the discriminant, the type of solution and the vertex of the parabola y = ax² + bx + c. Worked scenarios, each run through the same calculator: 8x² + -18x + 27 gives roots x = 1.125 ± 1.4524i, type of roots Two complex roots; 2x² + -14x + -17 gives roots x₁ = 8.0552 and x₂ = -1.0552, type of roots Two real roots; 8x² + -4x + 8 gives roots x = 0.25 ± 0.9682i, type of roots Two complex roots; 9x² + -19x + 22 gives roots x = 1.0556 ± 1.1534i, type of roots Two complex roots; 5x² + -7x + 21 gives roots x = 0.7 ± 1.9261i, type of roots Two complex roots; 8x² + 8x + -16 gives roots x₁ = 1 and x₂ = -2, type of roots Two real roots; 7x² + 13x + -27 gives roots x₁ = 1.2438 and x₂ = -3.101, type of roots Two real roots; 4x² + -17x + -5 gives roots x₁ = 4.5262 and x₂ = -0.2762, type of roots Two real roots; 5x² + -12x + -10 gives roots x₁ = 3.0547 and x₂ = -0.6547, type of roots Two real roots; 3x² + 11x + -21 gives roots x₁ = 1.3855 and x₂ = -5.0522, type of roots Two real roots; 6x² + -13x + 0 gives roots x₁ = 2.1667 and x₂ = 0, type of roots Two real roots; 8x² + -21x + 7 gives roots x₁ = 2.2332 and x₂ = 0.3918, type of roots Two real roots.
Sources and method
Every number is worked out with exact decimal arithmetic, not floating point, and rounded only when it is shown.
Sources
- 9.3 Solve Quadratic Equations Using the Quadratic Formula (Intermediate Algebra 2e) · OpenStax, Rice University, checked . The quadratic formula for ax^2 + bx + c = 0 with a not equal to 0, and the discriminant b^2 - 4ac: positive gives 2 real solutions, zero gives 1 real solution, negative gives 2 complex solutions. The vertex output is not covered by this page.
Frequently asked questions
What if a is zero?
Then the equation is linear, not quadratic, and has one solution x = −c ÷ b.
What does a negative discriminant mean?
The parabola never crosses the x-axis, so there are no real roots; the two complex roots are conjugates of each other.
Can I check the roots?
Their sum is −b ÷ a and their product is c ÷ a. Here 3 + 2 = 5 and 3 × 2 = 6.