Quadratic Calculator
A quadratic equation is an equation in which the highest power of the unknown is two, written in the standard form a x squared plus b x plus c equals zero. This Quadratic Calculator solves any such equation from its three coefficients: enter a, b and c, and it returns the discriminant and the two roots, or tells you plainly when the equation has no real roots.
The roots matter far beyond the page they are found on. They are the points where a parabola crosses the horizontal axis, the times at which a thrown object returns to the ground, and the break-even quantities in simple business models. One short formula produces them all, provided the coefficients are read correctly.
This page explains the formula and the discriminant in plain language, shows how to use the calculator step by step, and works through two complete examples. A third case, where the discriminant is negative, is covered in the deeper sections, and the questions section answers the points students raise most often.
The Quadratic Formula
The roots of a x squared plus b x plus c equals zero are given by the quadratic formula: x equals negative b, plus or minus the square root of b squared minus 4 a c, all divided by 2 a. The plus or minus sign is what produces two roots from one formula: one root uses the plus sign, the other uses the minus sign.
Every part of the formula earns its place. The negative b shifts the roots to match the position of the parabola, the square root term spreads them apart by an amount set by the discriminant, and the division by 2 a rescales everything for equations where the squared term has a coefficient other than 1.
The formula works for every quadratic with real coefficients, including awkward ones that refuse to factorise. Factorising, when it works, is quicker, but the formula never fails to give an answer, which is why it is the method built into this calculator.
The Discriminant and What It Tells You
The expression inside the square root, b squared minus 4 a c, is called the discriminant. Its sign decides the nature of the roots before you compute anything else. This calculator reports it as the first result because it frames everything that follows.
If the discriminant is positive, the square root is a real number and the equation has two different real roots. If the discriminant is zero, the square root term vanishes and both roots collapse to the same value, negative b divided by 2 a, a single repeated root. If the discriminant is negative, the square root has no real value and the equation has no real roots at all.
Graphically, the three cases are easy to picture. A positive discriminant means the parabola crosses the axis twice, zero means it just touches the axis at its turning point, and a negative discriminant means the whole parabola floats above or below the axis without ever meeting it.
Reading Coefficients Correctly
Most errors with the quadratic formula are not errors in the formula at all; they are errors in reading a, b and c from the equation. The equation must first be in standard form, with everything on one side and zero on the other. An equation written as x squared equals 5 x minus 6 must be rearranged to x squared minus 5 x plus 6 equals zero before the coefficients are read off.
Signs belong to the coefficients. In x squared minus 5 x plus 6, the value of b is negative 5, not 5, because the term is minus 5 x. In 2 x squared plus 4 x minus 6, the values are a equals 2, b equals 4 and c equals negative 6. Missing terms count as zero: x squared minus 9 has b equals 0 and c equals negative 9.
The calculator asks for the three coefficients separately precisely so this reading step stays visible. Take ten seconds over it, because a correct formula fed with one wrong sign returns two confidently wrong roots.
How to Use the Quadratic Calculator
Start by writing your equation in standard form, then follow these steps.
- Rearrange the equation so one side is zero, in the form a x squared plus b x plus c equals zero.
- Read off a, the coefficient of x squared, and type it into the first box. It cannot be zero.
- Read off b, the coefficient of x, with its sign, and type it into the second box. Enter 0 if there is no x term.
- Read off c, the constant term, with its sign, and type it into the third box. Enter 0 if there is no constant term.
- Select Calculate and read the discriminant and the two roots. Select Reset to start again.
If the result says no real roots, do not assume a mistake. Check the discriminant: a negative value is a genuine answer, meaning the parabola never crosses the axis. Recheck the coefficients once, then accept the result.
Worked Example 1: Solving x Squared – 5x + 6 = 0
Solve x squared minus 5 x plus 6 equals zero. The coefficients are a equals 1, b equals negative 5 and c equals 6.
- Step 1: Work out the discriminant. b squared minus 4 a c is 25 minus 24, which is 1.
- Step 2: Note the sign. The discriminant is positive, so there are two different real roots.
- Step 3: Apply the formula with the plus sign. x equals 5 plus the square root of 1, all over 2, which is 6 over 2, giving root 1 equals 3.
- Step 4: Apply the formula with the minus sign. x equals 5 minus 1, all over 2, which is 4 over 2, giving root 2 equals 2.
- Step 5: Check by substitution. For x equals 3: 9 minus 15 plus 6 is 0. For x equals 2: 4 minus 10 plus 6 is 0. Both roots satisfy the equation.
The calculator returns a discriminant of 1.00, root 1 of 3.00 and root 2 of 2.00. The equation also factorises as (x minus 3)(x minus 2) equals zero, which agrees with the formula.
Worked Example 2: Solving 2x Squared + 4x – 6 = 0
Solve 2 x squared plus 4 x minus 6 equals zero. The coefficients are a equals 2, b equals 4 and c equals negative 6.
- Step 1: Work out the discriminant. b squared minus 4 a c is 16 minus 4 times 2 times negative 6, which is 16 plus 48, giving 64.
- Step 2: Note the sign. The discriminant is positive, so there are two different real roots.
- Step 3: Apply the formula with the plus sign. x equals negative 4 plus the square root of 64, all over 4, which is 4 over 4, giving root 1 equals 1.
- Step 4: Apply the formula with the minus sign. x equals negative 4 minus 8, all over 4, which is negative 12 over 4, giving root 2 equals negative 3.
- Step 5: Check by substitution. For x equals 1: 2 plus 4 minus 6 is 0. For x equals negative 3: 18 minus 12 minus 6 is 0. Both roots work.
The calculator returns a discriminant of 64.00, root 1 of 1.00 and root 2 of -3.00, matching the hand calculation.
When There Are No Real Roots
Consider x squared plus 2 x plus 5 equals zero, where a equals 1, b equals 2 and c equals 5. The discriminant is 4 minus 20, which is negative 16. Because the square root of a negative number is not a real number, the formula produces no real roots, and the calculator reports exactly that, showing the discriminant of negative 16.00 with the message No real roots for both roots.
The graph explains the arithmetic. The parabola y equals x squared plus 2 x plus 5 has its turning point above the axis and opens upwards, so it never comes down to meet the axis. No crossing points exist, so no real roots exist; the algebra and the picture are saying the same thing.
Later courses extend the number system so that such equations do have solutions, written with an imaginary unit. For real-valued work in school algebra, physics and most applied problems, reporting no real roots is the complete and correct answer.
Checking Roots and Using Their Sum and Product
Two quick relationships check any pair of roots. For a x squared plus b x plus c, the sum of the roots equals negative b divided by a, and the product of the roots equals c divided by a. In the first worked example the roots 3 and 2 sum to 5, matching negative negative 5 over 1, and multiply to 6, matching c over a.
These checks take seconds and catch the classic slip of dropping a minus sign in the formula. They also run the process backwards: if a question gives you two roots, you can rebuild the equation by writing a times the quantity x squared, minus the sum times x, plus the product, equals zero.
Substitution remains the gold standard check. Putting each root back into the original equation and reaching zero confirms the answer completely, and it also confirms that the coefficients were read correctly in the first place.
Quadratics in Real Situations
Projectile problems are the classic application. The height of a thrown ball follows a quadratic in time, and its roots are the times at which the ball is at ground level. One root is usually the launch moment and the other the landing moment, so the algebra hands you the flight time directly.
Area and pricing problems produce quadratics too. A rectangle with a fixed perimeter and a required area leads to a quadratic for its side length, and a stall holder adjusting prices can land on a quadratic whose roots are the prices at which revenue falls to zero, framing the useful pricing range between them.
In each case the method is identical: model the situation, collect the equation into standard form, read a, b and c carefully, and let the formula run. The discriminant even previews the answer, since a negative discriminant in a real problem usually means the requested situation cannot happen.
Tips for Solving Quadratics
- Always start from standard form. Move every term to one side so the other side is zero before reading a, b and c. Coefficients read from an unarranged equation are unreliable.
- Attach signs to coefficients. The term minus 5 x means b is negative 5. Most wrong roots come from one lost sign at this reading stage.
- Compute the discriminant first. Its sign tells you whether to expect two roots, one repeated root or no real roots, so the final answer never surprises you.
- Remember a cannot be zero. If a is zero the equation is linear, not quadratic, and it is solved by simple rearrangement instead of the formula.
- Enter missing terms as zero. An equation with no x term has b equals 0; one with no constant has c equals 0. Leaving the box empty is not the same thing.
- Check with sum and product. The roots should add to negative b over a and multiply to c over a. Two ten-second checks catch nearly every slip.
- Substitute to be certain. Putting a root back into the original equation and getting zero is complete proof that the root is right.
- Do not fear a negative discriminant. It is a proper answer with a clear meaning: the parabola never crosses the axis and no real solution exists.
Frequently Asked Questions
1. What is a quadratic equation?
A quadratic equation is one where the highest power of the unknown is two, written as a x squared plus b x plus c equals zero.
The value of a cannot be zero, because without a squared term the equation would be linear.
2. What is the quadratic formula?
The formula is x equals negative b, plus or minus the square root of b squared minus 4 a c, all divided by 2 a.
Using the plus sign gives one root and using the minus sign gives the other.
3. What is the discriminant?
The discriminant is the part under the square root: b squared minus 4 a c.
Its sign decides whether the equation has two real roots, one repeated root or no real roots.
4. What does a negative discriminant mean?
It means the square root has no real value, so the equation has no real roots.
On a graph, the parabola never touches or crosses the horizontal axis in this case.
5. What does a discriminant of zero mean?
It means the two roots are equal: both are negative b divided by 2 a.
Graphically the parabola touches the axis at exactly one point, its turning point.
6. Can a be zero?
No. If a is zero there is no squared term and the equation is linear.
The calculator asks you to correct the entry, because the quadratic formula divides by 2 a.
7. How do I read b when the term is subtracted?
The sign belongs to the coefficient. The term minus 5 x means b equals negative 5.
Reading b as positive 5 in that case is the most common cause of wrong roots.
8. What if there is no x term or no constant term?
Enter zero for the missing coefficient. An absent x term means b equals 0, and an absent constant means c equals 0.
For example, x squared minus 9 equals zero has a equals 1, b equals 0 and c equals negative 9, with roots 3 and negative 3.
9. How can I check my roots?
Substitute each root into the original equation; a correct root makes the equation balance at zero.
You can also check that the roots add to negative b over a and multiply to c over a.
10. Does the order of the two roots matter?
No. Root 1 comes from the plus sign in the formula and root 2 from the minus sign, but the pair is what matters.
Either order describes the same two solutions to the equation.
11. When should I factorise instead?
Factorising is faster when the roots are small whole numbers and the factors are easy to spot.
The formula is the safer choice when factorising is not obvious, because it works for every quadratic.
12. What are repeated roots?
A repeated root occurs when the discriminant is zero, so the plus and minus versions of the formula give the same value.
The equation is then a perfect square, such as x squared minus 4 x plus 4, whose double root is 2.
13. Can the roots be decimals?
Yes. Most real quadratics have decimal or irrational roots, which the calculator shows to two decimal places.
For example, x squared minus 2 equals zero has roots of about 1.41 and negative 1.41.
14. Why does the graph matter?
The roots are exactly where the parabola crosses the horizontal axis, so the graph shows the solutions as points.
A parabola that misses the axis matches an equation with no real roots.
15. Do both roots always make sense in real problems?
Not always. In time, length or quantity problems a negative root may be impossible in context.
Solve fully first, then reject any root the situation forbids, keeping the meaningful one.
CONCLUSION
Every quadratic yields to the same routine: standard form, carefully signed coefficients, the discriminant, then the formula. This Quadratic Calculator follows that routine exactly, reporting the discriminant alongside root 1 and root 2, and stating clearly when no real roots exist instead of leaving you with a confusing error.
Use it to check homework, to handle quadratics that will not factorise, and to build trust in the formula itself. Run the sum and product checks on its answers a few times and you will soon spot your own slips before the calculator has to.