Quadratic Equation Solver

Solve any quadratic equation ax² + bx + c = 0 instantly. Type the coefficients or the whole equation, such as 2x^2 - 4x - 6 = 0, and get both roots in exact form (fractions and simplified square roots) and as decimals, including complex roots. The quadratic formula is worked through step by step, alongside the discriminant, vertex, axis of symmetry, factored and vertex forms, and a graph of the parabola.

  • 100% free
  • No sign-up
  • Private & local
  • Works on mobile

Examples:

Graph of y = ax² + bx + c

Private by design: every calculation runs locally in your browser. Nothing you type is sent to a server or stored by us.

What Is a Quadratic Equation?

A quadratic equation is a polynomial equation of degree two, written in standard form as ax² + bx + c = 0, where a, b and c are numbers and a ≠ 0. The solutions, called roots or zeros, are the x-values where the parabola y = ax² + bx + c crosses the x-axis. A quadratic always has exactly two roots, counting repeats and complex numbers. They can be two different real numbers, one repeated real number, or a pair of complex conjugates.

Quadratics are everywhere in algebra and physics: the path of a thrown ball, the area of a rectangle with a fixed perimeter, profit maximisation in business, lens and satellite-dish shapes, and stopping distances. This quadratic equation solver gives exact and decimal answers with full working, which makes it ideal for checking homework and understanding each step.

How to Use the Quadratic Solver

  1. Type the whole equation in the top box (e.g. 3x^2 + 2x = 8). Terms can be on both sides, and they're rearranged automatically.
  2. Or enter the coefficients a, b and c directly. Use negative signs where needed; decimals and fractions like 1/2 work.
  3. Read the roots in exact form (fractions and simplified surds such as 1 ± √2) and as decimals.
  4. Follow the steps of the quadratic formula, and use the graph to see the roots and vertex.

The Quadratic Formula

The roots of ax² + bx + c = 0 are given by:

x = (−b ± √(b² − 4ac)) / 2a

The expression under the square root, D = b² − 4ac, is the discriminant. It tells you what kind of roots to expect before you finish solving:

DiscriminantRootsGraph
D > 0 (perfect square)Two rational rootsCrosses the x-axis twice
D > 0 (not a perfect square)Two irrational roots (surds)Crosses the x-axis twice
D = 0One repeated rootTouches the x-axis at the vertex
D < 0Two complex conjugate rootsNever touches the x-axis

Worked Example

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

  1. Discriminant: D = (−3)² − 4(1)(−10) = 9 + 40 = 49.
  2. √49 = 7, a perfect square, so the roots are rational.
  3. x = (3 ± 7) / 2, giving x = 5 or x = −2.
  4. Check: 5² − 3(5) − 10 = 0 ✓. Factored form: (x − 5)(x + 2) = 0.

Other Ways to Solve Quadratics

  • Factoring: find two numbers that multiply to ac and add to b. It's quick when the roots are whole numbers: x² − 5x + 6 = (x − 2)(x − 3).
  • Completing the square: rewrite as a(x − h)² + k = 0, then x = h ± √(−k/a). This is also how the vertex form shown by the calculator is found, and how the quadratic formula itself is derived.
  • Graphing: the roots are where the parabola crosses the x-axis.
  • Vieta's formulas: the roots always add up to −b/a and multiply to c/a, a handy check.

The Parabola: Vertex and Axis of Symmetry

The graph of a quadratic is a parabola. If a > 0 it opens upwards and the vertex is the minimum; if a < 0 it opens downwards and the vertex is the maximum. The vertex is at x = −b / 2a, and the vertical line through it is the axis of symmetry: the two roots always sit an equal distance either side of it. In a projectile problem, such as h = −4.9t² + 20t + 1.5, the vertex gives the maximum height and when it's reached, and the positive root gives when the object lands.

Features

  • Exact answersFractions and simplified surds.
  • Complex rootsShown in a ± bi form.
  • Equation inputType 2x^2 - 4x = 6 directly.
  • Step-by-stepQuadratic formula fully worked.
  • Vertex and formsVertex, factored and vertex form.
  • Interactive graphParabola with roots and vertex marked.

Frequently Asked Questions

What if a = 0?

Then it's not a quadratic but a linear equation, bx + c = 0, with the single solution x = −c/b. The solver tells you this.

What does a negative discriminant mean?

There are no real solutions: the parabola never crosses the x-axis. The roots are complex numbers of the form p ± qi.

How do I enter x squared?

Type x^2 or x². For example: 3x^2 - 2x + 1 = 0.

Can a quadratic have just one solution?

Yes, when the discriminant is zero. The single "double root" is at the vertex, which touches the x-axis.

What is a surd?

An irrational root left in exact form, like √2. The solver simplifies surds, for example √8 = 2√2.