Solve any quadratic equation ax² + bx + c = 0 and get real or complex roots instantly.
📖 Quadratic FormulaSolve: ax² + bx + c = 0
Fill in the fields on the left with your information, then press Calculate to see your result instantly. No sign-up required, and no data is sent anywhere — everything is calculated right in your browser.
The quadratic equation calculator solves any equation in the standard form ax² + bx + c = 0 using the "quadratic formula," which is x = (−b ± √(b²−4ac)) / 2a. The most important element in this formula is the discriminant, the part under the root (b²−4ac): if it's positive, the equation has two distinct real roots; if it equals zero, the equation has one repeated real root; and if it's negative, there are no real roots, but rather two complex roots, because the square root of a negative number isn't defined among real numbers. Quadratic equations are widely used in physics (projectile motion), economics, and engineering. Graphically, the discriminant's sign corresponds directly to how many times the equation's parabola crosses the x-axis: twice, once (just touching it), or never, which is why the number of real roots can often be anticipated visually before any arithmetic is performed. Recognizing the discriminant's sign before fully solving also saves time on multiple-choice or estimation problems, since it immediately rules out answer choices with the wrong number or type of roots.
The quadratic formula is one of the most memorized equations in all of mathematics, but the discriminant — the expression b²−4ac tucked under the square root — deserves attention on its own, because it answers a genuinely useful question before any further arithmetic: how many real solutions does this equation actually have?
A positive discriminant guarantees two distinct real roots, since taking the square root of a positive number produces a real value that can be added or subtracted from −b, generating two different answers. A discriminant of exactly zero collapses the ± into a single repeated root — both the addition and subtraction branches of the formula produce the identical value, because the square root of zero is simply zero.
A negative discriminant is where the equation runs out of real solutions. The square root of a negative number is undefined within the real number system, which is precisely the situation that motivated mathematicians to define imaginary numbers in the first place: i is defined specifically as the square root of −1, allowing a negative discriminant to still produce two valid, if complex, roots rather than no solution at all.
This connects directly to the shape of a parabola, the graph of any quadratic equation. A parabola that opens upward or downward crosses the x-axis exactly where the equation equals zero — which is exactly what 'solving the quadratic equation' means graphically. A positive discriminant means the parabola crosses the x-axis at two separate points; a zero discriminant means the parabola's vertex touches the x-axis at exactly one point without crossing through it; and a negative discriminant means the entire parabola stays above or below the x-axis without ever touching it, which is the graphical reason no real solution exists in that case.
Quadratic equations model an unusually wide range of real phenomena because many physical quantities change according to the square of another variable. Projectile motion in physics follows a quadratic path due to gravity's constant acceleration; a business's profit curve is often modeled as quadratic when both revenue and cost depend on price in specific ways; and any area-based optimization problem — finding the dimensions of a rectangular enclosure that maximize area for a fixed amount of fencing, for instance — reduces to solving a quadratic equation at its core.
The discriminant (b² − 4ac) determines the nature of the roots: positive means two real roots, zero means one repeated real root, and negative means two complex roots.
The calculator rejects that input, since a quadratic equation requires a non-zero coefficient for the x² term — otherwise the equation becomes linear.
Complex roots mean the equation's graph (a parabola) never crosses the x-axis, so there's no real-number solution — this commonly happens in physics and engineering problems with certain parameter combinations.