Quadratic formula calculator
The quadratic formula solves any equation of the form ax² + bx + c = 0: x = (−b ± √(b² − 4ac)) / 2a. Enter a, b and c and this calculator shows each step, from the discriminant to the roots, giving exact and decimal answers. It also handles repeated roots and complex roots.
x = 2 or x = 3
Step by step
- Write the equation in standard form
- Write the quadratic formula
- Work out the discriminant
- Δ > 0, so there are two real roots
.
- Put the values in the formula
- Work out both roots
How the quadratic formula calculator works
- It reads , and from . Move every term to one side first, so the other side is 0.
- It computes the discriminant , which tells you what kind of answer to expect:
- : two different real roots
- : one repeated real root
- : no real roots, two complex roots (for example gives )
- It substitutes into , simplifies the square root, and gives each root.
When to use the formula vs other methods
The formula always works, but it isn’t always fastest. If the quadratic factors nicely, like , factoring is quicker. Completing the square is how the formula is derived and is useful for vertex form. Our guide on how to solve quadratic equations compares all three methods with examples.
Common mistakes
- Dropping the sign of : with , .
- Dividing only the square root by : the whole top, , goes over .
- Forgetting to set the equation to 0 before reading , and .
Worked example: complex roots
The vertex and the graph
The graph of a quadratic is a parabola. The roots are where it crosses the x-axis, and the vertex sits halfway between them at . For , the vertex is at , where . When the discriminant is negative, the parabola never touches the x-axis, which is why there are no real roots.
Entering your equation
Rewrite it as first. For , subtract to get , so , , . A missing term means its coefficient is 0: has .
Frequently asked questions
What is the quadratic formula?
, which solves for any .
What does the discriminant tell you?
tells you the number and type of roots: positive means two real roots, zero means one repeated root, negative means two complex roots.
Can this calculator give complex roots?
Yes. When the discriminant is negative it shows the roots in the form .
What if a = 0?
Then it isn't a quadratic. The calculator solves the linear equation instead and tells you so.