Quadratic Equation Solver
Solve any quadratic equation ax² + bx + c = 0 with the quadratic formula. Get the discriminant, both roots (real or complex), the vertex of the parabola, the factored form and a step-by-step solution.
Calculator
It can be negative or a decimal, but not 0.
Solutions
x₁ = 3, x₂ = −1
Δ > 0: two distinct real roots
Discriminant (Δ)
64
Δ = b² − 4ac
Vertex (h, k)
(1, −8)
Minimum point: the parabola opens upward
- Equation
- 2x² − 4x − 6 = 0
- Factored form
- 2(x − 3)(x + 1)
- Axis of symmetry
- x = 1
- Sum of the roots (−b/a)
- 2
- Product of the roots (c/a)
- −3
- y-intercept
- (0, −6)
Step by step with the quadratic formula
x = (−b ± √(b² − 4ac)) / 2a
Given: a = 2, b = −4, c = −6
Δ = b² − 4ac = (−4)² − 4 × 2 × (−6) = 16 + 48 = 64
√Δ = √64 = 8
x₁ = (4 + 8) / 4 = 12 / 4 = 3
x₂ = (4 − 8) / 4 = −4 / 4 = −1
Vertex:
h = −b / 2a = 4 / 4 = 1
k = −Δ / 4a = −64 / 8 = −8
Results are rounded to 6 decimal places. The roots are where the parabola y = ax² + bx + c crosses the x-axis.
Keep analyzing
- Find the hypotenuse or a missing leg of a right triangle with the Pythagorean theorem, and check whether three sides form a right triangle.Pythagorean theorem
- A free scientific calculator with powers, roots, logarithms, trig functions in degrees or radians, factorials, parentheses and the constants π and e.Scientific calculator
- List every factor of a whole number, its factor pairs and how many factors it has, plus its prime factorization and whether it's prime.Factors
- Add, subtract, multiply and divide fractions or simplify one, with the answer in simplest form, as a mixed number and as a decimal, plus the steps.Fractions
For estimates only. Double-check the numbers before making important decisions.
How to use the solver
- Move every term to one side so the equation equals 0. For example, x² + 3x = 40 becomes x² + 3x − 40 = 0.
- Enter the coefficients a (in front of x²), b (in front of x) and c (the constant). If a term is missing, its coefficient is 0; if you just see x², the coefficient is 1.
- Negatives and decimals are fine (−1.5). Only a can't be 0, because without the x² term the equation is linear, not quadratic.
The quadratic formula
x = (−b ± √(b² − 4ac)) / 2a Δ = b² − 4ac (the discriminant)
The ± gives you both solutions: x₁ uses +√Δ and x₂ uses −√Δ. The discriminant, the part under the square root, tells you ahead of time what kind of roots to expect.
| Discriminant | Roots | The parabola… | Example |
|---|---|---|---|
| Δ > 0 | Two distinct real roots | crosses the x-axis twice | x² − 5x + 6 = 0 (Δ = 1): x = 3 and x = 2 |
| Δ = 0 | One repeated real root | touches the x-axis once | x² − 4x + 4 = 0 (Δ = 0): x = 2 |
| Δ < 0 | Two complex conjugate roots | never touches the x-axis | x² + 2x + 5 = 0 (Δ = −16): x = −1 ± 2i |
How to read the results
- Roots (solutions or zeros): the x values that make the equation true. On the graph of y = ax² + bx + c, they're the x-intercepts.
- Vertex (h, k): the lowest point of the parabola when a > 0, or the highest when a < 0. It's found with h = −b / 2a and k = −Δ / 4a.
- Axis of symmetry: the vertical line x = h. Real roots sit the same distance from it on either side.
- Factored form: a(x − x₁)(x − x₂). It only exists over the real numbers when Δ ≥ 0.
- Sum and product of the roots: x₁ + x₂ = −b/a and x₁ · x₂ = c/a, a quick way to double-check your answer.
Where quadratic equations show up
- Projectile motion: the height of a thrown ball follows a parabola, and setting height = 0 tells you when it lands.
- Area problems: a rectangle 3 inches longer than it is wide with an area of 40 in² gives x(x + 3) = 40, or x² + 3x − 40 = 0. The positive root is x = 5, so it's 5 × 8 in. For other shapes, use the area calculator.
- Business math: when revenue or profit depends on price squared, the roots mark the break-even points and the vertex marks the maximum.
- Geometry: applying the Pythagorean theorem to sides written in terms of x often leads to a quadratic.
To check a root by hand, plug it back into the equation with the scientific calculator: the result should be 0.
Example: when does a ball hit the ground?
A ball is thrown upward at 64 ft/s from an 80-foot roof. Its height is h(t) = −16t² + 64t + 80. Setting h = 0 gives a = −16, b = 64 and c = 80. The roots are t = −1 and t = 5; time can't be negative, so the ball lands after 5 seconds. The vertex (2, 144) says it peaks at 144 feet after 2 seconds.
- Δ = b² − 4ac = 64² − 4 × (−16) × 80 = 4,096 + 5,120 = 9,216
- √Δ = √9,216 = 96
- t₁ = (−64 + 96) / (2 × (−16)) = 32 / (−32) = −1
- t₂ = (−64 − 96) / (2 × (−16)) = −160 / (−32) = 5
- Vertex: h = −64 / (−32) = 2; k = −9,216 / (−64) = 144
Common mistakes
- Reading the coefficients before setting the equation equal to 0: in x² + 3x = 40, c is −40, not 40.
- Dropping the sign of b: if b = −4, then −b = 4 and b² = 16 (not −16).
- Dividing only the square root by 2a instead of the whole numerator: it's (−b ± √Δ) / 2a, not −b ± √Δ / 2a.
- Assuming Δ < 0 means "no solution": there are no real solutions, but there are two complex ones.
Frequently asked questions
How do you solve a quadratic equation?
Set the equation equal to 0, identify a, b and c, and plug them into x = (−b ± √(b² − 4ac)) / 2a. Work out the discriminant first: if it's negative, you know right away the roots are complex.
What is the discriminant?
It's Δ = b² − 4ac, the expression under the square root in the quadratic formula. Positive means two real roots, zero means one repeated root, and negative means two complex conjugate roots.
What if b or c is missing?
Enter 0 for the missing coefficient. With b = 0, as in x² − 9 = 0, the roots are ±√9 = ±3. With c = 0, as in x² − 5x = 0, factor out x to get x(x − 5) = 0, so the roots are 0 and 5.
What do complex roots like −1 ± 2i mean?
The parabola never crosses the x-axis. The −1 is the x-coordinate of the vertex, and 2i is the imaginary part, where i = √(−1). In a word problem about real lengths or times, it usually means the situation described can't happen.
Related calculators
Keep going with the next step.
- Pythagorean theoremFind the hypotenuse or a missing leg of a right triangle with the Pythagorean theorem, and check whether three sides form a right triangle.
- Scientific calculatorA free scientific calculator with powers, roots, logarithms, trig functions in degrees or radians, factorials, parentheses and the constants π and e.
- FactorsList every factor of a whole number, its factor pairs and how many factors it has, plus its prime factorization and whether it's prime.
- FractionsAdd, subtract, multiply and divide fractions or simplify one, with the answer in simplest form, as a mixed number and as a decimal, plus the steps.