CalcUnit Logo

How to Calculate Quadratic Formula

Solve any quadratic equation ax² + bx + c = 0.

The Formula

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

The 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:

VariableTypeExample value
Coefficient a (x²)Input (you provide)1
Coefficient b (x)Input (you provide)-5
Constant cInput (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

  1. 1Write down the values you know: Coefficient a (x²), Coefficient b (x), Constant c.
  2. 2Substitute your known values into the formula: x = (-b ± √(b²-4ac)) / 2a.
  3. 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
  4. 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
  5. 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.317.800015.3650081.30165918.3333330.000000
0.513.00008.6055511.39444915.0000000.000000
0.85.80004.6301991.61980113.1250000.000000
11.00003.0000002.00000012.5000000.000000
2-23.0000——01.2500001.198958
3-47.0000——00.8333331.142609
4-71.0000——00.6250001.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

quadraticalgebraequation

Use the Interactive Calculator

Skip the manual math — get instant results with our free Quadratic Formula calculator.

Open Calculator

Related Calculators