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 freeHow 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
Read off the coefficients. Keep the sign attached to b; that is where most errors start.
- 2
Compute the discriminant. It is 25, a perfect square, so the roots are rational and this equation also factors.
- 3
Substitute into the formula. Note that −b is +7 because b was negative.
- 4
Split the plus-or-minus into the two cases.
- 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
Coefficients first, then the discriminant. It is negative, so there are no real roots and no integer factorisation to look for.
- 2
Substitute anyway. The formula still works; the square root simply leaves the real numbers.
- 3
Simplify the radical. Twelve is four times three, so the square root of −12 is 2i times the square root of 3.
- 4
Divide every term of the numerator by 2, not just the first one.
- 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 + -2Common 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
- 2
- 3