get freecalculator.Find a calculator/

MATH & SCIENTIFIC / FREE & SIMPLE

Quadratic equation calculator.

Solve ax² + bx + c = 0 for real or complex roots. Enter the three coefficients with a nonzero coefficient for x². The discriminant explains whether the equation has two real roots, one repeated root or complex roots.

Get Free Calculator editorial teamPublished November 19, 2026Formula-based estimate

LET’S WORK IT OUT

YOUR RESULTCALCULATED IN YOUR BROWSER

Your answer starts here.

Check the example values, or enter your own and choose Calculate.

BEHIND THE ANSWER

How the calculation works

D = b² − 4ac; x = (−b ± √D)/(2a)

A negative discriminant does not mean the equation is broken: its solutions are complex. A zero discriminant indicates that the two roots coincide. Substitute any reported root back into the equation as a check.

A worked example

FOLLOW THE NUMBERS

For x² − 5x + 6 = 0, D = 25 − 24 = 1. The roots are (5 + 1)/2 = 3 and (5 − 1)/2 = 2.

Using the calculator

  1. Enter a · coefficient of x², b · coefficient of x, c · constant. Use the units shown beside each label.
  2. Choose Calculate to see the result and the substituted steps. Correct any highlighted input error before relying on an answer.
  3. Read the assumptions below. You can change one input at a time to see how sensitive the result is to that assumption.

A small order-of-operations reference

OperationExampleMeaning
Parentheses(3 + 2) × 4 = 20Evaluate grouped work first
Powers2^3 = 8Repeated multiplication for a positive integer power
Multiplication and division12 ÷ 3 × 2 = 8Work from left to right at the same priority
Addition and subtraction10 − 4 + 1 = 7Work from left to right at the same priority

Write the mathematical question before selecting operations. The units of a result often reveal whether the formula makes sense: multiplying two lengths gives an area, while dividing a distance by time gives a speed. If the expected kind of quantity changes unexpectedly, revisit the expression rather than accepting a plausible-looking number.

For a quick check, estimate the scale of the answer before calculating. Rounding 19.8 to 20 can reveal a misplaced decimal even when it cannot establish the last digit. Exact fractions and symbolic solutions answer different questions from rounded decimal output; keep the representation that best suits your task.

Why your result may differ

Enter the sign with each coefficient. In x² − 5x + 6, b is −5. If a is zero, the expression is linear and the quadratic formula cannot be used.

The result reflects the values you enter, rather than a measurement of your circumstances. Check input precision and units before comparing it with a different calculator. A source that uses another definition, reference period or rounding convention may legitimately report a different number. The steps shown above help you identify where the two methods diverge.

Questions, answered.

What does a negative discriminant mean?

The equation has two complex conjugate roots and no real roots.

What if a is zero?

Use the linear equation bx + c = 0 instead, provided b is nonzero.

Why can very large coefficients be unreliable?

Floating-point overflow and cancellation can reduce precision. Rescale the equation by dividing all coefficients by a common factor.

Are my inputs uploaded or saved?

No. The quadratic equation calculator runs in your browser. Field values are not sent to a calculation API or saved by the site. Avoid placing sensitive data in search terms or messages.

How should I round the result?

Keep full precision while calculating and round only the final value to a level appropriate for your task. Display rounding does not turn an estimate into an exact measurement. Use the formula and assumptions above when checking an answer.

Sources & editorial notes

The references below explain the underlying definitions or subject background. Linking to a source does not imply endorsement or independent validation of this implementation.

Prepared by the Get Free Calculator editorial team. Published November 19, 2026. If an example, formula or assumption needs correction, tell us which input you used and what you expected. Please avoid sending private financial or health information.

YOUR PRIVACY

Simple by design.

Calculations stay in your browser. We use Google Analytics to understand site usage. Google Analytics may set analytics cookies and process device and page-view information. Advertising features are disabled in our Analytics tag configuration. Google AdSense also loads and may use cookies and process device and browsing information to serve and measure ads.

Contact submissions are sent to Netlify Forms when you choose to send them. Hosting providers may process security and access logs. You can block analytics with browser controls or the Google Analytics opt-out add-on. This dialog does not change cookie settings.

Read our privacy policy