Use this free quadratic formula calculator to solve any quadratic equation. Enter the coefficients a, b, and c, and the calculator finds the roots (real or complex), the discriminant, the vertex, and the factored form, with step-by-step working. No signup needed.
Enter integers, decimals or fractions (e.g. 1/2).
The calculator solves quadratic equations using the quadratic formula. It supports real and complex roots, decimals and fractions. When a = 0, the equation is solved as a linear equation instead.
If your equation is not in standard form, move all terms to one side first. For example, x² = 4x − 3 becomes x² − 4x + 3 = 0, so a = 1, b = −4, and c = 3.
You can enter integers, decimals, and fractions. The value of a cannot be 0. If it is, the equation is linear, and the calculator solves it as bx + c = 0.
For ax² + bx + c = 0 with a ≠ 0:
x = (−b ± √(b² − 4ac)) ÷ (2a)
The discriminant is the part under the square root:
D = b² − 4ac
| Discriminant | Number and type of roots |
|---|---|
| D > 0 | Two different real roots |
| D = 0 | One repeated real root (a double root) |
| D < 0 | Two complex roots (no real roots) |
When D is a perfect square (and a, b, c are whole numbers), the roots are rational, and the equation can be factored over the integers.
Vertex: x = −b ÷ (2a), and y = c − b² ÷ (4a)
Axis of symmetry: x = −b ÷ (2a)
Sum of the roots: x₁ + x₂ = −b ÷ a
Product of the roots: x₁ × x₂ = c ÷ a
Factored form: a(x − x₁)(x − x₂)
Direction of the parabola: it opens up if a > 0, and down if a < 0.
y-intercept: the point (0, c)
All answers are checked by substituting back into the equation.
x² − 5x + 6 = 0 (a = 1, b = −5, c = 6)
2x² + 3x − 2 = 0 (a = 2, b = 3, c = −2)
x² − 6x + 9 = 0 (a = 1, b = −6, c = 9)
Another: 4x² − 12x + 9 = 0 has D = 144 − 144 = 0, so x = 1.5.
x² + 2x + 5 = 0 (a = 1, b = 2, c = 5)
The parabola does not cross the x-axis. Its vertex is (−1, 4), above the axis, and it opens upward.
2x² − 4x + 5 = 0 (a = 2, b = −4, c = 5)
3x² − 2x − 1 = 0 (a = 3, b = −2, c = −1)
x² + 4x + 1 = 0 (a = 1, b = 4, c = 1)
Another: x² − 2x − 1 = 0 has D = 8, so x = 1 ± √2 ≈ 2.414 and −0.414.
x² − 9 = 0: x = ± √9 = ±3x² + 4 = 0: x = ± √(−4) = ±2i (no real roots)You can also solve these by moving the constant to the other side and taking the square root.
x² = 4x − 3
Move all terms to one side: x² − 4x + 3 = 0, so a = 1, b = −4, c = 3.
0.5x² − x − 1.5 = 0
Multiplying the whole equation by 2 gives x² − 2x − 3 = 0, which has the same roots.
For x² − 5x + 6 = 0:
Use this to check your answers quickly.
For y = x² − 4x + 3:
x² + 6x + 5 = 0
The formula comes from completing the square on the general equation.
The length of a rectangle is 3 more than its width, and the area is 40. Find the width.
A ball is thrown upward from a height of 1.5 m at 20 m/s. Its height in meters after t seconds is approximately h = −4.9t² + 20t + 1.5. When does it hit the ground (h = 0)?
2x + 4 = 0 is not quadratic. With a = 0, it is a linear equation: x = −4 ÷ 2 = −2.
| Method | Best when |
|---|---|
| Factoring | The roots are whole numbers or simple fractions |
| Square roots | b = 0 (the form ax² = −c) |
| Completing the square | You need the vertex form, or you want to see where the formula comes from |
| Quadratic formula | It works for every quadratic equation |
| Graphing | You want a picture, or an approximate answer |
The quadratic formula always works, so it is a safe choice when factoring is not obvious.
The graph of y = ax² + bx + c is a parabola. The roots are the x-intercepts, which are the points where the parabola crosses the x-axis.
For ax² + bx + c = 0, the solutions are x = (−b ± √(b² − 4ac)) ÷ (2a).
Put it in the form ax² + bx + c = 0, find a, b, and c, calculate the discriminant b² − 4ac, and then use the quadratic formula. You can also factor, complete the square, or take square roots when b = 0.
It is b² − 4ac. It tells you how many real roots there are: two if it is positive, one if it is zero, and none (two complex roots) if it is negative.
The equation has no real solutions. It has two complex solutions, which include the imaginary number i, where i² = −1. The parabola does not cross the x-axis.
Then the equation is not quadratic. It is linear (bx + c = 0), and the solution is x = −c ÷ b.
The x-coordinate is −b ÷ (2a). Substitute it into the equation to get y. For y = x² − 4x + 3, the vertex is (2, −1).
They are the values of x that make the equation true. They are also called solutions, zeros, or x-intercepts.
Substitute each root into the equation and see if you get 0. You can also check that the sum of the roots is −b/a and their product is c/a.
Yes. When the discriminant is 0, there is one repeated root. For example, x² − 6x + 9 = 0 has x = 3.
It is a root with an imaginary part, such as −1 + 2i. Complex roots of equations with real coefficients always come in pairs (−1 + 2i and −1 − 2i).
Use it whenever factoring is not obvious, since it works for every quadratic equation.
Yes. It is free, with no registration and no limits.
Exact forms (with fractions and square roots) are exact. Decimal answers are rounded for display.
A few of the most-used tools in each hub.
This calculator is for general and educational use. Exact answers are exact, and decimal answers are rounded for display. Check your answers by substituting them back into the equation, and follow your teacher’s rules on the form of the answer. For engineering, finance, or safety-related work, check the results with a qualified professional.