Calculator · Level 3
Quadratic formula calculator with steps and graph
Enter a, b and c of a quadratic equation in standard form. The calculator finds the discriminant and the solutions, exact with simplified radicals and as decimals, and adds the vertex, the vertex form, the factored form and a graph of the parabola.
Also available in: Deutsch · Italiano · Français · Português · Español
Free for teaching and learning (terms (in German)). Ad-free in class: Classroom view · Do you teach?
How to use the calculator
First bring the equation into standard form ax² + bx + c = 0, with everything on one side. Then enter the three coefficients. They can be integers, decimals (0.5) or fractions (−1/2). If a term is missing, its coefficient is 0: x² − 9 = 0 has b = 0.
Under “More options” you choose the method, the quadratic formula or completing the square, the number of decimal places and whether complex solutions are shown when the equation has no real solution.
The quadratic formula and the discriminant
The solutions of ax² + bx + c = 0 (with a ≠ 0) are
The expression under the square root, D = b² − 4ac, is the discriminant. It tells you how many real solutions there are:
- D > 0: two different real solutions; the parabola crosses the x-axis twice.
- D = 0: exactly one solution (a double root); the vertex lies on the x-axis.
- D < 0: no real solution; the parabola does not reach the x-axis.
Exact answers with square roots
When the discriminant is not a perfect square, the solutions are irrational. The calculator gives the decimal value and the exact value in simplest radical form. For x² − 2 = 0, the discriminant is 8 and √8 = 2√2, so x = ±√2 ≈ ±1.4142. Most teachers want the exact form unless the problem asks you to round.
Completing the square
This method rewrites the equation as a perfect square. For 2x² + 4x − 6 = 0, the calculator first divides by 2 to get x² + 2x − 3 = 0. Adding and subtracting (2/2)² = 1 gives (x + 1)² − 1 − 3 = 0, so (x + 1)² = 4 and x + 1 = ±2. The solutions are x = −3 and x = 1. Completing the square in general is how the quadratic formula itself is derived.
When the discriminant is negative
For 2x² + 4x + 10 = 0 the discriminant is 16 − 80 = −64. There is no real solution. With complex solutions switched on, the calculator adds x = −1 ± 2i, where i is the imaginary unit with i² = −1.
Vertex, vertex form, factored form and graph
Below the steps, the table lists:
- the vertex V(h, k) with h = −b/(2a); it is the minimum point when the parabola opens upward (a > 0) and the maximum point when it opens downward (a < 0);
- the vertex form a(x − h)² + k;
- the factored form a(x − x₁)(x − x₂), when both solutions are rational;
- a check with the sum and product of the roots: x₁ + x₂ = −b/a and x₁ · x₂ = c/a.
The graph shows the parabola with its x-intercepts and the vertex V.
Frequently asked questions
What happens if a = 0?
Then the equation is not quadratic. The calculator solves the linear equation bx + c = 0 and gives x = −c / b. If b is 0 as well, there is either no solution (c ≠ 0) or every number is a solution (c = 0).
How do I solve an equation that is not in standard form?
Move all terms to one side first. For example, x² = 5x − 6 becomes x² − 5x + 6 = 0, so a = 1, b = −5 and c = 6. The solutions are x = 2 and x = 3.
Can I use fractions or decimals for a, b and c?
Yes. Type 1/2, −3/4 or 0.5. The calculator works with exact fractions internally and rounds only at the end.
How can I check a solution?
Substitute it into the equation. With x = 3 in x² − 2x − 3: 9 − 6 − 3 = 0. The sum and product of the roots in the table are a second check.
Does the calculator factor the quadratic?
When both solutions are rational, the table shows the factored form, for example x² − 2x − 3 = (x + 1)(x − 3). When the solutions are irrational, as for x² − 2 = 0, the quadratic cannot be factored with whole numbers, and the calculator gives the exact solutions with square roots instead.
Keep learning
- The lesson on quadratic equations covers factoring, completing the square, the quadratic formula and the discriminant.
- Graphs of parabolas: quadratic functions.
- Simplifying radicals: square root calculator.
Spotted a mistake or have a request? Send us a short message and we will take care of it.