Quadratic equation solver
Solve ax² + bx + c = 0, including complex roots, with the working shown.
How it works
Solves any quadratic, showing the discriminant, both roots, the vertex and the axis of symmetry.
The discriminant b² − 4ac decides everything before you compute a root. Positive gives two distinct real roots; zero gives one repeated root, where the parabola touches the axis rather than crossing it; negative gives a conjugate pair of complex roots, meaning the curve never meets the x-axis at all.
The tool reports complex roots rather than declaring no solution, because "no real roots" and "no roots" are different statements and the complex pair is often what is actually wanted.
A note on precision: when b² is much larger than 4ac, the standard formula loses accuracy for one of the roots through catastrophic cancellation — subtracting two nearly equal numbers. This solver uses the numerically stable form for that case, which is why its answers stay correct where a naive implementation drifts.
This tool runs entirely in your browser. Nothing you enter is sent to a server, logged or stored, and the page keeps working with the network disconnected.
Common questions
- What does the discriminant tell you?
- b² − 4ac. Positive means two real roots, zero means one repeated root, negative means two complex roots and a curve that never crosses the x-axis.
- What if a is zero?
- Then it is not a quadratic but a linear equation, and it has one root at −c/b. The tool handles that case rather than dividing by zero.
Related pages
- Percentage calculator Work out a percentage of a number, what percent one number is of another, and percentage change.
- Loan and EMI calculator Monthly payment, total interest and total repaid for any loan amount, rate and term.
- BMI calculator Body mass index from height and weight, in metric or imperial, with what the number does and does not mean.
- Tip calculator Work out a tip and split the bill, with the per-person figure rounded sensibly.
- Age calculator Exact age in years, months and days from a date of birth, plus total days and the next birthday.
- Paint calculator How much paint a room needs, allowing for doors, windows and the number of coats.
- Compound interest calculator Growth of a lump sum plus regular contributions, with the interest shown separately.
- Calorie and BMR calculator Resting metabolic rate and daily calorie needs by activity level.
- Dog age calculator A dog's age in human years, using the research formula rather than multiplying by seven.
- Discount calculator Find the sale price and how much you save, including stacked discounts and tax.
Sources
- Calculated on this page — At One Place