Home › Blog › Quadratic Formula Calculator

❤ Want to see our calculators more often in Google? Add us as a trusted source:

Quadratic Formula Calculator: Solve Any Quadratic Equation

Calculator200 Editorial Team — published September 2026, updated 18 September 2026

A quadratic formula calculator resolves one of algebra's most stubborn problems: finding the exact values of x that satisfy an equation of the form ax² + bx + c = 0. Enter the three coefficients, and it returns the roots — real or complex — along with the discriminant that tells you what kind of solutions to expect. Whether you are a student checking homework, an engineer modelling projectile motion, or someone who simply needs to verify a calculation, the quadratic formula removes the guesswork that factoring and completing the square often demand.

What the Quadratic Formula Calculator Does

The quadratic formula is a general solution for any second-degree polynomial equation. Written in its standard form, it looks like this:

x = (−b ± √(b² − 4ac)) / 2a

The calculator takes three inputs — a, b, and c — and applies this formula directly. It computes the discriminant first, then evaluates the square root, and finally returns both roots. When the discriminant is negative, the calculator switches to complex numbers and expresses the roots in terms of i, the imaginary unit.

What makes a dedicated quadratic formula calculator more useful than doing the arithmetic by hand is the handling of edge cases. Coefficient signs, large numbers, decimal inputs, and the special case where a equals zero — each requires careful treatment. A well-built calculator manages all of this without you having to think about it.

The Discriminant: What It Reveals Before You Solve

The expression under the square root, b² − 4ac, is called the discriminant. Mathematicians usually denote it with the Greek letter delta (Δ) or the letter D. Its value determines the nature of the roots without requiring you to complete the calculation.

Discriminant ValueNature of RootsGraph Behaviour
Δ > 0Two distinct real rootsParabola crosses the x-axis at two points
Δ = 0One repeated real rootParabola touches the x-axis at its vertex
Δ < 0Two complex conjugate rootsParabola does not intersect the x-axis

This table is not academic decoration. In physics, a negative discriminant for a projectile problem means the object never reaches the specified height. In engineering, it signals that a design parameter falls outside the feasible range. In pure algebra, it tells you whether to expect real answers or complex ones. A reliable discriminant calculator computes this value in isolation, which is useful when you only need to know the nature of the roots.

How to Use the Quadratic Formula: Step by Step

Working through the formula manually builds intuition that a calculator alone cannot provide. The process follows a consistent sequence.

  1. Write the equation in standard form. Rearrange the terms so the equation reads ax² + bx + c = 0. If the equation starts as 3x² = 5x − 2, move everything to the left side to get 3x² − 5x + 2 = 0.
  2. Identify a, b, and c. The coefficient of x² is a. The coefficient of x is b. The constant term is c. Watch the signs carefully — a negative b changes the entire calculation.
  3. Compute the discriminant. Calculate b² − 4ac. This single number tells you whether the roots are real or complex.
  4. Apply the formula. Substitute a, b, and the discriminant into x = (−b ± √Δ) / 2a. Simplify the square root if possible.
  5. Calculate both roots. Evaluate the expression once with the plus sign and once with the minus sign. These are your two solutions.

Consider a worked example: solve x² − 5x + 6 = 0. Here a = 1, b = −5, and c = 6. The discriminant is (−5)² − 4 × 1 × 6 = 25 − 24 = 1. Since Δ > 0, there are two real roots. Applying the formula: x = (5 ± √1) / 2, which gives x = 3 and x = 2. Cross-checking by factoring confirms the answer: (x − 2)(x − 3) = 0. The quadratic equation solver handles this sequence automatically and shows each intermediate step.

When to Use the Quadratic Formula (and When Not To)

Factoring is faster when the roots are integers and the coefficients are small. If you look at x² − 7x + 12 = 0 and immediately see that (x − 3)(x − 4) = 0, there is no reason to invoke the formula. But factoring stops being practical when the roots involve radicals, when the coefficients are decimals or fractions, or when the equation simply does not factor over the integers.

The quadratic formula has no such limitation. It works for every quadratic equation with real or complex coefficients, provided a ≠ 0. Completing the square sits between the two methods — useful for deriving the formula itself and for understanding the geometry of the parabola, but rarely the fastest route to a numerical answer.

The quadratic formula is the only method that gives every solution to every quadratic equation in one consistent process. Factoring and completing the square are shortcuts that work in specific cases. When in doubt, use the formula.

Real Roots, Complex Roots, and the Role of i

When the discriminant is negative, the square root involves the imaginary unit i, defined as √−1. For example, solving x² + 2x + 5 = 0 gives a discriminant of 4 − 20 = −16. The formula produces x = (−2 ± √−16) / 2, which simplifies to x = −1 ± 2i. These are complex conjugate roots — they come in pairs, one with a positive imaginary part and one with a negative imaginary part.

Complex roots do not mean the equation is unsolvable. They mean the solutions lie outside the real number line. In electrical engineering, complex roots describe oscillating circuits. In control theory, they indicate underdamped systems. The quadratic formula calculator displays complex roots in standard a + bi form, which is the format used in most textbooks and engineering references.

