Calculation·mathematics 15

Quadratic Equation Calculator

Find the discriminant and real or complex conjugate roots of ax²+bx+c=0.

Input

The example value has been entered. Check it immediately or change the value.

Run with Ctrl or ⌘ + Enter

Input is processed in the browser. Refreshing returns a sample value.

Result

Check or change the value using the example value result.

Fractional results are displayed up to 12 digits of precision. Please unify units in the input values.

Share result

Share the tool link and result text together. No URL is included in the result. Check the below content and then share it.

Calculation·conversion criteria

Discriminant and real/complex roots of a quadratic equation.

D = b²−4ac, x = (−b ± √D) ÷ 2a

Input example

The root of x²−3x+2=0 is 1, 2

x²−3x+2=0 is entered as a=1, b=−3, c=2. The discriminant is 1, and the roots are 1 and 2, substituting them yields the original equation as 0.

How to use

  1. Use the example value or change items a, b, c.
  2. Click Verify result and check the following result.
  3. Result can be copied if needed.

Frequently Asked Questions

If the discriminant is negative, did the calculation fail?

No. There is no root for the range of errors, but for complex numbers, there are two roots. This tool uses the imaginary unit i. If a=0, it is not a quadratic equation, so it is not accepted.

Calculation criteria and reference materials

The calculation formula and scope of this tool are disclosed in the above description. Examples can be checked by substituting input values into the formula or following the specified string and calendar handling rules.

Verification of calculation criteria: · Calculation·verification principles · Report errors