Free Quadratic Equation Calculator

Electronic calculator
Photo: Coyau / Wikimedia Commons, CC BY-SA 3.0

Published: 15 November 2026  ·  Updated: 15 November 2026

Solve any quadratic equation ax² + bx + c = 0: both roots, the discriminant, the vertex, the axis of symmetry and the sum-and-product checks — including complex roots when the discriminant is negative. It starts with x² − 3x + 2 = 0 (roots 1 and 2). Free, no sign-up.

MixKhazana · Quick answer

Enter a, b, c — read the roots. The discriminant predicts the answer type, the vertex and axis describe the parabola, and the sum and product of the roots let you verify the result in seconds.

Researched by MixKhazana Team · Last updated 15 November 2026 · Data: OpenStax Intermediate Algebra 2e §9.3; College Board AP calculator policy

Solve ax² + bx + c = 0 — enter a, b and c:

Example: x² − 3x + 2 = 0 has discriminant 1 and roots x = 1 and x = 2, with vertex (1.5, −0.25). Try a = 1, b = 2, c = 5 to see complex roots: −1 + 2i and −1 − 2i.
Write the equation in standard form first. Move everything to one side so the equation reads ax² + bx + c = 0, then read off a, b and c — including their signs. A missing term means its coefficient is 0: x² + 5 = 0 has b = 0.

What is a quadratic equation?

A quadratic equation is an equation of the form ax² + bx + c = 0, where a is not zero. The x² term is what makes it quadratic — and what makes it curve: the graph of y = ax² + bx + c is a parabola, and the solutions of the equation are exactly the x-values where the parabola crosses the x-axis. Quadratics describe thrown balls, profit curves, area problems and much of physics, which is why every algebra course teaches several ways to solve them: factoring, the square root property, completing the square, and the quadratic formula, which works for every quadratic without exception.

Students often reach for a graphing calculator to find roots, but the quadratic formula gives exact answers with pencil and paper too. This free tool does the arithmetic, shows the discriminant, and reports complex roots honestly when the parabola never touches the x-axis.

How to use this quadratic equation calculator

  1. Rewrite your equation in standard form, ax² + bx + c = 0, moving every term to one side.
  2. Enter a, b and c with their signs. A term that is missing has coefficient 0.
  3. Read the roots, the discriminant, the vertex and the axis of symmetry — all updated as you type.
  4. Check your answer: the roots must add to −b/a and multiply to c/a. Both checks are shown in the result.

The quadratic formula

For ax² + bx + c = 0 with a ≠ 0, the solutions are:

  • Quadratic formula: x = (−b ± √(b² − 4ac)) / (2a)
  • Discriminant: D = b² − 4ac — the expression under the square root
  • Vertex: x = −b / (2a); y is found by substituting that x back into ax² + bx + c
  • Sum of roots: x₁ + x₂ = −b/a  ·  Product of roots: x₁ × x₂ = c/a

The discriminant predicts the answer before you finish: if D > 0 there are two distinct real roots; if D = 0 there is one real (double) root; if D < 0 there are two complex roots and no real roots, because the square root of a negative number is imaginary. The formula itself comes from completing the square on the general equation — the same steps every time, done once and for all.

Worked example

Solve x² − 5x + 6 = 0:

  • a = 1, b = −5, c = 6; discriminant D = (−5)² − 4(1)(6) = 25 − 24 = 1
  • D > 0, so there are two real roots: x = (5 ± √1) / 2 = (5 ± 1) / 2
  • x₁ = 6/2 = 3; x₂ = 4/2 = 2
  • Check: 3 + 2 = 5 = −b/a ✓; 3 × 2 = 6 = c/a ✓; vertex at x = 2.5, y = 6.25 − 12.5 + 6 = −0.25

Try it above: a = 1, b = −5, c = 6. Then try a = 1, b = 2, c = 5 (D = −16, complex roots −1 ± 2i).

