ToolJutsu
All tools
Calculator Tools

Quadratic Equation Solver

Solve quadratic equations, including complex roots.

Solve ax² + bx + c = 0 by entering the three coefficients.

Roots

x₁ = 2

x₂ = 1

Two distinct real roots

Discriminant (Δ)

1

Vertex

(1.5, -0.25)

Axis of symmetry

x = 1.5

The quadratic formula

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

  • The discriminant Δ = b² − 4ac decides the nature of the roots.
  • Δ > 0 gives two distinct real roots; Δ = 0 gives one repeated real root.
  • Δ < 0 gives a complex conjugate pair, real part −b/2a.
  • The vertex is at x = −b/2a, and the axis of symmetry passes through it.
Processed on your device. We never see your files.

How to use Quadratic Equation Solver

What this calculator does

This tool solves any quadratic equation of the form ax² + bx + c = 0. You enter the three coefficients and it instantly returns the roots, the discriminant, the vertex of the parabola, and the axis of symmetry. When the discriminant is negative it reports the complex conjugate roots rather than failing, and when the leading coefficient is zero it gracefully solves the equation as a linear one. Every value recalculates as you type, and all of the arithmetic happens locally in your browser.

Why you might need it

Quadratic equations are one of the first non-trivial equations students learn to solve, and they appear far beyond the classroom. Physics uses them for projectile motion — the time a thrown object spends in the air is the root of a quadratic. Engineering and finance use them in optimisation problems where the maximum or minimum of a parabola matters. A solver that shows the discriminant, the vertex, and the axis of symmetry alongside the roots is useful both as a homework check and as a quick reference when you only need the answer and the shape of the curve.

How to use it

  1. Enter the coefficient a (the x² term), b (the x term), and c (the constant).
  2. Read the roots in the result card — they update as you type.
  3. Check the discriminant, vertex, and axis of symmetry cards for the full picture of the parabola.
  4. Use the copy button to grab the roots, and Reset to return to the example equation x² − 3x + 2 = 0.

How it’s calculated

The roots come from the quadratic formula:

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

The expression under the square root, Δ = b² − 4ac, is the discriminant. When Δ is positive the calculator takes its real square root and produces two roots. When Δ is zero both roots collapse to the single value −b/2a. When Δ is negative the calculator takes the square root of −Δ and writes the answer as the complex conjugate pair −b/2a ± (√(−Δ)/2a)i.

The vertex of the parabola sits at x = −b/2a; substituting that x back into ax² + bx + c gives the y-coordinate. The axis of symmetry is the vertical line through the vertex, x = −b/2a. If a is zero the equation is not quadratic at all, so the tool solves the linear form bx + c = 0 as x = −c/b.

Common pitfalls

The most common error is sign mistakes when reading off coefficients — remember that in x² − 3x + 2 the value of b is −3, not 3. Another is forgetting that a negative discriminant does not mean “no answer”; it means the answers are complex. People also sometimes mix up the vertex x-value (−b/2a) with a root; the vertex is the turning point and only coincides with a root when the discriminant is zero. Finally, dividing by a is invalid when a is zero, which is why the linear case must be handled separately.

If your equation is given in vertex form, a(x − h)² + k, you can expand it to standard form before entering the coefficients here. The two real roots always sit symmetrically around the axis of symmetry, so their average equals −b/2a — a quick sanity check. The product of the roots equals c/a and their sum equals −b/a, another pair of relationships worth remembering. Because the whole calculation runs on your device, you can experiment with coefficients freely and watch the discriminant flip between positive, zero, and negative.

Frequently asked questions

What does the discriminant tell me?
The discriminant is Δ = b² − 4ac, the part of the quadratic formula under the square root. If Δ is positive there are two distinct real roots; if Δ is exactly zero there is one repeated real root; if Δ is negative there are no real roots, only a pair of complex conjugates. You can read the nature of the solutions from its sign before doing any further arithmetic.
Can this solver handle complex roots?
Yes. When the discriminant is negative the calculator reports the two complex conjugate roots in the form p ± qi, where p is −b/2a and q is √(−Δ)/2a. This is the standard way to express solutions that do not lie on the real number line.
What happens if a is zero?
If the leading coefficient a is zero the equation is no longer quadratic — it is the linear equation bx + c = 0. The calculator detects this and solves the linear case instead, giving x = −c/b. If both a and b are zero it reports either no solution or every real number, depending on c.
What are the vertex and axis of symmetry?
The graph of a quadratic is a parabola. Its vertex is the turning point, located at x = −b/2a, and the y-value there is found by substituting that x back into the equation. The axis of symmetry is the vertical line through the vertex, x = −b/2a, which mirrors the two halves of the parabola.
Is my equation sent to a server?
No. The quadratic formula is evaluated by JavaScript running in your browser. The coefficients you enter are never uploaded or stored anywhere, and they disappear as soon as you close the tab.

Related tools