ES EN FR PT DE IT

Quadratic Equation Calculator

Quadratic Equation Calculator. Free online calculator with formula, examples and step-by-step guide.

The Quadratic Equation Calculator is a free online math calculator. Quadratic Equation Calculator. Free online calculator with formula, examples and step-by-step guide. Get instant results with the detailed formula and step-by-step examples.
Inputs
Values
Result
Enter values and press Calculate

Quadratic Equation Calculator: Solve ax² + bx + c = 0 with Step-by-Step Solutions

What is a Quadratic Equation?

A quadratic equation is a second-degree polynomial equation written in the standard form ax² + bx + c = 0, where a, b, and c are constants and a ≠ 0. The "quadratic" name comes from "quad" meaning square—the variable x is squared, creating the distinctive parabolic curve when graphed.

Consider the equation 2x² + 7x + 3 = 0. Here, a = 2, b = 7, and c = 3. Unlike linear equations that have one solution, quadratic equations can have two real solutions, one repeated solution, or two complex (imaginary) solutions. The number and type of solutions depend entirely on a single value called the discriminant.

The solutions to a quadratic equation are called roots or zeros. These are the x-values where the parabola crosses the x-axis. For our example 2x² + 7x + 3 = 0, the roots are x = -0.5 and x = -3. You can verify: 2(-0.5)² + 7(-0.5) + 3 = 0.5 - 3.5 + 3 = 0 ✓

Quadratic equations appear throughout science and engineering. They describe projectile motion (the path of a thrown ball), optimize profit functions in economics, calculate braking distances in physics, and model population dynamics in biology. The ancient Babylonians solved quadratics over 4,000 years ago using geometric methods.

How It Works: The Quadratic Formula Explained

The quadratic formula provides a universal method for solving any quadratic equation, regardless of whether it factors nicely.

The Quadratic Formula: x = [-b ± √(b² - 4ac)] / (2a). This single formula gives both solutions. The ± symbol means you calculate twice: once with addition and once with subtraction.

The Discriminant: The expression under the square root, b² - 4ac, is called the discriminant. It determines the nature of the solutions:

  • Positive discriminant: Two distinct real roots. Example: x² - 5x + 6 = 0 has discriminant 25 - 24 = 1, giving roots x = 2 and x = 3.
  • Zero discriminant: One repeated real root. Example: x² - 6x + 9 = 0 has discriminant 36 - 36 = 0, giving the single root x = 3.
  • Negative discriminant: Two complex conjugate roots. Example: x² + 4x + 5 = 0 has discriminant 16 - 20 = -4, giving roots x = -2 ± i.

Derivation Insight: The quadratic formula comes from completing the square on the general equation ax² + bx + c = 0. Divide by a, move c/a to the right side, add (b/2a)² to both sides, then take the square root. This algebraic manipulation transforms the equation into a perfect square trinomial.

Alternative Methods: Factoring works when the quadratic breaks into integer binomials like (x + 2)(x + 3) = 0. Completing the square transforms ax² + bx + c into a(x - h)² = k form. Graphing finds where the parabola intersects the x-axis. The quadratic formula always works, making it the most reliable method.

Step-by-Step Guide: Solving Quadratic Equations

Step 1: Write the Equation in Standard Form
Ensure your equation equals zero and terms are ordered by descending powers. For 3x² = 8x - 5, rewrite as 3x² - 8x + 5 = 0. Now a = 3, b = -8, c = 5. Standard form is essential—the quadratic formula only works when the equation equals zero.

Step 2: Identify the Coefficients
Extract a, b, and c carefully, including their signs. For 2x² + 7x + 3 = 0: a = 2, b = 7, c = 3. For x² - 9 = 0: a = 1, b = 0, c = -9. For -4x² + 12x = 0: a = -4, b = 12, c = 0. Missing terms have coefficient zero.

Step 3: Calculate the Discriminant
Compute Δ = b² - 4ac. For 2x² + 7x + 3 = 0: Δ = 7² - 4(2)(3) = 49 - 24 = 25. Since 25 > 0, expect two distinct real roots. The discriminant also tells you if the roots are rational (perfect square discriminant) or irrational.

Step 4: Apply the Quadratic Formula
Substitute into x = [-b ± √(b² - 4ac)] / (2a). For our example: x = [-7 ± √25] / (2×2) = [-7 ± 5] / 4. This gives two calculations: x₁ = (-7 + 5) / 4 = -2/4 = -0.5 and x₂ = (-7 - 5) / 4 = -12/4 = -3.