Deriving the Quadratic Formula from Completing the Square

The formula is not magic. It comes from completing the square on the general equation ax² + bx + c = 0. The derivation is worth knowing because it explains where each term originates.

  1. Start with ax² + bx + c = 0 and divide every term by a (since a ≠ 0): x² + (b/a)x + c/a = 0.
  2. Move the constant term to the right: x² + (b/a)x = −c/a.
  3. Add (b/2a)² to both sides to complete the square: x² + (b/a)x + (b/2a)² = −c/a + (b/2a)².
  4. Factor the left side as a perfect square: (x + b/2a)² = (b² − 4ac) / 4a².
  5. Take the square root of both sides: x + b/2a = ±√(b² − 4ac) / 2a.
  6. Isolate x: x = −b/2a ± √(b² − 4ac) / 2a, which combines to x = (−b ± √(b² − 4ac)) / 2a.

This derivation shows why the discriminant appears under the square root and why the denominator is 2a. It also confirms that the formula is exact, not approximate — a fact that matters when precision is required.

Quadratic Equations in Physics and Engineering

The quadratic formula is not confined to mathematics classrooms. It appears wherever acceleration, area, or optimisation problems arise.

Projectile Motion

An object thrown upward follows a height function of the form h(t) = h₀ + v₀t − ½gt², where h₀ is the initial height, v₀ is the initial velocity, and g is the acceleration due to gravity. To find when the object hits the ground, set h(t) = 0 and solve for t. The quadratic formula gives two values — one positive and one negative. The negative value represents the time before the throw, which is physically meaningless but mathematically consistent. A projectile motion calculator applies this logic directly.

Area and Design Problems

Suppose a rectangular garden has a length one metre less than three times its width, and the total area must be 150 square metres. Setting up the equation 3w² − w − 150 = 0 and applying the quadratic formula gives the width. The negative root is discarded because a physical dimension cannot be negative. This pattern — two roots, one physically valid — recurs constantly in engineering design.

Profit Maximisation

Businesses model profit as a quadratic function of price or production volume. Finding the break-even points requires solving a quadratic equation. The break-even calculator extends this idea to financial planning.

Common Mistakes to Avoid

Even experienced students make predictable errors when applying the formula. The most common is mishandling the sign of b. In the expression −b, if b is already negative, the result becomes positive. Forgetting this changes the entire answer.

Another frequent mistake is failing to write the equation in standard form before identifying a, b, and c. If the equation reads 5x² = 3x + 2, the coefficients are not 5, 3, and 2. You must rearrange to 5x² − 3x − 2 = 0 first, which makes a = 5, b = −3, and c = −2.

A third pitfall is treating a = 0 as a valid input. If a is zero, the equation is linear, not quadratic, and the formula is undefined. The quadratic equation solver flags this condition and prompts you to correct the input.

Frequently Asked Questions

What is the quadratic formula and when should I use it?

The quadratic formula is x = (−b ± √(b² − 4ac)) / 2a. It solves any quadratic equation written as ax² + bx + c = 0, where a is not zero. Use it when factoring is not obvious, when the coefficients are decimals or large numbers, or when you need both real and complex roots without guesswork.

How do I know if a quadratic equation has real roots?

Check the discriminant, D = b² − 4ac. If D is positive, there are two distinct real roots. If D equals zero, there is one repeated real root. If D is negative, the equation has two complex conjugate roots and no real solution. The discriminant tells you the nature of the roots before you calculate them.

Can the quadratic formula handle equations that do not start in standard form?

Yes, but you must rearrange the equation first. Move every term to one side so the equation reads ax² + bx + c = 0 with zero on the other side. Only then can you correctly identify a, b, and c and substitute them into the formula.

What are the limitations of the quadratic formula?

The formula only works for quadratic equations, meaning the highest power of x is 2. It cannot solve cubic or higher-degree equations. It also requires that a is not zero. If a is zero, the equation is linear, not quadratic, and the formula does not apply.

How is the quadratic formula used in real life?

It models projectile motion, helping calculate when a ball thrown upward returns to the ground. Engineers use it to design parabolic reflectors in satellite dishes and car headlights. It also appears in profit maximisation problems, area calculations, and physics experiments involving acceleration.

Why does the quadratic formula have a plus-minus sign?

The ± symbol appears because a square root has two possible signs. When you take the square root of a positive number, both the positive and negative values satisfy the equation. The quadratic formula captures both roots in a single expression, which is why it returns two solutions for most equations.

The quadratic formula calculator transforms a process that is tedious and error-prone by hand into something instantaneous and precise. It handles the discriminant, the square root, the signs, and the complex-number case in one consistent flow. Whether you are working through a physics problem, checking a homework answer, or designing a structure that relies on parabolic geometry, the formula and the calculator that implements it give you the exact roots — real or complex — without ambiguity. Use the quadratic formula calculator above, enter your coefficients, and let the algebra resolve itself.