Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Roots of the Quadratic
x₁ = 3, x₂ = 2
two distinct real roots
Discriminant (b² - 4ac) 1
Root 1 3
Root 2 2

What This Calculator Does

This tool solves any quadratic equation written in standard form, \(ax^{2} + bx + c = 0\), by finding the two values of x that make it true. When a quadratic factors over the integers, it can be written as \(a(x - r_{1})(x - r_{2}) = 0\), and each factor set to zero gives a root. The calculator finds those roots even when clean integer factors do not exist, using the equivalent quadratic formula.

How to Use It

Enter the three coefficients a, b, and c from your equation. For example, \(x^{2} - 5x + 6 = 0\) has a = 1, b = −5, c = 6. Press calculate to see both roots, the discriminant, and the nature of the solution. If a = 0 the equation is linear, not quadratic, and a single root is returned.

The Formula Explained

The roots come from $$x = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}.$$ The expression under the square root, \(\Delta = b^{2} - 4ac\), is the discriminant. If \(\Delta > 0\) there are two distinct real roots; if \(\Delta = 0\) there is one repeated root; if \(\Delta < 0\) the roots are a complex conjugate pair.

Advertisement
Diagram showing a quadratic expression splitting into two factor terms each set to zero
Factoring rewrites the quadratic as a product of two binomials, each yielding a root.

Worked Example

For \(x^{2} - 5x + 6 = 0\): $$\Delta = (-5)^{2} - 4(1)(6) = 25 - 24 = 1.$$ Roots \(= \frac{5 \pm 1}{2} = 3\) and \(2\). This factors neatly as \((x - 3)(x - 2) = 0\), confirming the roots 3 and 2.

Parabola crossing the x-axis at two points labeled x1 and x2
The roots are where the parabola crosses the x-axis.

FAQ

What if my equation does not factor nicely? The calculator still returns exact decimal roots using the quadratic formula, which works even when integer factors do not exist.

What happens with a negative discriminant? The roots are complex; the tool reports them as a real part ± an imaginary part times i.

Can a be zero? If a = 0 the equation is linear (\(bx + c = 0\)), and the tool returns the single root \(-c/b\).

Last updated: