Quadratic Equation Roots, Discriminant & Vertex Calculator

Find exact roots, discriminant Δ = b² − 4ac, and vertex (−b/2a, f(−b/2a)).

Primary Root / Real Part 3
Second Root 1
Discriminant (Δ = b² − 4ac) 16
Vertex X (−b / 2a) 2
Inputs
Try:
Quadratic coefficient a (a ≠ 0).
Linear coefficient b.
Constant term c.
Results & Graph
Primary Root / Real Part
3
Second Root
1
Discriminant (Δ = b² − 4ac)
16
Vertex X (−b / 2a)
2
Vertex Y Extremum
-2

Primary Root / Real Part

Graph 1 • How the inputs feed Quadratic Solver
Quadratic Equation Roots, Discriminant & Vertex Calculator • Custom Domain Schematic (Algebra & Equations) coeffAcoeffB Coeff A: 2 • Coeff B: -8 PRIMARY ROOT / REAL PART 3 • Second Root: 1 • Discriminant (Δ = b² −: 16 Eq: x = [ −b ± √(b² − 4ac) ] / (2a)
Graph 2 • Primary Root / Real Part as Coeff A changes (40% to 160% of current)
0 5.05 10.10 9.18 0.800 5.80 1.20 4.08 1.60 3 2 2.19 2.40 1.43 2.80 1.25 3.20
Graph 3 • Coeff A and Coeff B together Compares Primary Root / Real Part when Coeff B is shifted +25% (solid) vs. −25% (dashed).
0 3.57 7.13 --- Coeff B @ 75% 6.48 -30% 5.20 -15% 4.30 +0% 3.63 +15% 3.10 +30%
Summary: Discriminant Δ = 16 ≥ 0 yields real roots x₁ = 3 and x₂ = 1 with vertex (2, -2).
Summary: Discriminant Δ = 16 ≥ 0 yields real roots x₁ = 3 and x₂ = 1 with vertex (2, -2).
Interactive chart & math engine powered by CalculatorGraph

Formula: Quadratic Solver Mathematical Identity

x = [ −b ± b² − 4ac ] / (2a)
x = [ −b ± √(b² − 4ac) ] / (2a)
  • coeffA: Coeff A (numeric parameter)
  • coeffB: Coeff B (numeric parameter)
  • coeffC: Coeff C (numeric parameter)

Frequently Asked Questions

What does the Imaginary Part line mean?

It appears when the discriminant is negative and the roots are complex. The first box then holds the shared real part and this line holds the imaginary part, so the roots are real part plus or minus imaginary part times i. For 3x² - 8x + 6 the panel shows 1.333 and 0.471, which means 1.333 ± 0.471i. Real roots show a Second Root line instead.

What does the solver do if I enter a = 0?

It treats the equation as a straight line and solves bx + c = 0. Entering a = 0, b = 4, c = -8 shows Single Root (Linear, a = 0) as 2, along with the slope and intercept, and no discriminant or vertex. If b is also zero, the solver shows an error, because an equation that reads c = 0 with c not zero has no solution.

Which root goes in the Primary Root box?

The primary box holds the result of the plus branch, (-b + √Δ) / 2a. When a is positive that is the larger root, as with 3 in the default. When a is negative it is the smaller one: for -x² + 4x + 5 the primary box shows -1 and the second shows 5. Do not rely on the order to mean anything.

Is Vertex Y the minimum or the maximum?

It depends on the sign of a. With a positive a, the parabola opens upward and Vertex Y is the least value the expression can take, such as -2 in the default. With a negative a, it opens downward and Vertex Y is the greatest value. For -x² + 4x + 5 the solver puts that peak at 9.

Can I tell from the discriminant whether the equation factors nicely?

If a, b and c are integers and Δ is a perfect square, the roots are rational and the expression factors over whole numbers or simple fractions. The default Δ of 16 is a perfect square, and the equation factors as 2(x - 1)(x - 3). A Δ of 8 is not, so x² - 2 has irrational roots.

How do I get the imaginary part by hand?

Take the square root of the absolute value of Δ and divide by 2a. For 3x² - 8x + 6, Δ is -8, √8 is about 2.828, and dividing by 6 gives about 0.471. The real part is -b / 2a, which equals the vertex x. Together they form the conjugate pair the solver prints.

Why does the vertex x always sit midway between the two roots?

A parabola is symmetric about its axis, the vertical line through the vertex. The two roots are mirror images across that line, so the vertex x is their average. In the default the roots are 1 and 3 and the vertex x is 2. This gives a quick check: average your two real roots and compare with the panel.

Does dividing the whole equation by a number change the answer?

The roots and the vertex x stay the same, but the vertex y changes. Dividing 2x² - 8x + 6 by 2 gives x² - 4x + 3, which still has roots 1 and 3 and a vertex x of 2. The vertex y moves from -2 to -1, because the whole curve has been squashed vertically by half.

What should I enter if my equation has no constant term?

Enter c = 0. An equation like 3x² + 6x = 0 has a = 3, b = 6 and c = 0. One root will always be 0, because x can be factored out, and the other is -b / a, here -2. If the solver does not show a zero root for a c of zero, recheck what you typed.

Can a tiny rounding error change the type of roots?

Yes, when the discriminant is close to zero. If a coefficient is a rounded decimal, Δ can land slightly above or below zero instead of exactly on it. That turns a double root into two very close real roots or a complex pair with a tiny imaginary part. Clearing fractions before entering avoids this.

Reading the default parabola: 2x² - 8x + 6

Coefficients a = 2, b = -8 and c = 6 are loaded when the solver first appears. That is the equation 2x² - 8x + 6 = 0, and the panel answers with roots of 3 and 1, a discriminant of 16, and a vertex at (2, -2).

Each of those numbers can be checked without the calculator. The discriminant is b² - 4ac, which is 64 - 48 = 16. Its square root is 4. The formula then gives x = (8 ± 4) / 4, so one root is 12 / 4 = 3 and the other is 4 / 4 = 1. The vertex sits halfway between the roots at x = 2, and putting 2 back into the equation gives 8 - 16 + 6 = -2.

Because a is positive, the parabola opens upward and the vertex is its lowest point. So the curve dips to -2 at x = 2 and crosses the x axis at 1 and 3. If you sketch those three points you already have a decent picture of the whole graph.

A second check is to divide everything by 2 first. You get x² - 4x + 3 = 0, which factors as (x - 1)(x - 3). Dividing by a never changes the roots, only the height of the vertex.

What the discriminant tells you before you solve anything

The discriminant line is the first thing to read, because its sign decides what kind of answer you are getting. A positive Δ gives two different real roots. A Δ of exactly zero gives one repeated root, where the parabola just touches the x axis at its vertex. A negative Δ gives no real roots at all, only a pair of complex ones.

Try a = 1, b = -6, c = 9. The solver shows Δ = 0, both root boxes read 3, and the vertex is (3, 0). The vertex lying on the x axis is the visual signature of a double root. That equation is (x - 3)², so the answer is right.

The size of a positive Δ also tells you how far apart the roots are. The gap between them is √Δ divided by |a|. In the default, √16 / 2 = 2, which matches the distance from 1 to 3. When Δ shrinks toward zero the roots slide together toward the vertex.

If all three coefficients are whole numbers and Δ is a perfect square, like 16 or 36, the roots are rational and the equation factors neatly. If Δ is not a perfect square, such as 8 for x² - 2 = 0, the roots involve a square root and the panel can only show rounded decimals, here 1.414 and -1.414.

Complex roots and the Imaginary Part line

Raise a from the default 2 to 3 and keep b = -8 and c = 6. Now Δ = 64 - 72 = -8, and the result changes shape. The first box, labelled Primary Root / Real Part, shows 1.333, and the line below it switches from Second Root to Imaginary Part (±), showing 0.471.

When Δ is negative the roots are complex conjugates, written p ± qi. The panel gives p in the first box and q on the Imaginary Part line, so the two roots are 1.333 + 0.471i and 1.333 - 0.471i. The interpretation sentence spells out the same pair as 1.333 ± 0.471i.

To check q by hand, take the square root of the size of Δ and divide by 2a. √8 is about 2.828, and 2.828 / 6 is about 0.471. The real part is -b / 2a = 8 / 6 = 1.333, which is also the vertex x. That is no coincidence: with complex roots the real part always equals the axis of symmetry.

So the label on the second line is the quickest tell. Second Root means you have two real answers, possibly equal. Imaginary Part means you have a complex pair, and you should copy both p and q, not just the first box. A tidier example to try is x² + 2x + 5, which the solver reports as -1 with an imaginary part of 2, so -1 ± 2i.

When a is zero the solver switches to a straight line

The field help says a should not be zero for a quadratic, and with good reason. When a is zero there is no x² term, the equation is linear, and the quadratic formula would divide by zero.

Rather than fail, the solver recognises the case and solves the linear equation instead. Enter a = 0, b = 4, c = -8 and the main box changes to Single Root (Linear, a = 0) and shows 2. Below it, the slope b and the intercept c are echoed back as 4 and -8. The interpretation says this is the straight line 4x - 8 = 0 with one root and no vertex. That matches the hand answer x = -c / b = 8 / 4 = 2.

There is no discriminant or vertex in this mode, because a straight line has neither. If you were expecting a parabola and see the Single Root label, check whether the a box holds a zero or is empty.

If both a and b are zero, the equation collapses to c = 0. With a = 0, b = 0, c = 5 the solver shows an error explaining that the equation has no solution, since 5 can never equal 0. If c were also zero, every x would work, which is not a useful equation to solve either.

The vertex, the axis of symmetry and a negative a

Vertex X is -b / 2a, and it is also the axis of symmetry: the vertical line the parabola mirrors itself across. Vertex Y is the equation's value at that x. When a is positive this is the minimum value of the expression. When a is negative it is the maximum.

Try a = -1, b = 4, c = 5. The roots come back as -1 and 5, Δ is 36 and the vertex is (2, 9). The curve opens downward and peaks at 9. Notice that the primary root is now the smaller one. With a negative a, the plus branch of the formula gives the lower root, so do not assume the first box always holds the larger value.

Vertex Y is the number you want for optimisation problems. If a ball's height is a quadratic in time with a negative a, Vertex Y is the greatest height and Vertex X is when it happens. If a cost is a quadratic in output with a positive a, Vertex Y is the least cost.

With b = 0 the vertex sits on the y axis. For x² - 2 the solver puts it at (0, -2). That is a quick way to spot whether you have typed b correctly: no linear term means a symmetric graph centred on zero.

How a, b and c each move the answer

The scenario rows on this page change only a. Dropping it from 2 to 1.2 widens the parabola and spreads the roots to 5.805 and 0.861, with Δ rising to 35.2 and the vertex falling to (3.333, -7.333). Raising a to 3 narrows it so much that it lifts clear of the axis, which is the complex case above, with an imaginary part of 0.471.

Changing c slides the whole curve up or down without moving the axis of symmetry. Keep a = 2 and b = -8 but set c = 10. The vertex x stays at 2 and the vertex y rises to 2, and since the lowest point is now above the axis, the roots turn complex at 2 ± 1i. Lower c instead and the roots spread further apart.

Changing b moves the vertex sideways and also changes its height, because -b / 2a appears inside the vertex y calculation. That makes b the hardest coefficient to reason about by eye.

A sign error on b is the most common input mistake. The default b is -8. Typing 8 instead flips the parabola across the y axis, so the roots come out as -1 and -3. They look plausible, which is what makes the error easy to miss.

Getting your equation into ax² + bx + c = 0 form

The three boxes assume everything is on one side and zero on the other. Something like x² = 4x - 3 must first become x² - 4x + 3 = 0, so a = 1, b = -4, c = 3. Moving a term across the equals sign changes its sign, and forgetting that is behind most wrong answers.

Expanded products need multiplying out. (2x - 1)(x + 3) = 0 becomes 2x² + 5x - 3 = 0. If the equation came in factored form, though, you already have the roots: x = 0.5 and x = -3. Use the solver as a check on your expansion.

Terms with no x² multiplier still count. x² - 9 = 0 has b = 0, and 3x² + 6x = 0 has c = 0. Type the zero rather than leaving the box blank. When c = 0, one root is always 0, which gives you a quick sanity check on the output.

Rounding, exact roots and when to keep the radical

The panel rounds roots and vertex values to three decimals, so 5.8054 becomes 5.805. The interpretation sentence carries four. For most graphing or applied work that is plenty.

Textbook answers often want exact form instead. If Δ is not a perfect square, write the root as (-b ± √Δ) / 2a using the discriminant the panel shows. For x² - 2 = 0 that is ±√8 / 2, which simplifies to ±√2. The decimal 1.414 is only an approximation of it.

Decimal coefficients are fine to enter, but if your equation has fractions, clear them first by multiplying through. A coefficient of 0.333 for one third will shift the roots slightly and can even nudge a zero discriminant just above or below zero, turning a double root into two close roots or a complex pair.