Quadratic Equation Calculator

Solve any quadratic equation with AI-powered step-by-step solutions

Drag & drop or click to add images or PDF

Math Input
x^2+5x+6=0
2x^2-3x-2=0
x^2-4=0
x^2+2x+1=0

What is a Quadratic Equation?

A quadratic equation is a second-degree polynomial equation in the form:

ax2+bx+c=0ax^2 + bx + c = 0

where aa, bb, and cc are constants and a0a \neq 0.

The graph of a quadratic equation is a parabola — a U-shaped curve that opens upward when a>0a > 0 and downward when a<0a < 0. The solutions (also called roots or zeros) are the x-values where the parabola crosses the x-axis.

How to Solve a Quadratic Equation

There are four main methods:

1. Quadratic Formula

The most universal method. For ax2+bx+c=0ax^2 + bx + c = 0:

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

The discriminant Δ=b24ac\Delta = b^2 - 4ac determines the number of solutions:

  • Δ>0\Delta > 0: two distinct real roots
  • Δ=0\Delta = 0: one repeated real root
  • Δ<0\Delta < 0: two complex conjugate roots

2. Factoring

If the quadratic can be expressed as (xr1)(xr2)=0(x - r_1)(x - r_2) = 0, the roots are r1r_1 and r2r_2.

Example: x2+5x+6=(x+2)(x+3)=0x^2 + 5x + 6 = (x+2)(x+3) = 0x=2x = -2 or x=3x = -3

3. Completing the Square

Rewrite ax2+bx+c=0ax^2 + bx + c = 0 into (x+p)2=q(x + p)^2 = q form, then solve by taking square roots.

4. Graphing

Plot y=ax2+bx+cy = ax^2 + bx + c and find the x-intercepts.

MethodBest When
Quadratic FormulaAlways works; best for complex coefficients
FactoringCoefficients are small integers
Completing the SquareLeading coefficient is 1
GraphingVisual estimation

Common Mistakes to Avoid

  • Forgetting that a0a \neq 0: If a=0a = 0, it becomes a linear equation.
  • Sign errors in the formula: Be careful with b-b — if bb is negative, b-b is positive.
  • Forgetting the ±\pm: The formula gives two solutions. Don't drop one.
  • Not simplifying radicals: Always simplify b24ac\sqrt{b^2 - 4ac} as much as possible.
  • Division errors: Remember to divide the entire numerator by 2a2a.

Examples

Step 1: Find two numbers that multiply to 66 and add to 55: those are 22 and 33.
Step 2: Factor: x2+5x+6=(x+2)(x+3)=0x^2 + 5x + 6 = (x + 2)(x + 3) = 0
Step 3: Set each factor to zero: x+2=0x + 2 = 0 or x+3=0x + 3 = 0
Answer: x=2x = -2 or x=3x = -3

Step 1: Apply quadratic formula with a=2,b=3,c=2a=2, b=-3, c=-2
Step 2: x=3±9+164=3±54x = \frac{3 \pm \sqrt{9 + 16}}{4} = \frac{3 \pm 5}{4}
Step 3: x1=3+54=2x_1 = \frac{3+5}{4} = 2, x2=354=12x_2 = \frac{3-5}{4} = -\frac{1}{2}
Answer: x=2x = 2 or x=12x = -\frac{1}{2}

Step 1: Recognize as difference of squares: (x2)(x+2)=0(x-2)(x+2) = 0
Step 2: Set each factor to zero: x2=0x - 2 = 0 or x+2=0x + 2 = 0
Answer: x=2x = 2 or x=2x = -2

Frequently Asked Questions

The quadratic formula is x = (-b ± √(b²-4ac)) / 2a. It can solve any quadratic equation ax²+bx+c=0 where a ≠ 0.

A quadratic equation can have two distinct real solutions, one repeated solution, or two complex conjugate solutions, depending on the discriminant.

Use factoring when the coefficients are small integers and factors are easy to spot. Use the quadratic formula when factoring is not obvious — it works for all quadratic equations.

The discriminant is Δ = b²-4ac. It determines the nature and number of roots without solving the equation: positive means two real roots, zero means one repeated root, negative means two complex roots.

Related Solvers

DerivativeStandard deviation
Try AI-Math for Free

Get step-by-step solutions to any math problem. Upload a photo or type your question.

Start Solving