Free Algebra Solver
Quadratic equations

Quadratic equation calculator

See standard form, the discriminant, complete roots, and exact verification.

Interpreted as: x² - 5x + 6 = 0 (Solve) Ready
Examples
Solution

Step-by-step working

Your solution will appear here

Choose an operation and run it to see exact working, verification, and available visuals.

Quadratic equation guide

Find every quadratic root and understand why the method works

This quadratic equation solver with steps places the equation in standard form, identifies its coefficients, evaluates the discriminant, chooses a valid solving method, and checks the complete root set. Use the guide to connect factoring, square roots, and the quadratic formula.

What makes an equation quadratic?

A quadratic equation can be written as ax² + bx + c = 0 with a ≠ 0. The highest variable power is two, so the equation can have as many as two roots over the complex numbers. Before solving, move every term to one side and combine like powers so the coefficients a, b, and c are unambiguous.

For 2x² + 7 = 5x, standard form is 2x² − 5x + 7 = 0. Here a = 2, b = −5, and c = 7. The negative sign belongs to b; losing it is one of the most common quadratic-formula mistakes.

Factoring or quadratic formula: which method should you use?

Factoring is efficient when the polynomial has recognizable rational factors. If ax² + bx + c = (px + q)(rx + s), the zero-product property sets each factor equal to zero. The square-root property is useful when the squared expression is already isolated. Completing the square is valuable for understanding vertex form.

The quadratic formula works for every quadratic equation with a nonzero a, including cases that do not factor over the rational numbers. A professional quadratic calculator can use a simple factorization when it makes the reasoning clearer and still analyze the discriminant to confirm the expected root type.

How to use the quadratic formula step by step

The formula is reliable only after the equation is in standard form. Keep coefficient signs attached when substituting, evaluate the discriminant before taking its square root, and simplify the two branches without converting exact radicals to decimals too early.

  1. Rewrite the equation as ax² + bx + c = 0 and confirm that a is not zero.
  2. Identify a, b, and c with their signs, then calculate D = b² − 4ac.
  3. Substitute into x = (−b ± √D)/(2a), keeping the numerator grouped.
  4. Simplify both the plus and minus branches and state the selected number domain.
  5. Substitute each candidate into the original equation or verify the factorization.
Quadratic formula
x =−b ± √(b² − 4ac)2a
Discriminant
D = b² − 4ac
Zero-product property
AB = 0 ⇒ A = 0 or B = 0

Worked example: x² − 5x + 6 = 0

The coefficients are a = 1, b = −5, and c = 6. The discriminant is (−5)² − 4(1)(6) = 25 − 24 = 1. Because 1 is a positive perfect square, the equation has two distinct rational roots.

Substitution into the formula gives x = (5 ± 1)/2. The plus branch gives x = 3 and the minus branch gives x = 2. Equivalently, the polynomial factors as (x − 2)(x − 3), so the zero-product property produces the same two roots.

What the discriminant tells you

When D > 0, there are two distinct real roots. If D is a perfect square and the coefficients are rational, those roots are rational; otherwise they are usually written with radicals. When D = 0, the two branches meet at one repeated real root. When D < 0, there are two complex conjugate roots and no real roots.

The Real or Complex domain control matters in the final case. Selecting real numbers should report that the equation has no real solution, while the complex domain can show values involving i, where i² = −1.

Check both roots and avoid formula errors

Always check both candidates. A quadratic solution is incomplete if one valid branch of ± is omitted. Substitute each root into the original equation, especially if terms were moved before standard form was created.

Common errors include using b instead of −b, forgetting to square all of b, placing only the radical over 2a, and rounding before the end. The fraction bar covers the entire numerator −b ± √D, which is why the calculator displays the formula as a true fraction.

Frequently asked questions

Concise answers about the method, notation, checks, and calculator limits.

What is the quadratic formula?

For ax² + bx + c = 0 with a ≠ 0, the formula is x = (−b ± √(b² − 4ac))/(2a).

What does the discriminant mean?

The value b² − 4ac predicts whether the quadratic has two real roots, one repeated real root, or two complex roots.

Should I factor or use the quadratic formula?

Factor when a clear pattern is available. Use the quadratic formula when factoring is not obvious or when you need a method that always applies.

Why are there sometimes two answers?

A quadratic can cross or touch zero at up to two values. The plus-minus sign represents the two formula branches.

Can this calculator show complex roots?

Yes. Choose the complex number domain when the discriminant is negative to include roots involving i.

How do I check quadratic roots?

Substitute each candidate into the original equation or multiply the displayed factors back to the original polynomial.

Math keypad

Solve mode

Use the keypad below or tap the expression to use your phone keyboard.

Keyboard tips

Ctrl + Enter
Run the selected operation
^
Enter a power, such as x^2
sqrt(
Calculate an exact or simplified square root
a:b
Separate quantities in a ratio
12, 18
Separate integers in an LCM and GCD calculation
@ x =
Assign x when evaluating an expression
y =
Enter a polynomial function to graph
|
Wrap an absolute-value expression