1. Home
  2. Maths
  3. Quadratic Equation Solver

Quadratic Equation Solver

Roots of ax² + bx + c = 0 with discriminant, nature of roots and checks.

MathsGrades 9–10Grades 11–12BeginnerStep-by-step solution

Practice questions

Textbook-style questions. Press Solve in the tool to load the values and see the full solution. Underlined words are explained below.

  1. Solve 2x² − 7x + 3 = 0.

  2. Find the roots of x² + 4x + 4 = 0 and state their nature.

  3. Solve x² + x + 1 = 0.

  4. Solve 3x² − 5x − 2 = 0.

Worked example

Here's the first practice question solved in full, so you can see exactly what you'll get. Try it on paper before you read the steps.

Question: Solve 2x² − 7x + 3 = 0.

Plan: how this problem is solved
  1. Write the given values
  2. Find the discriminant
  3. Nature of roots
  4. First root (take +)
  5. Second root (take −)
  6. Check: sum of roots = −b/a
  7. Check: product of roots = c/a

There is also another method, shown after the solution: factorise by splitting the middle term.

Answer
Root 1x1 = 3
Root 2x2 = 0.5
DiscriminantD = 25
Step-by-step solution
  1. Write the given values
    a=2
    b=−7
    c=3
  2. Find the discriminant
    D=b2 − 4 a c
    =(−7)2 − 4 × 2 × 3
    =25
  3. Nature of roots
    D > 0, so the equation has two distinct real roots (D is a perfect square, so the roots are rational).
  4. First root (take +)
    x1=−b + √D2 a
    =−(−7) + √252 × 2
    =3
  5. Second root (take −)
    x2=−b − √D2 a
    =−(−7) − √252 × 2
    =0.5
  6. Check: sum of roots = −b/a
    x1 + x2=x1 + x2
    =3 + 0.5
    =3.5
    −b/a = 3.5 ✓
  7. Check: product of roots = c/a
    x1x2=x1 x2
    =3 × 0.5
    =1.5
    c/a = 1.5 ✓
Another way: factorise by splitting the middle term

D is a perfect square, so the expression breaks into factors. This is the method most textbooks show first.

  1. Find two numbers whose sum is b and whose product is a × c

    Sum = −7, product = 2 × 3 = 6. The numbers are −1 and −6.

  2. Split the middle term and group

    2x2 − 1x − 6x + 3 = 0

    Take the common factor from the first two terms and from the last two, then take out the common bracket.
  3. Set each factor to zero

    x = 3 or x = 0.5. Same roots as the formula.

Key idea: D = b² − 4ac decides everything: D > 0 two real roots, D = 0 equal roots, D < 0 no real roots. Sum of roots = −b/a, product = c/a.

Terms used on this page

New to a word in the question or the solution? Here it is in simple language.

Quadratic equation
An equation where the highest power of x is 2, written ax² + bx + c = 0 with a not zero. It has at most two answers (roots).
Coefficient and constant term
In 2x² − 7x + 3, the coefficient of x² is 2, the coefficient of x is −7 and the constant term is 3. Keep the signs.
Root (solution)
A value of x that makes the equation true. Put it back into the equation and the left side becomes 0.
Discriminant (D)
D = b² − 4ac. It tells you what kind of roots you'll get before you find them: two real, two equal, or none that are real.
Complex roots and i
When D is negative, the square root of a negative number is needed. Mathematicians use i = √−1, so the roots look like 2 ± 3i. You meet these in Grade 11, A-Level or AP.
nth term (aₙ) and sum (Sₙ)
aₙ is the term at position n in the list. Sₙ is what you get when you add the first n terms together.

Symbols in this solver

What each box asks for, and its unit.

SymbolWhat it meansSI unit
aCoefficient of x²(no unit)
bCoefficient of x(no unit)
cConstant term(no unit)

Formula & concept

Solve ax² + bx + c = 0: discriminant, nature of roots, real or complex roots, with a check.

x = −b ± √b2 − 4ac2a

Key idea: D = b² − 4ac decides everything: D > 0 two real roots, D = 0 equal roots, D < 0 no real roots. Sum of roots = −b/a, product = c/a.

How to use this calculator

  1. Type the known values from your question and pick the unit for each one.
  2. Press Solve step by step.
  3. Read the plan first. It lists the steps the solution will follow. Want to try it yourself? Tick Practice mode and the answer stays hidden until you ask for it.
  4. Check the answer, then go through each numbered step. Where there's a second method, it's shown after the main one.
  5. Stuck on a word? The terms section explains it in simple language.

Frequently asked questions

How does the Quadratic Equation work?
You enter the values you know, pick their units and press Solve. The tool changes everything to SI units, applies the formula x = (−b ± √(b^2 − 4ac))/(2a) and shows you each step: given data, formula, substitution and the final answer.
What is the key idea behind it?
D = b² − 4ac decides everything: D > 0 two real roots, D = 0 equal roots, D < 0 no real roots. Sum of roots = −b/a, product = c/a.
What if my answer doesn't match my book?
First check that you've picked the right units. Then see which constants your book uses and how many figures it rounds to. You can change the number of figures under Settings in the solver. A small difference in the last digit is usually just rounding.
Can I see how to solve it without seeing the answer?
Yes. Tick Practice mode under the solver. You'll get the plan of steps only, so you can work it out on paper. One click then shows the full solution.
Is the Quadratic Equation free to use?
Yes, it's free with no sign-up. All calculations happen inside your browser and nothing you type is stored.
Which grades is it useful for?
It's made for Grades 9–10 (GCSE · IGCSE · US high school · Class 9–10 (CBSE, ICSE)) and Grades 11–12 (A-Level · AP · IB · Class 11–12 · JEE · NEET). The working follows the method used in textbooks and exams.