Quadratic Equation Calculator (ax² + bx + c = 0)
Enter a, b and c to get both roots and the discriminant instantly, including complex roots.
Quick answer
x² − 5x + 6 = 0: x = 3 and 2.
How it is calculated
- Discriminant D = b² − 4ac = 25 − 24 = 1.
- Roots x = (−b ± √D) ÷ 2a = (5 ± 1) ÷ 2.
- D > 0 two distinct roots, D = 0 equal roots, D < 0 complex roots.
Worked example
For x² − 5x + 6 = 0, a = 1, b = −5, c = 6. Discriminant 1, roots 3 and 2.
| a | 1 |
| b | -5 |
| c | 6 |
| Root x₁ | 3 |
| Root x₂ | 2 |
| Discriminant | 1 |
Formula
ax² + bx + c = 0
D = b^2-4×a×c Root x₁ = a==0 ? (b==0 ? "—" : -c/b) : D>=0 ? (-b+sqrt(D))/(2×a) : fix(-b/(2×a))+" + "+fix(abs(sqrt(-D)/(2×a)))+"i" Root x₂ = a==0 ? (b==0 ? "—" : -c/b) : D>=0 ? (-b-sqrt(D))/(2×a) : fix(-b/(2×a))+" − "+fix(abs(sqrt(-D)/(2×a)))+"i" Discriminant = D
Good to know
- Check: sum of roots = −b/a = 5, product = c/a = 6.
- If a = 0 it is a linear, not quadratic, equation.
Questions people ask
What is the quadratic formula?
x = (−b ± √(b² − 4ac)) ÷ 2a.
What does the discriminant tell me?
How many roots and what kind: two real, one repeated or complex.
How do complex roots look?
As p ± qi, where i = √−1.
More calculators
Ohm's law & powerInverter battery backupRooftop solar sizeVoltage drop (copper, 1-phase)Number base converterLoan EMIGST add / removeGold jewellery priceLand unit converterPercentagePercent increase / decreaseDiscount / sale priceBill splitTrip fuel costElectricity bill (appliance)Recipe / catering scaleHow much loan for my EMI?Simple interestCompound interest / FDRecurring deposit (RD)SIP returnsCAGRFuture cost (inflation)Desi byaj (rupaye saikda)Trading position sizeIncome tax (new regime)Profit, margin & markupSelling price from marginBreak-evenCash counterCommissionGram ↔ tola, masha, rattiKarat purity & rateSilver valuePlot area (length × width)Irregular plot (4 sides + diagonal)Triangle area (3 sides)Stamp duty & registrationRental yieldHouse construction costConcrete: cement, sand, aggregateBricks for a wallPlaster materialFloor tilesPaint quantitySteel bar (sariya) weightWater tank capacityDilution (C₁V₁ = C₂V₂)MolarityIdeal gas (moles)Speed, distance, timeBMIDaily calories (BMR)Daily water intakeMilk payment (fat + SNF)Urea for nitrogenPesticide spray mixMandi sale profitCGPA to percentageMarks percentageAttendance plannerCricket run rateRequired run rate
This page in: हिंदी · मराठी · English
Updated 13 Nov 2026 · Desktop N Calculator v1.2.0