Quadratic Formula Calculator with Steps

Quadratic Equation Calculator \(ax^2+bx+c=0\)

Enter coefficients a, b, and c to view discriminant Δ, roots, and step-by-step LaTeX solution.

Examples (click to solve):

The calculator above solves the quadratic equation ax² + bx + c = 0 and writes out each step: the coefficients, the discriminant, and the quadratic formula.

The quadratic formula

A quadratic equation in one variable has the standard form

ax^2 + bx + c = 0

where a, b, and c are known numbers, x is the unknown, and a ≠ 0. Its solutions are

x = (-b ± sqrt(b^2 − 4ac)) / (2a)

The symbol ± means you compute the expression twice: once with the plus sign and once with the minus sign. If a coefficient is negative, keep the parentheses when you square it or multiply it.

The discriminant Δ

The value under the square root is called the discriminant:

Δ = b² − 4ac
  • Δ > 0: two distinct real solutions.
  • Δ = 0: one repeated real solution, also called a double root.
  • Δ < 0: no real solution, because a negative number has no real square root.

Simplify √Δ before you divide by 2a. The exact radical form is the precise answer. A decimal rounded to two places is only a check.

Worked examples

Enter the same coefficients in the calculator at the top and compare the steps.

Example 1. Two distinct real solutions

Solve x² − 5x + 6 = 0. Here a = 1, b = −5, and c = 6.

Δ = 25 − 24 = 1
x = (5 ± 1) / 2
x₁ = 3, x₂ = 2

Both values satisfy the original equation, and (x − 3)(x − 2) = x² − 5x + 6. The solution set is S = {3; 2}.

Example 2. A repeated root

Solve x² − 4x + 4 = 0. The coefficients are a = 1, b = −4, and c = 4.

Δ = 16 − 16 = 0
x = 4 / 2 = 2

The equation is the perfect square (x − 2)² = 0, so x = 2 is a double root.

Example 3. No real solution

Solve x² + 1 = 0. Here a = 1, b = 0, and c = 1.

Δ = −4

Because Δ < 0, √Δ is not a real number. The equation has no real solution, and the solution set is S = ∅.

🎯 Practice quiz: quadratic equations

Ten multiple-choice questions with four options each, built on the sections above: the definition, reading the coefficients a, b and c, computing Δ with negative coefficients, the double root, the half-b formula Δ', roots with radicals, the opposite-signs test for a and c, the case a = 0, an equation with a parameter m and a word problem. Pick an answer: the correct option turns green, a wrong one turns red, and the worked solution appears right below with a ⚠️ Traps box explaining why the wrong options are tempting. You can enter the coefficients from any question into the calculator above to check every step.

1️⃣ Definition Question 1. Which of the following is a quadratic equation in one variable:

2️⃣ Reading a, b and c Question 2. The coefficients a, b and c of the equation 3x − 2x² + 5 = 0 are:

3️⃣ Δ with negative coefficients Question 3. The discriminant Δ of the equation 2x² − 3x − 2 = 0 is:

4️⃣ Δ = 0 and the double root Question 4. The equation 4x² − 4x + 1 = 0:

5️⃣ The half-b formula Δ' Question 5. When b is even, write b = 2b’, compute Δ’ = b’² − ac and use x = (−b’ ± √Δ’) / a. For x² + 6x − 7 = 0, the value of Δ’ and the solution set S are:

6️⃣ Roots with radicals Question 6. The solutions of the equation x² − 2x − 2 = 0 are:

7️⃣ a and c with opposite signs Question 7. Without computing Δ, which statement about the equation 3x² + 5x − 2026 = 0 is true:

8️⃣ The case a = 0 Question 8. If you enter a = 0, b = 4, c = −8 (the equation 0x² + 4x − 8 = 0), the correct solution set is:

9️⃣ Parameter m and the double root Question 9. The equation x² − 2x + m = 0 has a double root if and only if:

🔟 Word problem Question 10. A rectangular garden is 3 m longer than it is wide and has an area of 40 m². The width of the garden is:

Frequently asked questions

What is the quadratic formula?

For ax^2 + bx + c = 0 with a not equal to 0, the solutions are x = (-b ± sqrt(b^2 – 4ac)) / (2a).

What does the discriminant tell you?

The discriminant is delta = b^2 – 4ac. A positive delta gives two distinct real solutions, zero gives one repeated real solution, and a negative delta gives no real solution.

What if a equals 0?

The equation is no longer quadratic. It becomes bx + c = 0. If b is not zero then x = -c/b. If b and c are both zero, every real number is a solution. If b is zero and c is not, there is no solution.

Should the square root be simplified?

Yes. Factor perfect squares out of the radicand and reduce the fraction. The exact radical form is the precise answer. A decimal is only a rounded check.

How many real solutions can a quadratic equation have?

At most two. When delta is positive there are two distinct real solutions, when delta is zero there is a repeated real solution, and when delta is negative there is no real solution.

🔗 Related calculators