Skip to content
toola.

ax² + bx + c = 0

Quadratic equation solver

Enter the coefficients a, b and c to solve ax² + bx + c = 0. You get the discriminant, both solutions (real or complex), the vertex and axis of symmetry, the working with the quadratic formula, and a graph of the parabola. If a is 0 the equation is solved as a linear one instead.

Private: your files never leave your device.

Equation: x² − 3x − 10 = 0

Solutions
x₁ = -2, x₂ = 5
Discriminant
49
Vertex
(1.5, -12.25)

Two real solutions · Axis of symmetry: x = 1.5 · Opens upwards (a > 0)

Steps

  1. D = b² − 4ac = (-3)² − 4 × 1 × -10 = 49
  2. D > 0 → x = (−b ± √D) / 2a = (3 ± √49) / 2
  3. x₁ = -2, x₂ = 5

How was this tool?

How to use Quadratic equation solver

  1. Step 1: Enter a, b and c from your equation (move everything to one side first).

  2. Step 2: Read the discriminant and the solutions.

  3. Step 3: Follow the steps and check the graph where the curve crosses the x-axis.

Example

Solve x² − 3x − 10 = 0. Here a = 1, b = −3, c = −10.

  1. Discriminant: D = (−3)² − 4 × 1 × (−10) = 9 + 40 = 49.
  2. D > 0, so there are two real solutions: x = (3 ± √49) ÷ 2 = (3 ± 7) ÷ 2.
  3. x₁ = −2 and x₂ = 5. Check: 5² − 3 × 5 − 10 = 0 ✓.

Accuracy

When b² is much larger than 4ac, the textbook formula loses digits for the smaller root. The solver uses the numerically stable form (x₁ = q ÷ a, x₂ = c ÷ q with q = −(b + sign(b)√D) ÷ 2), so both roots stay accurate. Results use ordinary floating point and are shown to about 10 significant digits.

Frequently asked questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) ÷ 2a. The part under the root, b² − 4ac, is the discriminant.

What does the discriminant tell me?

Positive: two different real solutions. Zero: one repeated real solution. Negative: no real solutions, but two complex ones.

What if a = 0?

Then it isn’t quadratic: bx + c = 0 has one solution, x = −c ÷ b, unless b is 0 too.