Gauth

Calculator

Quadratic Formula Calculator with Steps

Enter a, b, and c and get both roots, the discriminant, and the vertex — with factoring, completing the square, and the formula compared on the same equation.

Solve a quadratic problem now

First solution free

How to use it

Type the equation, not just the coefficients — 2x^2-7x+3=0 is enough, and it does not need to be arranged with zero on the right first. Say if you want a particular method, otherwise the working picks the fastest one and explains the choice. Ask for the vertex or the intercepts in the same question and they come out of the same rearrangement. For quadratics that arrive inside a longer problem, use the algebra solver instead.

The method behind it

The quadratic formula is not a fact to memorise. It is what completing the square looks like when you do it once, in general, and keep the letters. Start from the general equation with .

Divide through by so the square term is bare, and move the constant across.

Add the square of half the coefficient to both sides. That specific number is what turns the left side into a perfect square, which is the entire trick.

The left side now folds up. Put the right side over the common denominator .

Take square roots of both sides — this is where the plus-or-minus is born, because both signs square to the same thing — and subtract .

Two things fall straight out of that derivation. The quantity under the radical decides everything: positive gives two distinct real roots, zero gives one repeated root, and negative gives a conjugate pair of complex roots. And is the midpoint of the two roots, which is exactly the axis of symmetry of the parabola and the -coordinate of its vertex.

Two shortcuts are worth carrying. The roots always satisfy Vieta's relations, which give a five-second check on any answer.

A fuller treatment of when each method wins is in the quadratic formula: when to use it, and the factoring patterns themselves are laid out in factoring quadratics: the four patterns.

Worked examples

Worked example

  1. 1

    Read off the coefficients. Keep the sign attached to b; that is where most errors start.

  2. 2

    Compute the discriminant. It is 25, a perfect square, so the roots are rational and this equation also factors.

  3. 3

    Substitute into the formula. Note that −b is +7 because b was negative.

  4. 4

    Split the plus-or-minus into the two cases.

  5. 5

    Check with Vieta: the roots should add to 7/2 and multiply to 3/2. They do. The factored form is (x − 3)(2x − 1) = 0.

Answer

Worked example

  1. 1

    Coefficients first, then the discriminant. It is negative, so there are no real roots and no integer factorisation to look for.

  2. 2

    Substitute anyway. The formula still works; the square root simply leaves the real numbers.

  3. 3

    Simplify the radical. Twelve is four times three, so the square root of −12 is 2i times the square root of 3.

  4. 4

    Divide every term of the numerator by 2, not just the first one.

  5. 5

    Verify the first root by substitution: the i² term contributes −3, and the real parts cancel exactly.

Answer

Which method should you use?

The formula always works, which is precisely why people reach for it on equations that would take one line by other means. Compute the discriminant first and let it choose.

Factor, complete the square, or use the formula

Write the equation as ax² + bx + c = 0 first. Which coefficients are actually there?

The discriminant, on the graph

The roots of are where the parabola crosses the horizontal axis, so the discriminant is really a statement about height. Start from , which cuts the axis twice, and slide upward. At the two crossings merge into one — that is . Above that the curve lifts clear of the axis and the real roots are gone, though the complex pair is still there.

Slide the coefficients and watch the roots appear and vanish

y = 1x² + 0x + -2

Common mistakes

Reading coefficients before rearranging

From people take and . The formula only describes an equation set equal to zero. Move everything to one side first to get , so and .

Losing the sign in −b

When is negative, is positive. With the numerator starts , not . Writing the substitution with brackets around every coefficient, as in , removes the guesswork.

Dividing only part of the numerator

is , not . The fraction bar runs under the whole numerator, so every term gets divided by .

Practice

Answers are checked here — nothing is sent anywhere.

  1. 1
  2. 2
  3. 3

Frequently asked questions

Will it show factoring as well as the formula?
Ask for it and yes. When the discriminant is a perfect square the equation factors over the integers, and seeing the same equation solved both ways is the fastest way to learn which one to reach for next time.
What happens when the discriminant is negative?
You get two complex conjugate roots, written in the form p ± qi. The parabola has no x-intercepts in that case, which is the graphical statement of the same fact.
Can the coefficients be fractions or decimals?
Yes. Multiplying through by the common denominator first usually keeps the arithmetic under the radical cleaner, and the working shows that step rather than pushing fractions through the whole calculation.
How do I check my roots without redoing the work?
Use Vieta's relations. The two roots must add to −b/a and multiply to c/a. Both checks take seconds and catch nearly every sign error in the formula.
What does it cost?
The first solution is free with no account needed. A free account includes three solutions a day, and Gauth Plus removes the cap for $11.99 a month with a three-day free trial.

Keep going

Gauth AIAsk me for any help!