Solve · Check · Learn

Quadratic Equation Calculator with Steps

Type or snap a quadratic — get both roots with every step shown.

Try:

Quadratic Equation Calculator with Steps: Free Quadratic Formula Solver

Math AI Solver breaks second-degree polynomial equations into clear, line-by-line proofs. Unlike scientific calculators that show only final numbers, it reveals every intermediate step — whether you solve by factoring, completing the square, or find imaginary roots.

Line-by-line proofs

Follow clear, step-by-step deductions from standard form to final roots.

Complex root support

Full handling of imaginary numbers (i=−1i = \sqrt{-1}) when the discriminant is negative.

Multiple solution methods

Ask for the quadratic formula, factoring, or completing the square — the solver explains the method it picks.

100% free & no sign-up

Unlimited access with zero account creation or subscription fees.

How to Solve Quadratic Equations Step-by-Step

A quadratic equation calculator with steps solves second-degree polynomial equations (ax2+bx+c=0ax^2 + bx + c = 0) and displays the complete algebraic derivation from standard form to exact roots.
1

Standard form

  • Set the equation equal to 0
  • Order terms as ax2+bx+cax^2 + bx + c
  • Identify aa, bb, and cc
2

Discriminant test

  • Compute Δ=b2−4ac\Delta = b^2 - 4ac
  • Δ>0\Delta > 0: two real roots
  • Δ=0\Delta = 0: one real root
  • Δ<0\Delta < 0: two complex roots
3

Method & solution

  • Factoring
  • Completing the square
  • Quadratic formula
  • Vertex & zeros

Convert to standard form

Move every term to the left so the right side is zero: ax2+bx+c=0ax^2 + bx + c = 0 Order terms by descending degree: ax2ax^2, then bxbx, then cc.

Identify a, b, and c

aa is the coefficient of x2x^2 (a≠0a \neq 0), bb the coefficient of xx, and cc the constant — watch the negative signs. In 2x2−5x−3=02x^2 - 5x - 3 = 0: a=2a = 2, b=−5b = -5, c=−3c = -3.

Choose the best method

  • Factoring: when integer factors of cc sum to bb.
  • Square root property: when b=0b = 0.
  • Completing the square: when a=1a = 1 and bb is even.
  • Quadratic formula: works for every quadratic, including radical and complex roots.

Review the line-by-line proof

Math AI Solver gives the exact solutions with a step-by-step explanation, so you can check your own homework line by line.

The Quadratic Formula & The Discriminant

One universal formula solves any second-degree polynomial:

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
xxThe roots, zeros, or x-intercepts of the equation.
−b-b and ±\pmThe opposite of the linear coefficient; ±\pm gives two roots x1x_1 and x2x_2.
b2−4acb^2 - 4acThe discriminant Δ\Delta — it decides how many and what kind of solutions.
2a2aDivides the entire numerator, not just the square root.

Understanding the discriminant

DiscriminantRoot typeGraph behaviorExample
Δ>0\Delta > 0Two distinct real rootsParabola crosses the x-axis at two pointsx2−4=0  (Δ=16)x^2 - 4 = 0\;(\Delta = 16)
Δ=0\Delta = 0One repeated real rootVertex touches the x-axis at one pointx2−4x+4=0  (Δ=0)x^2 - 4x + 4 = 0\;(\Delta = 0)
Δ<0\Delta < 0Two complex roots (a±bi)(a \pm bi)Parabola stays entirely above or below the x-axisx2+9=0  (Δ=−36)x^2 + 9 = 0\;(\Delta = -36)

For the full derivation sheet, see the quadratic formula reference guide.

Four Ways to Solve a Quadratic Equation

No single method suits every problem. Math AI Solver supports all four main algebraic techniques.

1. The quadratic formula

Works for every quadratic, whatever the coefficients.
  1. Calculate the discriminant Δ=b2−4ac\Delta = b^2 - 4ac.
  2. Substitute into x=−b±Δ2ax = \frac{-b \pm \sqrt{\Delta}}{2a}.
  3. Simplify the radical and evaluate both the ++ and −- branches.

2. Factoring

Use when ax2+bx+cax^2 + bx + c splits into integer binomials (px+q)(rx+s)=0(px + q)(rx + s) = 0.
  1. When a>1a > 1, use the AC method: find factors of a⋅ca \cdot c that sum to bb, split the middle term, and factor by grouping.
  2. Apply the zero product property: set each factor equal to 0.
  3. Solve each linear equation for xx.

3. Completing the square

Rewrites the equation in vertex form (x+h)2=k(x + h)^2 = k — best when a=1a = 1 and bb is even.
  1. Divide by aa: x2+bax+ca=0x^2 + \frac{b}{a}x + \frac{c}{a} = 0.
  2. Move the constant: x2+bax=−cax^2 + \frac{b}{a}x = -\frac{c}{a}.
  3. Add (b2a)2\left(\frac{b}{2a}\right)^2 to both sides and factor the left side.
  4. Take the square root of both sides and isolate xx.

4. Taking square roots

