Everyday tool

Equation Solver

Enter coefficients for a linear or quadratic equation. The solver shows real roots and checks them.

Runs in your browser. No upload.

Values are processed locally in this browser.

Result

—

About this tool

Equation Solver made simple.

The local solver supports equations ax² + bx + c = 0, including linear and constant cases. It reports real roots only; complex roots are identified as outside this tool’s current scope. The check shows the error compared with the size of the calculation.

Guide

Using Equation Solver

The Equation Solver finds the real solutions of a x² + b x + c = 0 from the three coefficients you type. It also covers the simpler cases where a is zero, so you can solve a straight-line equation or spot an equation that has no answer or every number as an answer. Each root comes with a substitution check. Complex roots are not given, and other kinds of equation are not supported.

How to use it

  1. Write your equation as a x² + b x + c = 0, moving every term to the left so the right side is 0. For x² - 3x + 2 = 0, that gives a = 1, b = -3 and c = 2.
  2. Type a, b and c in the three boxes. Use a minus sign for negative numbers and a dot for decimals, and type 0 for a term that is missing. All three boxes need a value.
  3. Press Calculate. The result lists the real roots, or says there is no real root, no solution, or that every real number is a solution.
  4. Read the check line under the roots. It shows how far each root is from making the equation exactly zero, compared with the size of the terms. Copy result copies the text and Clear empties the boxes.

Worked examples

Two clean roots

You enter
A
1
B
-3
C
2
You get
Result
Roots: x = 2, x = 1
Check
Substitution check (relative error): x = 2: 0; x = 1: 0

The equation factors as (x - 1)(x - 2) = 0. The tool lists 2 before 1, so the roots are not sorted from small to large.

Run through the tool’s own code.

A check that is almost zero

You enter
A
2
B
-7
C
3
You get
Result
Roots: x = 3, x = 0.5
Check
x = 3: -3.568574007723717e-17; x = 0.5: 0

The exact roots are 3 and one half. A computer works with binary decimals, so the check for x = 3 leaves a speck of about 0.00000000000000004, which is rounding noise and not a wrong answer.

Run through the tool’s own code.

No real roots

You enter
A
1
B
0
C
1
You get
Result
No real roots. Complex roots are outside this calculator’s scope.

x² + 1 = 0 would need a number whose square is -1. No real number does that, so the tool stops and does not show the complex answers.

Run through the tool’s own code.

A straight-line equation

You enter
A
0
B
2
C
-6
You get
Result
x = 3
Check
Check (relative error): 0

With a set to 0 the equation is 2x - 6 = 0, so x = 3. If both a and b are 0, the tool says there is no solution when c is not 0, and that every real number is a solution when c is 0.

Run through the tool’s own code.

When it helps

  • Check homework answers for quadratic equations from an algebra class.
  • Find where a parabola crosses the x axis by solving a x² + b x + c = 0.
  • Learn whether a quadratic has two, one or no real roots before you draw its graph.
  • Solve a quick straight-line equation by setting a to 0.

Limits to keep in mind

  • Only equations of the form a x² + b x + c = 0 are covered. Cubic, fraction, root, logarithm and trigonometric equations, and pairs of equations, need another tool.
  • Only real roots are shown. When b² - 4ac is below zero, the tool says there are no real roots and does not give the complex pair.
  • Answers are decimals worked out by a computer. A root that should be 0.2 can print as 0.19999999999999998, and the check can show a tiny leftover like 1e-17 instead of a clean 0.
  • Extremely large or tiny coefficients can be refused with a message about range or precision. Divide all three by the same number and try again.

Tips

  • Move every term to one side first. If you start with x² = 4x - 3, rewrite it as x² - 4x + 3 = 0 before you type anything.
  • If your equation has a fraction such as x²/2, multiply every term by 2 to clear it, or type the decimal 0.5 for that coefficient.
  • Put each root back into your original equation by hand at least once. The check line helps, but doing it yourself builds trust in the answer.

Common questions

About Equation Solver.

How do I solve a quadratic equation with this tool?

Rewrite it with 0 on the right, read off the numbers in front of x², x and the lone number, and type them as a, b and c. Press Calculate and the roots appear with their check.

What does the check number mean?

It is a relative error. The tool puts the root back into a x² + b x + c and compares what is left with the size of the three terms. Zero, or a very tiny number such as 1e-17, means the root fits to computer precision.

Why does the tool say there are no real roots?

The part under the square root, b² - 4ac, is negative. A negative number has no real square root, so the parabola never touches the x axis. The complex roots exist but are outside this tool.

Why are the two roots not in order?

They are shown in the order the tool computes them, not sorted. The same pair, such as 2 and 1, can appear with the larger one first. Read both values, and do not rely on their position.

What happens if a is 0?

The equation is no longer quadratic but a straight line, b x + c = 0, and you get one root. If b is 0 too, there is either no solution or every real number is one, depending on c.

Does it find complex or imaginary roots?

No. It says that none exist among the real numbers and stops there. If you need the complex pair, use the quadratic formula by hand or a tool built for complex numbers.

Is anything I type saved or sent?

No. The coefficients are used for the sum inside your browser and are not uploaded, so you can try any numbers freely.

How do I use Equation solver?

Enter coefficients for a linear or quadratic equation. The solver shows real roots and checks them.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.