purpose
Quadratic Equation Solver
Solve any quadratic equation ax^2 + bx + c = 0 with the quadratic formula, factoring, or completing the square. See step-by-step solutions and discriminant analysis.
Click to show tips
Try an Example
Pick a scenario to see how the calculator works, then adjust the values
Quadratic Equation
Solve a classic quadratic with two real roots.
Key values: x^2 - 5x + 6 = 0 · Two real roots
Linear Equation
Solve a simple linear equation for x.
Key values: 3x + 7 = 22 · Single root
Transcendental Equation
Find roots of sin(x) = x/3 using numerical methods.
Key values: sin(x) = x/3 · Numerical solution
Cubic with Complex Roots
Solve a cubic equation and show complex roots.
Key values: x^3 + x + 1 = 0 · Complex roots enabled
The Quadratic Formula
For any quadratic equation with :
This formula always works — even when factoring is impractical or the roots are irrational.
The Discriminant
The expression under the square root, , determines the nature of the roots:
| Discriminant | Roots | Graph crosses x-axis |
|---|---|---|
| Two distinct real roots | Twice | |
| One repeated real root | Once (tangent) | |
| Two complex conjugate roots | Never |
Three Solution Methods
Factoring
Find two numbers that multiply to and add to . Fastest when it works, but only for “nice” integer roots.
Completing the Square
Transform to form. Shows the vertex of the parabola. This is how the quadratic formula itself is derived.
Quadratic Formula
Always works. Plug in , , and compute. Best for irrational or complex roots.
Vieta's Formulas
The roots and relate directly to the coefficients without solving:
Useful for checking answers or solving problems that ask for the sum or product of roots without finding the roots themselves.
Frequently Asked Questions
What is the quadratic formula?
The quadratic formula solves any equation of the form . It states . It works for all quadratic equations, even when factoring is impractical.
What does the discriminant tell you?
The discriminant is the expression under the square root. If it is positive, there are two distinct real roots. If it equals zero, there is one repeated real root. If it is negative, there are two complex conjugate roots.
When should I factor instead of using the quadratic formula?
Factoring is fastest when the roots are small integers. Try factoring first by looking for two numbers that multiply to and add to . If no obvious factors exist, use the quadratic formula directly.
Can a quadratic equation have no real solutions?
Yes. When the discriminant is negative, the equation has no real solutions. Instead it has two complex conjugate roots of the form , where .
What are Vieta's formulas for quadratic equations?
Vieta's formulas relate the roots and to the coefficients without solving: the sum of roots equals and the product of roots equals . These are useful for checking answers or solving problems that ask for the sum or product of roots.
Related purpose Variants
Explore more purpose options
More Math Calculators
Explore the category