Step 5: Simplify the Solutions
Reduce fractions and express in exact form when possible. For x² - 6x + 7 = 0: discriminant = 36 - 28 = 8, so x = [6 ± √8] / 2 = [6 ± 2√2] / 2 = 3 ± √2. Keep exact forms (3 + √2) for precision; use decimals (≈ 4.414) for applications.

Step 6: Verify Your Solutions
Substitute each root back into the original equation. For 2x² + 7x + 3 = 0 with x = -0.5: 2(0.25) + 7(-0.5) + 3 = 0.5 - 3.5 + 3 = 0 ✓. For x = -3: 2(9) + 7(-3) + 3 = 18 - 21 + 3 = 0 ✓. Verification catches sign errors and arithmetic mistakes.

Real-World Examples with Complete Calculations

Example 1: Projectile Motion
A ball is thrown upward with initial velocity 48 ft/s from height 6 ft. Its height after t seconds is h = -16t² + 48t + 6. When does it hit the ground? Set h = 0: -16t² + 48t + 6 = 0. Divide by -2: 8t² - 24t - 3 = 0. Using the formula: t = [24 ± √(576 + 96)] / 16 = [24 ± √672] / 16 = [24 ± 25.92] / 16. Positive solution: t = 49.92/16 ≈ 3.12 seconds. The ball hits the ground after about 3.12 seconds.

Example 2: Rectangle Dimensions
A rectangle has area 84 m² and perimeter 38 m. What are its dimensions? Let length = l and width = w. Then lw = 84 and 2l + 2w = 38, so l + w = 19. Substitute w = 19 - l into lw = 84: l(19 - l) = 84. This gives 19l - l² = 84, or l² - 19l + 84 = 0. Using the formula: l = [19 ± √(361 - 336)] / 2 = [19 ± √25] / 2 = [19 ± 5] / 2. Solutions: l = 12 or l = 7. The rectangle is 12 m × 7 m.

Example 3: Break-Even Analysis
A company's profit function is P(x) = -2x² + 240x - 5400, where x is units sold. At what production levels does the company break even (P = 0)? Solve -2x² + 240x - 5400 = 0. Divide by -2: x² - 120x + 2700 = 0. Using the formula: x = [120 ± √(14400 - 10800)] / 2 = [120 ± √3600] / 2 = [120 ± 60] / 2. Solutions: x = 90 or x = 30. The company breaks even at 30 and 90 units, with maximum profit between these points.

Example 4: Golden Ratio Calculation
The golden ratio φ satisfies φ² = φ + 1, or φ² - φ - 1 = 0. Using the formula: φ = [1 ± √(1 + 4)] / 2 = [1 ± √5] / 2. The positive solution is φ = (1 + √5) / 2 ≈ 1.6180339887... This irrational number appears in art, architecture, and nature. The negative solution (1 - √5) / 2 ≈ -0.618 is its conjugate.

Example 5: Stopping Distance
A car's stopping distance d (in feet) at speed v (in mph) follows d = 0.05v² + 1.1v. If a driver sees an obstacle 150 feet ahead, what's the maximum safe speed? Set 0.05v² + 1.1v = 150, giving 0.05v² + 1.1v - 150 = 0. Multiply by 20: v² + 22v - 3000 = 0. Using the formula: v = [-22 ± √(484 + 12000)] / 2 = [-22 ± √12484] / 2 = [-22 ± 111.73] / 2. Positive solution: v ≈ 44.87 mph. The maximum safe speed is about 45 mph.

Common Mistakes to Avoid

Mistake 1: Incorrect Sign Handling
When b is negative, -b becomes positive. For x² - 8x + 15 = 0, we have b = -8, so -b = +8. The formula gives x = [8 ± √(64 - 60)] / 2 = [8 ± 2] / 2, yielding x = 5 or x = 3. Writing x = [-8 ± ...] instead produces -5 and -3, which are wrong. Always write -(-8) = +8 explicitly.

Mistake 2: Forgetting the Denominator
The formula divides by 2a, not just 2. For 3x² + 5x - 2 = 0: x = [-5 ± √(25 + 24)] / 6 = [-5 ± 7] / 6, giving x = 1/3 or x = -2. Dividing by 2 instead of 6 gives x = 1 or x = -6, both incorrect. The coefficient a must multiply the 2 in the denominator.

Mistake 3: Discriminant Sign Errors
Computing b² - 4ac with negative coefficients causes mistakes. For 2x² - 3x - 5 = 0: b² - 4ac = (-3)² - 4(2)(-5) = 9 + 40 = 49. Students often write 9 - 40 = -31, incorrectly concluding complex roots. Remember: (-3)² = 9 (positive), and -4 × 2 × -5 = +40 (positive).

