Quadratic Equation Calculator


Solve ax^2 + bx + c = 0 instantly. Find both roots with the quadratic formula, check the discriminant, and see the parabola graphed.

Use this quadratic equation calculator to quickly solve equations in the form ax2 + bx + c = 0. Enter your values to find the roots (solutions), apply the quadratic formula, and see the parabola on a graph instantly.

The calculator also shows the step-by-step formula with your values and calculates the discriminant D = b2 - 4ac, so you can easily understand whether the equation has two real solutions, one repeated root, or complex solutions.

Worked example: for x2 + 4x - 12 = 0 (a=1, b=4, c=-12), the discriminant is D = 42 - 4(1)(-12) = 16 + 48 = 64. Since D > 0, there are two real roots: x = (-4 ± 8) / 2, giving x = 2 and x = -6.

$$ax^{2}+bx+c=0$$

Quadratic equation solution formula

$$\begin{aligned}x&=\frac{-b\pm\sqrt{b^{2}-4ac}}{2a}\\D&=b^{2}-4ac\end{aligned}$$

Vieta's formulas (for quadratic equation)

$$x^{2}+4x-12=0$$

$$x=\frac{-4\pm\sqrt{4^{2}-4\cdot1\cdot(-12)}}{2\cdot1}$$

$$D=4^{2}-4\cdot1\cdot(-12)=64$$

$$\begin{aligned}x_1&=2\\x_2&=-6\end{aligned}$$

Quadratic Equation Calculator FAQ

How do I solve a quadratic equation?

Enter the values of a, b, and c into the calculator. It applies the quadratic formula x = (-b ± sqrt(b^2 - 4ac)) / (2a) to find both roots instantly.

How many solutions does a quadratic equation have?

A quadratic equation can have two real solutions, one repeated solution, or complex solutions. This depends on the value of the discriminant D = b^2 - 4ac.

What is the discriminant and why is it important?

The discriminant D = b^2 - 4ac determines the type of solutions. If D > 0, there are two real roots. If D = 0, there is one repeated root. If D < 0, the solutions are complex.

Why does my quadratic equation have no real solution?

If the discriminant D = b^2 - 4ac is negative, the square root cannot be calculated as a real number. In this case, the equation has complex (imaginary) solutions instead of real roots.

What are the roots of a quadratic equation?

The roots are the values of x that make the equation equal to zero. They are also called solutions or x-intercepts and can be found using the quadratic formula.

Can this calculator show the graph of the equation?

Yes. The calculator plots the parabola for ax^2 + bx + c, so you can see the shape of the graph and where it crosses the x-axis when real roots exist.

What happens if a = 0?

If a = 0, the equation is no longer quadratic. It becomes a linear equation of the form bx + c = 0, which has only one solution.

How do you find the sum and product of the roots without solving the equation?

This follows from Vieta's formulas: for ax2 + bx + c = 0, the sum of the roots is x1 + x2 = -b/a and the product is x1 × x2 = c/a. Example: for x2 + 4x - 12 = 0, sum = -4/1 = -4 and product = -12/1 = -12 — which matches the roots 2 and -6 (2 + (-6) = -4, 2 × (-6) = -12).

What is the difference between the quadratic formula and completing the square?

Completing the square rewrites the equation as a perfect square plus a constant to isolate x, step by step. The quadratic formula is the general result of completing the square applied to ax2 + bx + c = 0, so it gives the same answer instantly without redoing those steps each time. Factoring is a third option, but it only works cleanly when the roots are rational.

What are real-world uses of quadratic equations?

Quadratic equations model situations with a squared variable, such as projectile motion (height over time under gravity), area optimization (maximizing a rectangular area for a fixed perimeter), profit and revenue modeling in business (where price changes affect both quantity sold and revenue), and physics and engineering problems involving acceleration or parabolic shapes like satellite dishes and bridge cables.


Ages 2–5
Free right now
Free Toddler Learning, No Ads
TeddyBase learning app for toddlers
ABC, numbers, colours, animals, time and weekdays in simple tap-and-listen lessons.
No ads No in-app purchases No data collection
Download on the App Store
Stainless steel grill tongs holding grilled meat
BBQ essential
Keep Your Hands Away From the Heat
Long stainless-steel tongs for steaks, ribs, vegetables, and hot grill food.
14 inch reach · Locking handle
See it on Amazon