Skip to content
Sumly

Quadratic Equation Solver

Solve ax² + bx + c = 0, with real or complex roots shown step by step.

In

2x² − 4x − 6 = 0

Move everything to one side first: 2x² = 4x + 6 becomes 2x² − 4x − 6 = 0, so a = 2, b = −4 and c = −6.

Out

Solution

x = −1 or 3

Two real roots

Discriminant b² − 4ac64
Vertex(1, −8)
Axis of symmetryx = 1
OpensUpwards (minimum)
Factored form2(x + 1)(x − 3)
Step
Formulax = (−b ± √(b² − 4ac)) ÷ 2a
Substitutex = (4 ± √64) ÷ 4
Square root√64 = 8
The discriminant is positive, so the parabola crosses the x-axis at x = −1 and x = 3.

How Quadratic Equation Solver works

A quadratic equation has the form ax² + bx + c = 0. Its roots come from the quadratic formula, x = (−b ± √(b² − 4ac)) ÷ 2a.

The discriminant, b² − 4ac, decides the kind of answer. Positive gives two real roots, zero gives one repeated root, and negative gives two complex roots written as p ± qi.

The vertex is the turning point of the parabola, at x = −b ÷ 2a. With real roots r₁ and r₂, the equation factors as a(x − r₁)(x − r₂). The roots are computed in a way that stays accurate even when b is very large compared with a and c.

Worked example

For 2x² − 4x − 6 = 0, the discriminant is (−4)² − 4 × 2 × (−6) = 64. Its square root is 8, so x = (4 ± 8) ÷ 4, which gives x = −1 or x = 3. The vertex is at (1, −8), and the factored form is 2(x + 1)(x − 3).

The tool above opens with these numbers. Change them to run your own scenario, or press Reset to come back to this example.

Frequently asked questions

A plain calculator that you can type into, with a running history.

Trig, logs, powers, roots and factorials, in degrees or radians.

Three percentage questions, answered instantly.

How far apart two values are, when neither is the starting point.

Solve a proportion for the missing value, or simplify a ratio.

Round to decimal places or the nearest 5, 10 or 0.05, with five rounding rules.

  • quadratic equation
  • quadratic formula
  • solve for x
  • discriminant
  • algebra
  • math