Quadratic Formula Calculator

Solve any quadratic equation in the form ax² + bx + c = 0. Enter your coefficients to find the roots instantly.

Quick Facts

The Formula
x = (-b ± sqrt(b²-4ac)) / 2a
Discriminant
D = b² - 4ac
Determines root nature
Root Types
Real or Complex
Based on discriminant sign
Vertex Form
a(x-h)² + k
h = -b/2a, k = f(h)

Solution

Calculated
Root 1 (x₁)
-
First solution
Root 2 (x₂)
-
Second solution
Discriminant
-
-

Key Takeaways

  • The quadratic formula x = (-b ± sqrt(b²-4ac)) / 2a solves any quadratic equation
  • The discriminant (b² - 4ac) determines whether roots are real or complex
  • Positive discriminant = 2 distinct real roots; Zero = 1 repeated root; Negative = 2 complex roots
  • Every quadratic equation has exactly 2 roots (counting multiplicity and complex numbers)
  • The vertex of a parabola is at x = -b/2a, useful for graphing and optimization

What Is the Quadratic Formula? A Complete Explanation

The quadratic formula is one of the most fundamental tools in algebra, providing a universal method to solve any quadratic equation. A quadratic equation is any polynomial equation of degree 2, written in the standard form ax² + bx + c = 0, where a, b, and c are constants and a is not equal to zero. The quadratic formula gives us the exact values of x that make this equation true.

Derived through the process of completing the square, the quadratic formula elegantly expresses the solutions (also called roots or zeros) of any quadratic equation. Whether you're a student learning algebra for the first time, an engineer analyzing projectile motion, or a scientist modeling population growth, the quadratic formula is an essential mathematical tool you'll use repeatedly throughout your career.

x = (-b ± sqrt(b² - 4ac)) / 2a
a = coefficient of x²
b = coefficient of x
c = constant term
± = gives two solutions

The ± symbol in the formula indicates that we get two solutions: one by adding the square root term and one by subtracting it. This aligns with the Fundamental Theorem of Algebra, which states that a polynomial of degree n has exactly n roots (counting multiplicity and complex numbers). Since quadratic equations are degree 2 polynomials, they always have exactly two roots.

Understanding the Discriminant: The Key to Root Nature

The discriminant, represented by the expression b² - 4ac (often denoted as D or Delta), is the key to understanding what kind of solutions a quadratic equation has before you even solve it. The discriminant appears under the square root in the quadratic formula, and its value determines the nature of the roots.

D > 0
2 Distinct Real Roots
Parabola crosses x-axis at two points
D = 0
1 Repeated Real Root
Parabola touches x-axis at vertex
D < 0
2 Complex Conjugate Roots
Parabola never crosses x-axis

Understanding the discriminant helps you anticipate what type of answer to expect and can help verify your calculations. For example, if you're solving a physics problem about when a ball hits the ground, a negative discriminant would indicate an error in your setup, since physical solutions require real values.

Pro Tip: Quick Discriminant Check

Before diving into the full calculation, compute b² - 4ac first. This quick check tells you whether to expect real or complex roots, helping you catch errors early and understand the problem's nature.

Step-by-Step Guide to Solving Quadratic Equations

1

Write in Standard Form

