Quadratic Formula Calculator

Solve quadratic equations ax² + bx + c = 0 using the quadratic formula. Shows real and complex roots.

ax² + bx + c = 0

Equation

x² - 5x + 6 = 0

Quick Examples

Two Real Roots

x₁

3

x₂

2

Discriminant (b²-4ac)1
Vertex(2.5, -0.25)
Parabola opensUpward
Step-by-stepx = (--5 ± √1.00) / 2

How to Use the Quadratic Formula Calculator

  1. Write the equation in standard form. Rearrange to ax² + bx + c = 0. Every term must be on one side. For 2x² = 5x - 3, rearrange to 2x² - 5x + 3 = 0, so a = 2, b = -5, c = 3.
  2. Identify a, b, and c. The coefficient of x² is a, the coefficient of x is b, and the constant term is c. Watch the signs: in x² - 5x + 6 = 0, b = -5 (negative) and c = +6.
  3. Enter the coefficients. The calculator fills in the discriminant, roots, vertex, and step-by-step solution. If the discriminant is negative, the roots are complex (no real solutions).

The discriminant (b² - 4ac) tells you the solution type before you even calculate: positive gives two real roots, zero gives one repeated root, negative gives complex roots with no x-intercepts on a graph.

Quadratic Formula and Methods

Standard form:     ax² + bx + c = 0

Quadratic formula: x = (-b ± √(b² - 4ac)) / (2a)

Discriminant:      D = b² - 4ac
D > 0: two distinct real roots
D = 0: one repeated real root (x = -b/2a)
D < 0: two complex conjugate roots

Vertex of parabola: (-b/2a, c - b²/4a)

Worked example: solve 2x² - 7x + 3 = 0

Identify coefficientsa = 2, b = -7, c = 3
Discriminant(-7)² - 4(2)(3) = 49 - 24 = 25
Square root√25 = 5
Root 1(-(-7) + 5) / (2×2) = 12/4 = 3
Root 2(-(-7) - 5) / (2×2) = 2/4 = 0.5
Verify x=32(9) - 7(3) + 3 = 18 - 21 + 3 = 0 ✓

Frequently Asked Questions

The quadratic formula solves any equation of the form ax² + bx + c = 0. The formula is x = (-b ± √(b² - 4ac)) / (2a). The ± symbol means two solutions: one with addition (+) and one with subtraction (-). These are the two x-intercepts (roots) of the parabola y = ax² + bx + c. The formula always produces the correct answer whether the roots are whole numbers, fractions, irrational, or complex.

Related Calculators