Quadratic Formula Calculator
Solve quadratic equations (ax² + bx + c = 0) and find the roots.
What this calculator does
This tool solves quadratic equations in the form ax² + bx + c = 0. Enter the three numbers a, b and c, and it gives the real solutions and the discriminant.
It is built for high school algebra and physics homework, and for word problems about areas, heights and profits. It tells you when an equation has two answers, one repeated answer, or no real answers at all.
A worked example
Lucas is planning a garden in Lethbridge. He wants it to be 3 m longer than it is wide, with an area of 40 square metres. If the width is x, then x(x + 3) = 40, which becomes x² + 3x - 40 = 0.
He enters a = 1, b = 3 and c = -40. The discriminant is 169.00, which is positive, so there are two answers: 5.0000 and -8.0000. A width cannot be negative, so the garden should be 5.0000 m wide.
How we work it out
We use the quadratic formula: x = (-b ± √(b² - 4ac)) ÷ 2a. First we work out the discriminant, b² - 4ac, which is the part under the square root.
If it is positive, there are two different answers. If it is zero, both answers are the same number. If it is negative, there are no real answers, and you will see a message saying so. The value of a cannot be zero, because then the equation is not quadratic. Answers are rounded to four decimal places.
Get your equation ready
The calculator needs the equation in standard form, with everything on one side and 0 on the other. Then read off a, b and c, including their signs.
- 2x² = 3 - 5x becomes 2x² + 5x - 3 = 0, so a = 2, b = 5 and c = -3.
- If there is no x term, b is 0. For x² - 9 = 0, enter a = 1, b = 0 and c = -9.
- If there is no number on its own, c is 0.
- If x² has no number in front of it, a is 1.
If a is 0, the equation is linear, not quadratic. Solve bx + c = 0 as x = -c ÷ b instead.
What the discriminant tells you
The discriminant is b² - 4ac. It tells you how many real answers to expect.
- Positive: two different answers. The graph, a U-shaped curve called a parabola, crosses the x-axis twice.
- Zero: one repeated answer, shown in both boxes. The curve just touches the x-axis.
- Negative: no real answers. The curve never reaches the x-axis. The answers are complex numbers, which this tool does not show.
If a, b and c are whole numbers and the discriminant is a perfect square, such as 1, 25 or 49, the equation can also be solved by factoring.
Check and use your answers
Put each answer back into the equation to check it. For x² - 5x + 6 = 0, the discriminant is 25 - 24 = 1, so x = (5 ± 1) ÷ 2, which gives 3 and 2. Then 3² - 5 × 3 + 6 = 0, as it should. Answers are rounded to four decimal places, so a check with a long decimal may give a number very close to zero rather than exactly zero.
In word problems, think about which answer makes sense. A length, or the time when a thrown ball lands, cannot be negative, so you keep the positive answer.
What this does not include
- Complex (imaginary) answers when the discriminant is negative
- Equations not yet in standard form; you need to rearrange them first
- Linear equations, where a is zero
- Cubic and higher-power equations
- Exact answers with square roots or fractions; results are decimals rounded to four places
Common questions
Why are there sometimes no answers?
When the discriminant is negative, the formula would need the square root of a negative number. No real number works, so there are no real answers. On a graph, the curve sits entirely above or entirely below the x-axis and never crosses it. The answers do exist as complex numbers, which you meet in later maths courses.
Why do I get the same answer twice?
The discriminant is zero, so adding or taking away its square root changes nothing. Both versions of the formula give the same number. This is called a double root. For x² - 6x + 9 = 0, both answers are 3, because the equation is the same as (x - 3)² = 0.
Can I solve it by factoring instead?
Sometimes. Factoring is quicker when the numbers are small and the answers are whole numbers or simple fractions. For example, x² - 5x + 6 factors as (x - 3)(x - 2). The quadratic formula always works, even when factoring does not, which is why it is worth knowing.
What does the ± sign mean?
It means plus or minus. You work the formula twice, once adding the square root and once subtracting it. That is where the two answers come from. In this calculator, x₁ uses the plus sign and x₂ uses the minus sign.
Where are quadratic equations used?
They describe anything that follows a curved path or grows with a square. Examples include the height of a thrown ball over time, the area of a shape when one side changes, and profit when a higher price means fewer sales. Many physics and business questions in high school lead to a quadratic.
Sources
- Algebra - Quadratic Equations : A Summary, Lamar University (Paul's Online Notes)
Last reviewed October 18, 2026. How we check our numbers.
This is an estimate to help you plan. It is not financial, medical, or legal advice. Talk to a professional before you make a big decision.