What Is the Quadratic Formula and How Does It Work?

The quadratic formula is x = (-b ± √(b² – 4ac)) / 2a. It solves any equation in the form ax² + bx + c = 0, giving you the exact values of x where the equation equals zero. If you’ve ever needed to find where a parabola crosses the x-axis or solve a problem involving areas, trajectories, or profit curves, this is the tool that gets you there every time.

How the Formula Works

A quadratic equation is any equation where the highest power of the variable is 2. The standard form is ax² + bx + c = 0, where a, b, and c are just numbers. The only rule is that a can’t be zero (if it were, you wouldn’t have a squared term, and it wouldn’t be quadratic). The values of b and c can be zero, though.

To use the formula, you plug in the values of a, b, and c from your equation. The “±” symbol means you calculate the expression twice: once with addition, once with subtraction. That gives you up to two solutions, which makes sense because a parabola can cross the x-axis in two places, one place, or not at all.

Take the equation 2x² + 5x – 3 = 0. Here, a = 2, b = 5, and c = -3. Plugging those into the formula: x = (-5 ± √(25 + 24)) / 4, which simplifies to x = (-5 ± 7) / 4. The two solutions are x = 1/2 and x = -3.

The Discriminant Tells You What to Expect

The expression under the square root sign, b² – 4ac, is called the discriminant. Before you even finish solving, it tells you how many solutions you’ll get:

  • Positive discriminant (b² – 4ac > 0): Two distinct real solutions. The parabola crosses the x-axis at two points.
  • Zero discriminant (b² – 4ac = 0): One repeated solution. The parabola just touches the x-axis at its vertex.
  • Negative discriminant (b² – 4ac < 0): No real solutions. The parabola floats entirely above or below the x-axis.

Checking the discriminant first saves you time. If it’s negative and you only need real answers, you can stop right there.

What Happens With a Negative Discriminant

When the discriminant is negative, you end up taking the square root of a negative number. That’s where imaginary numbers come in. The square root of -1 is defined as “i,” and the solutions become complex numbers with a real part and an imaginary part.

For example, if the formula gives you √(-4), that becomes 2i, because √(-4) = √(-1) × √(4) = i × 2. A final answer might look like x = 3/2 + (1/2)i and x = 3/2 – (1/2)i. Notice the two solutions are always mirror images of each other, one with a positive imaginary part and one with a negative. Complex solutions always come in these pairs.

Where It Comes From

The quadratic formula isn’t pulled from thin air. It’s derived from a technique called completing the square, applied to the general equation ax² + bx + c = 0. The logic goes like this:

First, move c to the other side: ax² + bx = -c. Then divide everything by a so the squared term has no coefficient: x² + (b/a)x = -c/a. Now take half the coefficient of x, which is b/(2a), and square it to get b²/(4a²). Add that value to both sides. The left side now factors neatly into (x + b/(2a))², and the right side combines into (b² – 4ac) / (4a²). Take the square root of both sides, solve for x, and you arrive at x = (-b ± √(b² – 4ac)) / 2a.

Every step uses basic algebra. The formula just packages the whole process into a single expression so you don’t have to repeat those steps every time.

When to Use It Instead of Factoring

Factoring is faster when it works. If you can quickly spot two numbers that multiply to give ac and add to give b, factoring gets you to the answer in fewer steps. For something like x² + 5x + 6 = 0, factoring to (x + 2)(x + 3) = 0 is immediate.

The quadratic formula becomes essential when factoring doesn’t cooperate. Some quadratics don’t have factors that are tidy whole numbers, even though they still have perfectly valid solutions. An equation like 3x² – 7x + 1 = 0 is awkward to factor but straightforward with the formula. And for any equation with complex (imaginary) solutions, factoring over real numbers simply won’t work. The quadratic formula handles all three cases, every time, which is why it’s the universal fallback.

Real-World Applications

Quadratic equations show up whenever a relationship involves squaring. The most intuitive example is projectile motion. When you throw a ball, its height at any moment follows a quadratic equation. If the height is modeled by h = 3 + 14t – 5t², finding when the ball hits the ground means setting h to zero and solving 3 + 14t – 5t² = 0. The quadratic formula gives you the time of impact.

Economics uses the same math. A company modeling its profit as a function of price might end up with an equation like Profit = -200P² + 92,000P – 8,400,000. Setting that equal to a target profit and solving tells you which price points hit the goal. Engineering and design problems involving areas also produce quadratic equations, since area calculations often involve multiplying a variable by itself.

In all these cases, the quadratic formula does the same job: it finds the exact input values that produce a specific output in a squared relationship.

A Brief History

The ideas behind the quadratic formula are ancient. Babylonian mathematicians around 1800 BC were solving quadratic equations using a method essentially equivalent to completing the square, though they worked with specific numerical problems rather than a general formula. Around 300 BC, Euclid developed a geometric approach that amounted to the same thing, finding lengths that satisfied quadratic relationships.

The Indian mathematician Brahmagupta, working in the 7th century AD, produced a method that looks close to the modern formula and was notable for accepting negative numbers as valid solutions. In the 9th century, the Persian mathematician al-Khwarizmi (whose name gives us the word “algorithm”) classified different types of quadratic equations and gave rules for solving each, with geometric proofs based on completing the square. The first European book to present the complete solution was published in 1145 by Abraham bar Hiyya Ha-Nasi. By then, the core math had been refined across multiple civilizations over nearly 3,000 years.