Life Calculator
MAKE THE FORMULA CLEAR

Quadratic equation

Solve a quadratic arranged as a*x^2 + b*x + c = 0. Move all terms to the left before entering the coefficients.

Start with your own numbers

Editable example

An example is filled in. Replace it with your own data to calculate.

Arrange the equation as a×x² + b×x + c = 0, then enter a, b and c.

Enter coefficient a of x squared, for example 1. Use the displayed unit; replace the example with your own value.
Enter coefficient b of x, for example -5. Use the displayed unit; replace the example with your own value.
Enter constant c, for example 6. Use the displayed unit; replace the example with your own value.

Results update when inputs are complete. A plan is kept only when you save it. Inputs and results are not uploaded.

Saved plans →

Saved in this browser. Before changing devices, export a backup from My tools.

Example result

Two real roots

x1 = 3;x2 = 2

The coefficient a cannot be 0. Only real roots are shown; no real roots does not mean a program error.

Worked steps

  1. 1x² + (-5)x + (6)=0
  2. First divide all coefficients by 6; discriminant b² − 4ac = 0.027778
  3. x = (−b ± √discriminant) / 2a

Calculates real roots of ax² + bx + c = 0. The coefficient a cannot be zero. A negative discriminant means no real roots; this version does not list complex roots.

Method and scope

The discriminant is b squared minus 4*a*c. Real roots use (-b plus or minus the square root of the discriminant) divided by 2*a.

A zero discriminant gives one repeated real root. A negative discriminant means there are no real roots, not that the tool has failed.

Coefficient a must not be zero because that would be a linear equation. This version does not display complex roots; numeric roots may be approximate.

What this helps you do

Solve a quadratic arranged as a*x^2 + b*x + c = 0. Move all terms to the left before entering the coefficients.

What to enter

Start with coefficient a of x squared, then fill the other relevant fields in the units shown. The field hints explain the required format and examples.

How the calculation works

The discriminant is b squared minus 4*a*c. Real roots use (-b plus or minus the square root of the discriminant) divided by 2*a.

Worked example

For x^2 - 5x + 6 = 0, enter 1,-5,6 in the three coefficient fields. The real roots are 2 and 3, each of which makes the original equation equal zero.

Understanding the answer

A zero discriminant gives one repeated real root. A negative discriminant means there are no real roots, not that the tool has failed.

Scope and limitations

Coefficient a must not be zero because that would be a linear equation. This version does not display complex roots; numeric roots may be approximate.

Keep it handy for next time

Add Quadratic equation to your home screen

This icon opens this tool. Confirm installation in your browser.

  1. iPhone: Open in Safari, tap Share → Add to Home Screen, then confirm.
  2. Android: Open in Chrome and choose Install app or Add to Home screen from the menu.
  3. In an in-app browser such as LINE or Facebook, use its menu to open the page in Safari or Chrome first.

Browser options vary. A shortcut does not provide cross-device synchronization, and an installed app may have separate storage. Export a backup from My tools first. The first load requires a connection.

Checking offline data.