Algebra and number tools

Quadratic equation calculator

Solves ax² + bx + c = 0, including complex roots. The quadratic coefficient must be nonzero.

Your numbers

Use the units shown. Results update as you change valid inputs.

YOUR RESULT

Solves ax² + bx + c = 0, including complex roots. The quadratic coefficient must be nonzero.

THE NUMBERS, EXPLAINED

How to use this calculator.

Solves ax² + bx + c = 0, including complex roots. The quadratic coefficient must be nonzero.

Start with your inputs

Enter coefficient a, coefficient b, coefficient c. Keep amounts in the units shown on each field. The example is a starting point, not a recommended value.

InputExample value
Coefficient a1
Coefficient b-3
Coefficient c2

A worked example

With the example inputs above, roots is 2, 1. Change the inputs to explore your own scenario.

All results for the example inputs above
ResultExample answer
Roots2, 1

How this is calculated

Roots

quadraticRoots(a,b,c)

Symbols and units
a
Coefficient a
b
Coefficient b
c
Coefficient c

Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.

Calculation steps and notation

For ax² + bx + c = 0, calculate D = b² − 4ac. When D ≥ 0 the roots are (−b ± sqrt(D))/(2a). When D < 0 display real part −b/(2a) and imaginary magnitude sqrt(−D)/abs(2a).

Assumptions and limits

Solves ax² + bx + c = 0, including complex roots. The quadratic coefficient must be nonzero.

Calculations use the values you enter. Blank or invalid inputs show an error instead of silently substituting zero. Results are displayed to useful precision; calculations retain the underlying numeric precision.

Questions about this tool

What does the result tell me?

Roots. The result applies to the method and inputs described above. Check the units and assumptions before using it in a decision.

Why might another calculator differ?

Differences in units, rounding, timing or model definitions can produce different answers. Compare the input definitions and the method, rather than only the final number. For this tool: Solves ax² + bx + c = 0, including complex roots. The quadratic coefficient must be nonzero.

Are my inputs stored or sent to AI?

Calculations on this page happen in your browser. The separate AI question finder sends its submitted conversation to OpenAI; these calculator fields are not sent. Favourites and recent tool names are stored locally. A shared link contains the inputs you choose to include.

Further reading

OpenStax: College Algebra ↗

Background reading; this does not imply endorsement or independent review of SumFizz.

Review status

Software example and browser checks are recorded in our quality report. No external expert review is claimed. Created with coding assistance; calculations run as ordinary browser code.

Read the quality report →