The three discriminant cases

DiscriminantExampleRoots
D > 0x² − 5x + 6 = 0, D = 1x = 2 and x = 3
D = 0x² − 6x + 9 = 0, D = 0x = 3 (double root)
D < 0x² + 2x + 5 = 0, D = −16x = −1 ± 2i

On a graph, D > 0 means the parabola crosses the x-axis twice, D = 0 means it just touches it at the vertex, and D < 0 means it never reaches it. Plot any row with the Free Graphing Calculator to see this.

Which method should you use?

Textbooks suggest trying factoring first — it is fastest when the quadratic factors neatly, as x² − 5x + 6 = (x − 2)(x − 3) does. If the equation fits ax² = k or a(x − h)² = k, the square root property is quickest. For anything else, the quadratic formula is the reliable choice: it never fails, it handles fractions and irrational roots, and the discriminant tells you in advance what kind of answer to expect. Completing the square is the method behind the formula, and it is worth learning once — but for answers, the formula is the tool.

Frequently asked questions

What is the quadratic formula?

For ax squared + bx + c = 0 with a not equal to 0, the solutions are x = (-b plus or minus the square root of (b squared - 4ac)) divided by 2a. Substitute a, b and c, simplify, and you get both roots.

What does the discriminant tell me?

The discriminant D = b squared - 4ac predicts the roots before you solve: if D is positive there are two distinct real roots, if D is zero there is one real double root, and if D is negative there are two complex roots and no real roots.

What if a is zero?

Then the equation is not quadratic at all: it is linear, bx + c = 0, with the single solution x = -c/b. This tool detects that case and solves the linear equation instead of dividing by zero.

What are complex roots?

When the discriminant is negative, the square root in the formula is imaginary, and the two roots are a conjugate pair such as -1 + 2i and -1 - 2i, where i is the square root of -1. The parabola never crosses the x-axis, so there are no real solutions.

How do I find the vertex of a parabola?

The vertex sits at x = -b/(2a). Substitute that x back into ax squared + bx + c to get the y-coordinate. If a is positive the vertex is the lowest point; if a is negative it is the highest point.

How can I check my roots?

The roots must add to -b/a and multiply to c/a. This tool shows both checks. For x squared - 5x + 6 = 0 the roots 2 and 3 add to 5 and multiply to 6, which confirms them.

Do I need to write the equation in standard form first?

Yes. Move every term to one side so the equation reads ax squared + bx + c = 0, then read a, b and c with their signs. Reading coefficients from an unarranged equation is the most common source of sign errors.

Can the quadratic formula solve every quadratic?

Yes. Factoring is faster when it works neatly, but the quadratic formula works for every quadratic equation, including ones with fractions, irrational roots and complex roots.

Sources

Disclaimer: a study aid for homework and revision. Displayed values are rounded to four decimal places; exact surd forms (such as √2) are the same values unrounded. It is not an approved exam-room device.

Related tools

Function graph plotted on axes on paper with a pencil beside it
📈

Free Graphing Calculator

See the parabola and its x-intercepts.

Open →
Matrix algebra written in chalk on a green blackboard
🔢

Free Matrix Calculator

Add, multiply, determinant and inverse for 2×2 and 3×3 matrices.

Open →
Scientific calculator close-up on a green background
🔬

Free Scientific Calculator

Trig, logs and powers with degree and radian modes.

Open →
Electronic calculator
%

Free Percentage Calculator

Percentages, increases and decreases in one step.

Open →

Card photos: Sergey Meshkov / Pexels, Pexels licence · Yulia Meshkova / Wikimedia Commons, CC BY 4.0 · Joost J. Bakker / Wikimedia Commons, CC BY 2.0 · Coyau / Wikimedia Commons, CC BY-SA 3.0

Your next step

See the parabola behind the numbers with the Free Graphing Calculator — plot x² − 3x + 2 and watch it cross the axis at 1 and 2.

Share: