Calculation methods

The Quadratic Formula, Solved Step by Step

A quadratic equation has the form ax² + bx + c = 0, where a is not zero. The quadratic formula provides two candidate roots. The symbol ± means calculate one result with plus and a second result with minus.

Worked example · Updated

Quadratic formula showing the two possible roots from the plus and minus branches.
x² − 5x + 6 = 0 has roots 2 and 3. Illustration, not a live result.

Calculate the example

For x² − 5x + 6 = 0, use a = 1, b = −5 and c = 6. The discriminant b² − 4ac is 25 − 24 = 1. The plus branch gives (5 + 1)/2 = 3; the minus branch gives (5 − 1)/2 = 2.

The preset in the formula tool evaluates the plus branch. Change the plus sign to minus to calculate the other root, then press Evaluate to show each result.

Interpret the discriminant

A positive discriminant gives two distinct real roots. A zero discriminant gives one repeated real root. A negative discriminant gives complex roots when the expression tool is configured to handle complex values.

If a = 0, the equation is not quadratic and the formula divides by zero. Check a before applying the formula.

Verify by substitution

Substitute x = 2: 2² − 5(2) + 6 = 0. Substitute x = 3: 3² − 5(3) + 6 = 0. Both results satisfy the original equation.

Verification catches sign errors and helps distinguish a root calculation from a result that merely looks plausible.

Quadratic example inputs and roots
Coefficient / valueValue
a1
b−5
c6
Discriminant1
Minus root2
Plus root3
Check the assumptions. These are educational examples. A conversion or formula does not validate its inputs or replace professional advice. Read the limitations.
All calculation guides