Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

<style> .main-result { background:#e8f5e9; border:2px solid #4CAF50; border-radius:6px; padding:1.5rem; margin-bottom:1rem; text-align:center; } .main-result-label { font-size:1.1rem; color:#2E7D32; margin-bottom:0.5rem; } .main-result-value { font-size:2.2rem; font-weight:800; color:#1B5E20; line-height:1.2; } .main-result-unit { font-size:1rem; color:#388E3C; margin-top:0.25rem; } .result-table { width:100%; border-collapse:collapse; margin-top:1rem; } .result-table th, .result-table td { padding:0.5rem 0.6rem; text-align:left; border-bottom:1px solid #ddd; font-size:0.95rem; } .result-table th { background:#f5f5f5; font-weight:600; } </style>
Roots (two distinct real roots)
x₁ = 2, x₂ = 1
Discriminant (b² - 4ac) 1

What Is a Quadratic Equation?

A quadratic equation is a second-degree polynomial of the form \(ax^2 + bx + c = 0\), where a, b, and c are constants and \(a \ne 0\). Its graph is a parabola, and its solutions — called roots — are the x-values where the parabola crosses the x-axis. This calculator finds those roots instantly, whether they are real or complex.

Parabola crossing the x-axis at two points representing the roots of a quadratic equation
The roots of a quadratic equation are where its parabola crosses the x-axis.

How to Use This Calculator

Enter the three coefficients: a (the coefficient of x²), b (the coefficient of x), and c (the constant term). The calculator computes the discriminant and returns the roots. If a = 0 the equation is not quadratic, so you'll be prompted to use a non-zero value.

The Formula Explained

The roots come from the quadratic formula $$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$ The expression under the square root, \(\Delta = b^2 - 4ac\), is the discriminant. When \(\Delta > 0\) there are two distinct real roots; when \(\Delta = 0\) there is one repeated real root; when \(\Delta < 0\) the roots are complex conjugates of the form \(\left(-\frac{b}{2a}\right) \pm \frac{\sqrt{-\Delta}}{2a}i\).

Three parabolas showing two real roots, one repeated root, and no real roots
The discriminant determines whether there are two, one, or no real roots.

Worked Example

Solve \(x^2 - 3x + 2 = 0\). Here a = 1, b = −3, c = 2. The discriminant is $$(-3)^2 - 4(1)(2) = 9 - 8 = 1.$$ Then $$x = \frac{3 \pm \sqrt{1}}{2} = \frac{3 \pm 1}{2},$$ giving \(x = 2\) and \(x = 1\).

FAQ

What if the discriminant is negative? The equation has no real solutions; instead it has two complex roots, which this tool displays in the form \(a \pm bi\).

Can a be zero? No. If a = 0 the equation is linear, not quadratic, and the quadratic formula does not apply.

What does a repeated root mean? When \(\Delta = 0\) the parabola just touches the x-axis at a single point, so both roots are identical.

Last updated: