How to Calculate Quadratic Formula
Solve any quadratic equation ax² + bx + c = 0.
The Formula
x = (-b ± √(b²-4ac)) / 2aThe quadratic formula formula uses the mathematical relationship: x = (-b ± √(b²-4ac)) / 2a. Each variable in the formula represents a measurable quantity that affects the final result.
What Each Variable Means
Every value in the quadratic formula formula, what it measures, and the value used in the worked example on this page:
| Variable | Type | Example value |
|---|---|---|
| Coefficient a (x²) | Input (you provide) | 1 |
| Coefficient b (x) | Input (you provide) | -5 |
| Constant c | Input (you provide) | 6 |
| Discriminant (b² - 4ac) | Result (calculated) | — |
| Root x₁ | Result (calculated) | — |
| Root x₂ | Result (calculated) | — |
| Has Real Roots (1 = yes, 0 = no) | Result (calculated) | — |
| Real Part (when roots are complex) | Result (calculated) | — |
| Imaginary Part (when roots are complex) | Result (calculated) | — |
Step-by-Step Method
- 1Write down the values you know: Coefficient a (x²), Coefficient b (x), Constant c.
- 2Substitute your known values into the formula: x = (-b ± √(b²-4ac)) / 2a.
- 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
- 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
- 5Verify your answer with the interactive Quadratic Formula Calculator — it solves the same formula instantly.
Worked Example
Take a concrete case: coefficient a (x²) = 0.5, with the other inputs at the typical values from the variables table above. Substituting into the formula gives discriminant (b² - 4ac) = 13.0000, root x₁ = 8.605551, root x₂ = 1.394449, has real roots (1 = yes, 0 = no) = 1, real part (when roots are complex) = 5.000000, imaginary part (when roots are complex) = 0.000000. These numbers are solved by the same engine that powers the Quadratic Formula calculator, so you can reproduce them exactly by entering the same inputs there.
| Coefficient a (x²) | Discriminant (b² - 4ac) | Root x₁ | Root x₂ | Has Real Roots (1 = yes, 0 = no) | Real Part (when roots are complex) | Imaginary Part (when roots are complex) |
|---|---|---|---|---|---|---|
| 0.3 | 17.8000 | 15.365008 | 1.301659 | 1 | 8.333333 | 0.000000 |
| 0.5 | 13.0000 | 8.605551 | 1.394449 | 1 | 5.000000 | 0.000000 |
| 0.8 | 5.8000 | 4.630199 | 1.619801 | 1 | 3.125000 | 0.000000 |
| 1 | 1.0000 | 3.000000 | 2.000000 | 1 | 2.500000 | 0.000000 |
| 2 | -23.0000 | — | — | 0 | 1.250000 | 1.198958 |
| 3 | -47.0000 | — | — | 0 | 0.833333 | 1.142609 |
| 4 | -71.0000 | — | — | 0 | 0.625000 | 1.053269 |
How each result changes as coefficient a (x²) changes, holding the other inputs constant.
Practice Problems
1. x² - 5x + 6 = 0 (integer roots): With Coefficient a (x²) 1, Coefficient b (x) -5, Constant c 6, what are the results?
Answer: The calculator returns Discriminant (b² - 4ac) 1.0000, Root x₁ 3.000000, Root x₂ 2.000000, Has Real Roots (1 = yes, 0 = no) 1, and 2 more more results for Coefficient a (x²) 1, Coefficient b (x) -5, Constant c 6.
2. Coefficient a (x²) 1.25, Coefficient b (x) -2, Constant c 1 — work it out, then check the answer.
Answer: With Coefficient a (x²) 1.25, Coefficient b (x) -2, Constant c 1, the results are Discriminant (b² - 4ac) -1.0000, Has Real Roots (1 = yes, 0 = no) 0, Real Part (when roots are complex) 0.800000, and 1 more more results.
Frequently Asked Questions
What is the formula for quadratic formula?
The formula is: x = (-b ± √(b²-4ac)) / 2a. Solve any quadratic equation ax² + bx + c = 0.
What values do I need to calculate quadratic formula?
You need coefficient a (x²), coefficient b (x), constant c. The calculator produces discriminant (b² - 4ac), root x₁, root x₂, has real roots (1 = yes, 0 = no), real part (when roots are complex), imaginary part (when roots are complex) from those inputs.
What is the quadratic formula when coefficient a (x²) is 0.5?
With coefficient a (x²) = 0.5, the result is discriminant (b² - 4ac) = 13.0000, root x₁ = 8.605551, root x₂ = 1.394449, has real roots (1 = yes, 0 = no) = 1, real part (when roots are complex) = 5.000000, imaginary part (when roots are complex) = 0.000000. This is worked through in full in the example on this page.
Related Topics
Use the Interactive Calculator
Skip the manual math — get instant results with our free Quadratic Formula calculator.
