Quadratic Formula Calculator
Solve ax² + bx + c = 0 and show both real or complex roots
Enter a valid coefficient
Enter a valid coefficient
Enter a valid coefficient
Solve ax² + bx + c = 0 and show both real or complex roots
Enter a valid coefficient
Enter a valid coefficient
Enter a valid coefficient
Solve a quadratic equation in standard form. The sign of the discriminant determines whether the roots are distinct real, repeated real or complex.
Solve 2x² − 5x − 3 = 0. The discriminant is b² − 4ac = 25 + 24 = 49, whose square root is exactly 7, so the roots are (5 + 7) ÷ 4 = 3 and (5 − 7) ÷ 4 = −0.5. Substituting either root back into the original equation gives zero, which is the fastest possible check. When the discriminant is a perfect square like this, the roots are rational and the quadratic factors cleanly.
A positive discriminant yields two distinct real roots, zero yields one repeated root (−b ÷ 2a, touching the x-axis at a single point), and a negative value yields a complex conjugate pair whose real part is −b ÷ 2a. Complex results are reported with the imaginary part kept exact, so engineering work can consume them directly rather than rounding through intermediate steps.
The formula only fits ax² + bx + c = 0. Move every term to one side first: x² = 3x + 10 becomes x² − 3x − 10 = 0 with a = 1, b = −3, c = −10. If a turns out to be zero, the equation is linear, not quadratic — divide through and solve directly instead. Sign slips on b and c are the most common input error, so re-read the equation once after typing.
求解标准形式的一元二次方程。判别式的符号决定方程有两个不同实根、一个重根或一对复数根。
解 2x² − 5x − 3 = 0。判别式 b² − 4ac = 25 + 24 = 49,平方根恰好是 7,于是两根为 (5 + 7) ÷ 4 = 3 和 (5 − 7) ÷ 4 = −0.5。把任一根代回原方程都得零——这是最快的验算方式。判别式像这样是完全平方数时,根是有理数,二次式也能干净地因式分解。
判别式为正得两个不等实根;为零得一个重根(−b ÷ 2a,图像与 x 轴相切于一点);为负得一对共轭复根,实部都是 −b ÷ 2a。复数结果会精确保留虚部,工程计算可以直接取用,不必经过中间舍入。
公式只认 ax² + bx + c = 0。先把所有项移到一边:x² = 3x + 10 化为 x² − 3x − 10 = 0,此时 a = 1、b = −3、c = −10。如果 a 算出来是零,那就是一次方程不是二次——直接除开求解即可。b 和 c 的正负号是最常见的录入错误,输完回读一遍方程再算。
A positive discriminant gives two real roots, zero gives a repeated real root, and a negative discriminant gives a complex conjugate pair.
No. If a is zero, the equation is linear rather than quadratic.
They appear as a real part plus or minus an imaginary part times i, where i is the square root of −1. They mean the parabola never crosses the x-axis.
It is the vertical line through the vertex at x equals −b divided by 2a. The two roots are mirrored across it.
Yes. Rearrange into ax² + bx + c = 0 first, moving every term to one side before entering the coefficients.
Yes. Decimals are accepted, and the discriminant is computed at full precision before the roots are rounded for display.
Last reviewed: October 5, 2026 · How we calculate · Sources: Published formula reference; verify domain-specific assumptions before making a decision
最近复核:2026 年 10 月 5 日 · 我们的计算方法 · 来源:公式用于参考;涉及专业决定时请核对适用条件