When there is no linear term (b=0b = 0), skip the full formula.
  1. Isolate the squared term: ax2=−c⇒x2=−caax^2 = -c \Rightarrow x^2 = -\frac{c}{a}.
  2. Take the square root: x=±−cax = \pm\sqrt{-\frac{c}{a}}.

Worked Step-by-Step Examples

Solve 2x2−5x−3=02x^2 - 5x - 3 = 0.
Coefficients: a=2a = 2, b=−5b = -5, c=−3c = -3.Discriminant: Δ=(−5)2−4(2)(−3)=25+24=49\Delta = (-5)^2 - 4(2)(-3) = 25 + 24 = 49 A positive perfect square, so two rational roots.Substitute: x=5±74x = \frac{5 \pm 7}{4}Final answer: x=3x = 3 or x=−12x = -\frac{1}{2}.
Solve x2−4x+13=0x^2 - 4x + 13 = 0.
Coefficients: a=1a = 1, b=−4b = -4, c=13c = 13.Discriminant: Δ=16−52=−36\Delta = 16 - 52 = -36 Negative, so the parabola never crosses the x-axis.Simplify: −36=6i\sqrt{-36} = 6i, so x=4±6i2=2±3ix = \frac{4 \pm 6i}{2} = 2 \pm 3iFinal answer: x=2+3ix = 2 + 3i or x=2−3ix = 2 - 3i.
Solve x2+7x+12=0x^2 + 7x + 12 = 0.
Find factors of 12 that sum to 7: 3⋅4=123 \cdot 4 = 12 and 3+4=73 + 4 = 7.Factor: (x+3)(x+4)=0(x + 3)(x + 4) = 0Zero product property: x+3=0x + 3 = 0 or x+4=0x + 4 = 0.Final answer: x=−3x = -3 or x=−4x = -4.

Finding the Vertex and Graphing the Parabola

Every quadratic function y=ax2+bx+cy = ax^2 + bx + c traces a U-shaped curve called a parabola. These are its key landmarks:
1

Vertex (h, k)

The turning point — a minimum when a>0a > 0, a maximum when a<0a < 0: h=−b2a,  k=f(h)h = -\frac{b}{2a},\; k = f(h)
2

Axis of symmetry

The vertical line splitting the parabola into mirror halves: x=−b2ax = -\frac{b}{2a}.
3

x-intercepts

Where y=0y = 0 — the same roots the quadratic formula gives.
4

y-intercept

Where the curve crosses the vertical axis: (0,c)(0, c).

Graph vs. algebra: tools like Desmos plot curves interactively; Math AI Solver connects those curves to the line-by-line algebraic solution you write on paper.

Common Mistakes When Solving Quadratics

  1. 1

    Sign errors with −b

    If b=−5b = -5, then −b=−(−5)=+5-b = -(-5) = +5. Forgetting to flip the sign is the most common quadratic mistake.
  2. 2

    Dropping the ± symbol

    Leaving out ±\pm gives you only one root instead of both solutions.
  3. 3

    Not dividing the whole numerator by 2a

    2a2a divides both −b-b and the radical: −b±Δ2a\frac{-b \pm \sqrt{\Delta}}{2a}. Never write −b±Δ2a-b \pm \frac{\sqrt{\Delta}}{2a}.
  4. 4

    Miscalculating −4ac with negatives

    When cc is negative, −4ac-4ac becomes positive: −4(2)(−3)=+24-4(2)(-3) = +24, not −24-24.
  5. 5

    Squaring negatives incorrectly

    With b=−5b = -5, (−5)2=+25(-5)^2 = +25. Typing −52-5^2 on a calculator gives −25-25 and breaks the discriminant.

Frequently Asked Questions

Math AI Solver is a free quadratic formula calculator with steps. It computes real and complex solutions, works by factoring, completing the square, or the quadratic formula, and never hides intermediate steps behind a paywall.

The discriminant Δ=b2−4ac\Delta = b^2 - 4ac sits under the square root. If Δ>0\Delta > 0, you get two real roots. If Δ=0\Delta = 0, 0=0\sqrt{0} = 0 collapses the ±\pm into one repeated root. If Δ<0\Delta < 0, the square root of a negative gives an imaginary number, so you get two complex conjugate roots.

Yes. Math AI Solver evaluates negative radicands by factoring out −1=i\sqrt{-1} = i. Instead of reporting an error, it shows the solutions in standard complex form a±bia \pm bi.

Start with ax2+bx+c=0ax^2 + bx + c = 0 and complete the square: divide by aa to get x2+bax=−cax^2 + \frac{b}{a}x = -\frac{c}{a}; add (b2a)2\left(\frac{b}{2a}\right)^2 to both sides; factor the left side as (x+b2a)2=b2−4ac4a2\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2}; take the square root of both sides; then subtract b2a\frac{b}{2a} to arrive at x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.

Use factoring when the expression easily breaks into integer factors whose sum equals bb. If the equation has large numbers, fractions, or irrational or complex roots, the quadratic formula is the most reliable approach.

The minus sign in front of bb means "the opposite of bb". If b=−5b = -5, then −b=−(−5)=+5-b = -(-5) = +5.