Quadratic Formula Calculator - Solve Any Quadratic Equation Step by Step
The quadratic formula is one of the most powerful and universally applicable tools in algebra. It solves every equation of the form ax² + bx + c = 0, regardless of whether the equation is factorable, regardless of how messy the coefficients are, and regardless of whether the solutions are whole numbers or irrational decimals. Understanding how it works - not just how to plug numbers in - transforms it from a memorized formula into a genuinely useful problem-solving tool.
This guide walks through the complete quadratic formula with worked examples across all three discriminant cases, explains what each part of the formula is actually doing, and shows how to use the quadratic formula calculator step by step tool at CalcAdvisor.com to solve any quadratic equation and verify your work.
What a Quadratic Equation Is and Where the Formula Comes From
A quadratic equation is any polynomial equation where the highest power of the variable is 2, written in standard form as ax² + bx + c = 0, where a, b, and c are known constants and a is not equal to zero (if a were zero, the x² term disappears and the equation becomes linear rather than quadratic). The solutions - the values of x that make the equation true - are called roots or zeros of the equation, and geometrically they represent the x-coordinates where the corresponding parabola y = ax² + bx + c crosses or touches the x-axis.
The quadratic formula was derived by completing the square on the general form ax² + bx + c = 0. Starting from ax² + bx + c = 0, divide everything by a: x² + (b/a)x + c/a = 0. Move c/a to the right side: x² + (b/a)x = -c/a. Complete the square by adding (b/2a)² to both sides: x² + (b/a)x + b²/(4a²) = b²/(4a²) - c/a. The left side is now a perfect square: (x + b/2a)² = (b² - 4ac) / (4a²). Taking the square root of both sides and solving for x produces the quadratic formula: x = (-b +/- sqrt(b² - 4ac)) / (2a).
This derivation matters because it shows the formula is not arbitrary - it is the exact algebraic result of completing the square on any quadratic, meaning it works for every possible quadratic equation, not just the ones that happen to factor neatly.
The Discriminant - Predicting How Many Real Solutions Exist Before You Solve
The expression under the square root sign - b² - 4ac - is called the discriminant, and it does something remarkable: it tells you exactly how many real solutions the equation has before you complete the calculation.
If b² - 4ac is positive: The square root produces a real positive number. The plus-or-minus in the formula generates two different real solutions. Graphically, the parabola crosses the x-axis at two distinct points.
If b² - 4ac equals zero: The square root of zero is zero. The plus-or-minus adds and subtracts nothing, so both versions of the formula produce the same answer: x = -b / (2a). The equation has exactly one real solution, sometimes called a repeated root. Graphically, the parabola just touches the x-axis at exactly one point - its vertex sits on the x-axis.
If b² - 4ac is negative: The square root of a negative number is not a real number. The equation has no real solutions. Graphically, the parabola sits entirely above or entirely below the x-axis without crossing it. The solutions exist but are complex (imaginary) numbers, involving the imaginary unit i where i² = -1. For most practical contexts in physics, engineering, and basic algebra, a negative discriminant means the problem has no real-world solution and warrants rechecking the setup.
The Formula Explained With a Full Worked Example
The formula: For ax² + bx + c = 0: x = (-b +/- sqrt(b² - 4ac)) / (2a)
Case 1 - Two real roots (positive discriminant): Solve 2x² - 7x + 3 = 0. Here a = 2, b = -7, c = 3.
Step 1 - Calculate the discriminant: b² - 4ac = (-7)² - 4(2)(3) = 49 - 24 = 25. Positive, so two real roots expected.
Step 2 - Apply the formula: x = (-(-7) +/- sqrt(25)) / (2 x 2) = (7 +/- 5) / 4.
Step 3 - Solve for both roots: x = (7 + 5) / 4 = 12 / 4 = 3. And: x = (7 - 5) / 4 = 2 / 4 = 0.5. The two solutions are x = 3 and x = 0.5.
Verification: Plug x = 3 back into 2(3)² - 7(3) + 3 = 18 - 21 + 3 = 0. Correct. Plug x = 0.5: 2(0.25) - 7(0.5) + 3 = 0.5 - 3.5 + 3 = 0. Correct.
Case 2 - Exactly one real root (zero discriminant): Solve x² - 6x + 9 = 0. Here a = 1, b = -6, c = 9.
Step 1 - Discriminant: (-6)² - 4(1)(9) = 36 - 36 = 0. Zero discriminant, so exactly one root expected.
Step 2 - Apply the formula: x = (-(-6) +/- sqrt(0)) / (2 x 1) = (6 +/- 0) / 2 = 6 / 2 = 3. The single solution is x = 3.
Note: This equation could also have been factored as (x - 3)² = 0, confirming the repeated root x = 3. The parabola y = x² - 6x + 9 just touches the x-axis at x = 3.
Case 3 - No real roots (negative discriminant): Solve x² + 2x + 5 = 0. Here a = 1, b = 2, c = 5.
Step 1 - Discriminant: (2)² - 4(1)(5) = 4 - 20 = -16. Negative discriminant, so no real roots.
Step 2 - The formula produces: x = (-2 +/- sqrt(-16)) / 2. Since sqrt(-16) is not a real number, the equation has no real solutions. The parabola y = x² + 2x + 5 sits entirely above the x-axis.
| Discriminant (b² - 4ac) | Number of Real Roots | Graph Behavior | Example |
|---|---|---|---|
| Positive (e.g. 25) | 2 distinct real roots | Parabola crosses x-axis twice | 2x² - 7x + 3 = 0, roots at x = 3 and x = 0.5 |
| Zero (0) | 1 repeated real root | Parabola touches x-axis once at vertex | x² - 6x + 9 = 0, root at x = 3 |
| Negative (e.g. -16) | 0 real roots | Parabola entirely above or below x-axis | x² + 2x + 5 = 0, no real solution |
How to Use This Calculator on CalcAdvisor.com
Step 1 - Write your equation in standard form. Rearrange to ax² + bx + c = 0 before identifying the coefficients. For example, the equation 3x² = 5x - 2 needs to be rewritten as 3x² - 5x + 2 = 0 before you can correctly identify a = 3, b = -5, c = 2.
Step 2 - Identify coefficients a, b, and c carefully. Pay close attention to signs. If the equation is x² - 4x - 12 = 0, then a = 1, b = -4 (negative four, not positive four), and c = -12. Misreading a sign is the single most common error in quadratic formula applications.
Step 3 - Enter a, b, and c into the calculator. The calculator at CalcAdvisor.com shows the discriminant value, then both roots separately, then the vertex coordinates of the corresponding parabola.
Step 4 - Verify the roots by substitution. Plug each solution back into the original equation and confirm both sides equal zero. This takes 30 seconds and guarantees the result is correct.
Solve your quadratic equation now at https://www.calcadvisor.com/calculators/quadratic-formula-calculator.
3 Real-World Examples
Example 1: Projectile Motion - How Long Until a Ball Hits the Ground
A ball is thrown upward from a height of 12 meters with an initial velocity of 15 meters per second. Its height h(t) in meters at time t seconds is given by h(t) = -4.9t² + 15t + 12. Setting h(t) = 0 to find when it hits the ground: -4.9t² + 15t + 12 = 0. Here a = -4.9, b = 15, c = 12.
Discriminant: (15)² - 4(-4.9)(12) = 225 + 235.2 = 460.2. Positive, so two real roots expected.
t = (-15 +/- sqrt(460.2)) / (2 x -4.9) = (-15 +/- 21.452) / -9.8.
Root 1: (-15 + 21.452) / -9.8 = 6.452 / -9.8 = -0.658 seconds. Negative time has no physical meaning here.
Root 2: (-15 - 21.452) / -9.8 = -36.452 / -9.8 = 3.72 seconds. The ball hits the ground approximately 3.72 seconds after being thrown.
Example 2: Break-Even Analysis in Business
A small manufacturer's profit P in thousands of dollars depends on units produced x, modeled as P = -2x² + 18x - 28. Setting P = 0 to find break-even points: -2x² + 18x - 28 = 0. Dividing through by -2: x² - 9x + 14 = 0. Here a = 1, b = -9, c = 14.
Discriminant: (-9)² - 4(1)(14) = 81 - 56 = 25. Positive, so two real roots.
x = (9 +/- sqrt(25)) / 2 = (9 +/- 5) / 2. Root 1: (9 + 5) / 2 = 7. Root 2: (9 - 5) / 2 = 2.
The company breaks even at 2,000 units and again at 7,000 units. Profit is positive between these two production levels and negative outside them - the manufacturer should aim to produce between 2,000 and 7,000 units to remain profitable.
Example 3: Finding Dimensions of a Rectangle From Area and Perimeter Constraints
A rectangular garden has a perimeter of 34 meters and an area of 60 square meters. Find the length and width. Let length = x. Since perimeter = 2(length + width) = 34, we get length + width = 17, so width = 17 - x. Area = length x width: x(17 - x) = 60. Expanding: 17x - x² = 60. Rearranging to standard form: x² - 17x + 60 = 0. Here a = 1, b = -17, c = 60.
Discriminant: (-17)² - 4(1)(60) = 289 - 240 = 49. Positive, two real roots.
x = (17 +/- sqrt(49)) / 2 = (17 +/- 7) / 2. Root 1: (17 + 7) / 2 = 12. Root 2: (17 - 7) / 2 = 5.
The two roots give the same rectangle from different perspectives: length = 12 meters and width = 5 meters. Verification: perimeter = 2(12 + 5) = 34 meters. Area = 12 x 5 = 60 square meters. Both conditions satisfied.
Common Mistakes to Avoid
- Sign errors when substituting negative values for b: If b = -7, then -b = -(-7) = +7, not -7. The formula begins with -b, meaning the sign of b is flipped. This is the single most common quadratic formula error, especially when b is already negative.
- Forgetting that the plus-or-minus produces two separate answers: The formula gives two roots - you must calculate both the addition version and the subtraction version separately. Solving only one and stopping early misses half the answer.
- Miscalculating the discriminant by computing b² - 4ac incorrectly: When a and c have opposite signs, the term -4ac becomes positive (negative times negative times negative = negative, but then -4 x negative x negative = -4 x positive = negative... careful). Always compute 4ac first as a separate step, then subtract it from b².
- Forgetting to divide the entire numerator by 2a: The formula is (-b +/- sqrt(discriminant)) divided by 2a - the entire numerator, including the -b term, is divided by 2a. Writing -b/2a +/- sqrt(discriminant) is incorrect.
- Not rearranging to standard form before identifying coefficients: If the equation is given as 5 = 3x - x², you must rewrite as x² - 3x + 5 = 0 (or equivalently -x² + 3x - 5 = 0) before reading off a, b, and c. Using coefficients from the un-rearranged form produces completely wrong results.
- Confusing the discriminant with the full formula result: The discriminant b² - 4ac is just the expression under the square root. It is one component of the formula, not the answer itself.
- Applying the formula to an equation that is not actually quadratic: The equation must have an x² term with a nonzero coefficient. An equation like 3x + 7 = 0 is linear, not quadratic, and the quadratic formula does not apply.
Expert Tips
- Always calculate the discriminant first as a separate step. Knowing whether b² - 4ac is positive, zero, or negative before applying the full formula tells you immediately how many solutions to expect and prevents the confusion of getting an unexpected result midway through.
- Verify every solution by substituting back into the original equation. If plugging x back into ax² + bx + c does not give exactly zero (within rounding tolerance), an arithmetic error occurred somewhere. Verification takes less time than re-doing the entire calculation from scratch.
- Check whether the equation factors before using the quadratic formula. For equations with integer roots, factoring is faster than the formula. If 6x² - 13x + 6 = 0 factors as (3x - 2)(2x - 3) = 0 quickly by inspection, the formula is unnecessary. Use the formula when factoring is not obvious or when the roots are non-integer.
- For projectile and physics problems, check whether both roots are physically meaningful. The formula always produces two roots mathematically, but in real-world problems one root is often a negative time or negative distance that has no physical interpretation and should be discarded.
- Use the quadratic formula calculator step by step tool at CalcAdvisor.com to check hand calculations. For homework, exams, or engineering work, it's worth solving by hand first and then verifying with the calculator - this builds understanding while eliminating arithmetic errors in the final answer.
Frequently Asked Questions
What does the quadratic formula actually solve?
The quadratic formula finds the values of x (called roots or zeros) that satisfy the equation ax² + bx + c = 0, meaning the values that make the left side equal to exactly zero. Geometrically, these are the x-coordinates where the parabola y = ax² + bx + c intersects or touches the x-axis. The formula works for any quadratic equation regardless of whether it is factorable using whole numbers.
What is the discriminant in the quadratic formula?
The discriminant is the expression b² - 4ac, the part under the square root sign. Its value predicts the number and type of solutions: a positive discriminant means two distinct real roots; a zero discriminant means exactly one real root (a repeated root where the parabola touches the x-axis at its vertex); a negative discriminant means no real roots, only complex (imaginary) solutions, meaning the parabola sits entirely above or below the x-axis without crossing it.
When should I use the quadratic formula instead of factoring?
Use factoring when the roots are small integers and the equation factors neatly by inspection or trial - this is faster. Use the quadratic formula when the equation does not factor easily with integers, when the coefficients are large or fractional, when the roots are irrational decimals, or when you need a guaranteed method that works regardless of the equation's structure. The formula always works; factoring only works conveniently for certain equations.
Can the quadratic formula give a negative number under the square root?
Yes, when the discriminant b² - 4ac is negative. In this case, the equation has no real number solutions. The square root of a negative number involves the imaginary unit i, and the two solutions are complex conjugate pairs of the form (-b plus or minus ki) / (2a) where k = sqrt(absolute value of discriminant). For most real-world physics and engineering applications, a negative discriminant means the problem setup should be re-examined since no physically meaningful solution exists.
How do I put a quadratic equation into standard form?
Standard form is ax² + bx + c = 0, with all terms on the left side and zero on the right side. Move every term to the left: if the equation is 3x² = 7x - 2, subtract 7x and add 2 to both sides to get 3x² - 7x + 2 = 0. Then read off a = 3, b = -7, c = 2. Always arrange in descending power order (x² term first, then x term, then constant) to avoid sign errors when identifying the coefficients.
What does it mean graphically when the discriminant equals zero?
A zero discriminant means the parabola y = ax² + bx + c just touches the x-axis at exactly one point without crossing it - its vertex sits precisely on the x-axis. The single repeated root x = -b / (2a) is both the solution to the equation and the x-coordinate of the parabola's vertex. This scenario corresponds to a perfect square trinomial: the left side factors as a(x - r)² for some value r.
Final Thoughts
The quadratic formula is one of those rare mathematical tools that is simultaneously completely general and completely mechanical - it solves every quadratic equation without requiring any creativity or case-by-case judgment, as long as you identify the coefficients correctly and handle the arithmetic carefully. The discriminant makes it even more powerful by letting you predict the structure of the answer before completing the calculation.
Solve any quadratic equation now at https://www.calcadvisor.com/calculators/quadratic-formula-calculator. The quadratic formula calculator step by step tool shows the discriminant evaluation, both root calculations, and the vertex coordinates of the corresponding parabola - the complete picture from a single set of inputs.