Rearrange your equation to match ax² + bx + c = 0. Move all terms to one side and identify the values of a, b, and c. Remember: a cannot be zero (otherwise it's not quadratic).

2

Calculate the Discriminant

Compute D = b² - 4ac. This tells you the nature of your roots and helps verify your final answer. Example: For x² - 5x + 6 = 0, D = (-5)² - 4(1)(6) = 25 - 24 = 1 > 0, so expect 2 real roots.

3

Apply the Formula

Substitute a, b, and c into x = (-b ± sqrt(b²-4ac)) / 2a. Calculate both the plus and minus versions to get both roots. For our example: x = (5 ± sqrt(1)) / 2 = (5 ± 1) / 2.

4

Simplify Your Answers

Calculate both solutions: x₁ = (5 + 1) / 2 = 3 and x₂ = (5 - 1) / 2 = 2. So the roots of x² - 5x + 6 = 0 are x = 2 and x = 3.

5

Verify Your Solution

Substitute each root back into the original equation to confirm. For x = 3: (3)² - 5(3) + 6 = 9 - 15 + 6 = 0. Correct! This verification step catches calculation errors.

Worked Example: Solving 2x² + 7x - 15 = 0

a coefficient 2
b coefficient 7
c coefficient -15

Discriminant = 7² - 4(2)(-15) = 49 + 120 = 169. Since sqrt(169) = 13, we get x = (-7 ± 13) / 4, giving us x₁ = 1.5 and x₂ = -5.

Real-World Applications of Quadratic Equations

Quadratic equations appear throughout science, engineering, economics, and everyday life. Understanding how to solve them opens doors to analyzing countless real-world phenomena.

Physics: Projectile Motion

When you throw a ball, launch a rocket, or analyze any object moving under gravity, the height follows a quadratic equation: h(t) = -1/2 gt² + v₀t + h₀. Solving this equation tells you when the object hits the ground, reaches maximum height, or passes through a specific altitude. Engineers use these calculations for everything from sports analytics to spacecraft trajectories.

Engineering: Structural Analysis

Architects and engineers use quadratic equations to calculate load distributions, beam deflections, and structural stress. The parabolic shape of suspension bridge cables, for instance, is described by quadratic functions, and understanding these equations is crucial for designing safe, efficient structures.

Economics: Profit Optimization

Businesses model revenue, cost, and profit functions using quadratic equations. Finding the maximum profit or break-even points involves solving quadratic equations. For example, if profit P(x) = -2x² + 100x - 800, solving P(x) = 0 finds break-even production levels, while the vertex gives maximum profit.

Computer Graphics and Gaming

Collision detection, ray tracing, and physics simulations in video games frequently use quadratic equations. When determining if a ray intersects a sphere or calculating ballistic trajectories, game engines solve thousands of quadratic equations per second.

Mathematical Insight

The quadratic formula is derived by completing the square on the general form ax² + bx + c = 0. This derivation process itself is a powerful technique used throughout higher mathematics, from solving differential equations to optimization problems.

Common Mistakes to Avoid

Even experienced mathematicians occasionally make errors with the quadratic formula. Being aware of common pitfalls helps you avoid them.

Watch Out For These Errors

Sign errors: The most common mistake is forgetting that -b means the opposite sign of b. If b = -5, then -b = 5, not -5. Always double-check your signs, especially with the ± operation.

  • Forgetting to set the equation to zero: The quadratic formula only works when your equation equals zero. Always rearrange first.
  • Misidentifying coefficients: In 3x² - x + 7 = 0, the coefficient b is -1, not 1. The sign is part of the coefficient.
  • Dividing only the first term by 2a: The entire numerator (-b ± sqrt(D)) must be divided by 2a, not just part of it.
  • Arithmetic errors in the discriminant: Calculate b² and 4ac separately, then subtract carefully. When b is negative, b² is positive.
  • Ignoring complex solutions: If the discriminant is negative, the equation still has solutions - they're just complex numbers with imaginary components.

Alternative Methods for Solving Quadratics

While the quadratic formula always works, other methods may be faster for specific types of equations.

Method Best For Example
Factoring Integer roots, simple coefficients x² - 5x + 6 = (x-2)(x-3)
Completing the Square Converting to vertex form x² + 6x + 5 = (x+3)² - 4
Square Root Method No x term (b = 0) x² - 16 = 0 gives x = ±4
Quadratic Formula All quadratics (universal) Any ax² + bx + c = 0
Graphing Approximations, visualization Find x-intercepts visually

Pro Tip: When to Use Which Method

Try factoring first if the coefficients are small integers. If the equation doesn't factor easily within 30 seconds, switch to the quadratic formula. It's guaranteed to work and often faster than struggling to find factors.

Advanced Concepts: Beyond the Basics

The Vertex and Axis of Symmetry

Every parabola y = ax² + bx + c has a vertex (the highest or lowest point) located at x = -b/(2a). This is actually the midpoint between the two roots! The y-coordinate of the vertex is found by substituting this x-value back into the equation. The vertical line x = -b/(2a) is called the axis of symmetry, and the parabola is mirror-symmetric about this line.

Sum and Product of Roots

For ax² + bx + c = 0 with roots r and s, Vieta's formulas tell us: r + s = -b/a and r × s = c/a. These relationships are useful for checking answers and solving problems where you know information about the roots but not the coefficients.

Complex Roots and the Complex Plane

When the discriminant is negative, the roots involve the imaginary unit i = sqrt(-1). Complex roots always come in conjugate pairs: if a + bi is a root, so is a - bi. These roots represent points in the complex plane and are essential in electrical engineering, quantum mechanics, and signal processing.

Connection to Polynomial Theory

The quadratic formula is a special case of more general methods for solving polynomials. While similar formulas exist for cubic and quartic equations (though much more complex), Galois theory proves that no such formula exists for polynomials of degree 5 or higher - making the quadratic formula even more special.

Frequently Asked Questions

If a = 0, the equation becomes bx + c = 0, which is a linear equation, not a quadratic. Linear equations have only one solution (x = -c/b) and don't require the quadratic formula. The term "quadratic" specifically refers to the presence of the x² term.

No. The Fundamental Theorem of Algebra guarantees that a polynomial of degree n has exactly n roots (counting multiplicity). A quadratic is degree 2, so it always has exactly 2 roots. These might be two different real numbers, one repeated real number, or two complex conjugates.

When the discriminant (b² - 4ac) is negative, the solutions involve the square root of a negative number, which gives imaginary numbers. The equation still has two solutions, but they're complex numbers like 2 + 3i and 2 - 3i. Graphically, this means the parabola doesn't cross the x-axis.

If b = 0: The equation is ax² + c = 0, solved by x = ±sqrt(-c/a). If c = 0: The equation is ax² + bx = 0, which factors as x(ax + b) = 0, giving x = 0 or x = -b/a. The quadratic formula still works in both cases, but these shortcuts are faster.

The formula is derived by completing the square on ax² + bx + c = 0. Dividing by a, moving c/a, adding (b/2a)² to both sides, and taking the square root yields the formula. This algebraic proof is taught in most algebra courses and demonstrates the mathematical foundation behind the formula.

If r is a root of ax² + bx + c = 0, then (x - r) is a factor of the polynomial. So if the roots are r and s, then ax² + bx + c = a(x - r)(x - s). This connection between roots and factors is fundamental in polynomial algebra and helps verify solutions.

You must first rearrange the equation to equal zero. For example, to solve x² + 3x = 10, subtract 10 from both sides to get x² + 3x - 10 = 0, then apply the formula with a=1, b=3, c=-10. Always ensure all terms are on one side before identifying coefficients.

This calculator uses standard JavaScript floating-point arithmetic, providing accuracy to approximately 15-16 significant digits. For most educational and practical purposes, this precision is more than sufficient. Results are displayed to 4 decimal places for readability.