Mistake 4: Not Setting Equation to Zero
The quadratic formula requires standard form. For x² + 5x = 6, applying the formula directly with c = 6 gives wrong answers. First rewrite as x² + 5x - 6 = 0, then c = -6. The formula yields x = [-5 ± √(25 + 24)] / 2 = [-5 ± 7] / 2, giving x = 1 or x = -6. Verify: 1 + 5 = 6 ✓ and 36 - 30 = 6 ✓.

Pro Tips for Quadratic Equation Mastery

Tip 1: Check the Discriminant First
Before calculating roots, evaluate b² - 4ac. If it's negative, stop—there are no real solutions. If it's a perfect square (1, 4, 9, 16, 25...), the roots are rational and the quadratic factors nicely. For x² - 7x + 12 = 0, discriminant = 49 - 48 = 1 (perfect square), so it factors as (x - 3)(x - 4) = 0. This saves time on factorable quadratics.

Tip 2: Use the Sum and Product of Roots
For ax² + bx + c = 0, the sum of roots equals -b/a and the product equals c/a. For 2x² - 7x + 3 = 0 with roots 0.5 and 3: sum = 0.5 + 3 = 3.5 = 7/2 = -(-7)/2 ✓; product = 0.5 × 3 = 1.5 = 3/2 ✓. Use this to verify solutions instantly without substitution.

Tip 3: Simplify Before Applying the Formula
If all coefficients share a common factor, divide it out first. For 12x² + 18x - 30 = 0, divide by 6: 2x² + 3x - 5 = 0. The formula becomes easier: x = [-3 ± √(9 + 40)] / 4 = [-3 ± 7] / 4, giving x = 1 or x = -2.5. This reduces arithmetic errors and keeps numbers manageable.

Tip 4: Recognize Special Forms
Some quadratics solve faster with shortcuts. Difference of squares: x² - 144 = 0 gives x = ±12. Perfect square trinomial: x² + 10x + 25 = 0 factors as (x + 5)² = 0, giving x = -5 (repeated). Pure quadratic: 3x² - 75 = 0 simplifies to x² = 25, so x = ±5. Spot these patterns to skip the full formula.

Tip 5: Handle Complex Roots Systematically
When the discriminant is negative, write √(-D) = i√D. For x² + 6x + 13 = 0: discriminant = 36 - 52 = -16. The formula gives x = [-6 ± √(-16)] / 2 = [-6 ± 4i] / 2 = -3 ± 2i. The roots are complex conjugates. Always express as a ± bi where a and b are real numbers.

Frequently Asked Questions

No. A quadratic equation has exactly two solutions when counting multiplicity and complex numbers. This follows from the Fundamental Theorem of Algebra. You might get two distinct real roots (x² - 5x + 6 = 0 has x = 2, 3), one repeated root (x² - 6x + 9 = 0 has x = 3 twice), or two complex conjugates (x² + 4 = 0 has x = ±2i). Never more, never fewer.

If a = 0, the equation is no longer quadratic—it becomes linear: bx + c = 0. The quadratic formula divides by 2a, which would be undefined. Instead, solve the linear equation: x = -c/b. For example, 0x² + 4x - 8 = 0 simplifies to 4x = 8, giving x = 2. Always check that a ≠ 0 before using the quadratic formula.

The formula is derived by completing the square on the general equation ax² + bx + c = 0. This algebraic transformation is valid for all real (and complex) values of a, b, and c where a ≠ 0. Unlike factoring, which only works for special cases, completing the square is a universal method. The resulting formula encapsulates this process in a single expression.

Context determines which root applies. In projectile motion, negative time values are meaningless—use the positive root. For dimensions, reject negative lengths. In break-even analysis, both roots may be valid (minimum and maximum production). In the stopping distance example, we chose the positive speed. Always interpret both solutions in the problem's context before deciding.

Written and reviewed by the CalcToWork editorial team. Last updated: 2026-04-29.

Frequently Asked Questions

15% of 200 is 30. Calculated as 200 × 15 / 100 = 30.
Percentage change = ((final − initial) / |initial|) × 100. From 80 to 100 it is (20/80)×100 = 25%.
The Pythagorean theorem states that in a right triangle, c² = a² + b², where c is the hypotenuse and a, b are the legs.
If A corresponds to B, and we want what corresponds to C: X = (B × C) / A.