Quadratic Equation Solver

Last updated: 2026-09-28

Quadratic Equation Solver — Solves quadratic equations with coefficients a, b, c, returning real or complex roots, discriminant, step-by-step solution, and factored form when applicable.
Inputs
Result
Enter values and press Calculate

How to Use This Calculator

This quadratic equation solver is designed to help you quickly find the roots of any quadratic equation in the form ax² + bx + c = 0. Simply enter the coefficients a, b, and c into the respective fields. The coefficient 'a' must be non-zero; otherwise, the equation becomes linear. Once you click 'Calculate', the tool computes the discriminant, the roots (real or complex), the step-by-step solution, and—if the roots are rational—the factored form. The results are displayed clearly, and you can use the step-by-step output to verify your manual work or learn the process.

Formula and Methodology

The calculator uses the quadratic formula: x = (-b ± √(b² - 4ac)) / (2a). The term under the square root, Δ = b² - 4ac, is called the discriminant. If Δ > 0, there are two distinct real roots. If Δ = 0, there is one real double root. If Δ < 0, the roots are complex conjugates. The calculator computes the discriminant first, then applies the formula accordingly. For complex roots, it extracts the imaginary part using i√(-Δ). The factored form is provided when Δ is a perfect square and the roots are rational, expressed as a(x - r1)(x - r2). If the roots are equal, it shows a(x - r)². This methodology ensures accurate results for both simple and complex cases.

Practical Examples

Example 1: Solve x² - 5x + 6 = 0. Here a=1, b=-5, c=6. Δ = 25 - 24 = 1. Roots: (5 ± 1)/2 = 3 and 2. Factored form: (x - 3)(x - 2). Example 2: Solve 2x² + 4x + 2 = 0. a=2, b=4, c=2. Δ = 16 - 16 = 0. Root: -4/4 = -1. Factored: 2(x + 1)². Example 3: Solve x² + x + 1 = 0. a=1, b=1, c=1. Δ = 1 - 4 = -3. Roots: (-1 ± i√3)/2. These examples illustrate the three possible cases: two real roots, one real root, and two complex roots.

Tips and Best Practices

Always double-check the signs of your coefficients, especially when they are negative. A common mistake is to misplace a negative sign in the quadratic formula. If you're working with fractions, consider converting them to decimals for easier input, but be aware of potential rounding errors. Use the discriminant to predict the nature of the roots before solving. When factoring, remember that not all quadratics are factorable over integers; if the discriminant is not a perfect square, the roots are irrational or complex. For complex roots, express them in standard form a + bi. Finally, use the step-by-step solution to understand each stage of the calculation, which is especially helpful for learning or teaching.

FAQ

What is the discriminant and why is it important?

The discriminant Δ = b² - 4ac tells you the nature of the roots. If Δ > 0, there are two distinct real roots. If Δ = 0, there is one real double root. If Δ < 0, there are two complex conjugate roots. It's a quick way to know what to expect before solving.

Can this calculator handle fractions and decimals?

Yes, you can enter coefficients as fractions (e.g., 1/2) or decimals (e.g., 0.5). The calculator will parse them as floating-point numbers and provide accurate results, though very large or very small numbers may have rounding limitations.

When is a quadratic equation factorable?

A quadratic is factorable over integers if its discriminant is a perfect square and the roots are rational numbers. In that case, the factored form is a(x - r1)(x - r2), where r1 and r2 are the roots. Our calculator shows the factored form when this condition is met.

What if I get complex roots?

Complex roots occur when the discriminant is negative. They come in conjugate pairs: x = (-b ± i√(-Δ)) / (2a). Our calculator displays them in the form 'real ± imaginary i'. These roots are not factorable over real numbers.