Quadratic Equation Solver With Steps
Enter a, b and c from ax² + bx + c = 0 and the solver gives the solutions and shows the working three ways: factorising, the quadratic formula and completing the square. It is plain algebra, so it can help with quadratics from any course, and everything runs in your browser. No exam-board data is used.
The tool needs JavaScript. The instructions, method and limitations below remain available even when JavaScript is disabled.
Solve ax² + bx + c = 0
Rearrange your equation so one side is 0, then type the numbers in front of x², x and the number on its own. Use a minus sign for negative numbers.
Enter a, b and c, then choose “Solve with steps”.
How to use the solver
- Rearrange your equation so one side is 0. For example, x² = 9 becomes x² − 9 = 0, so a = 1, b = 0 and c = −9.
- Type a, b and c into the boxes. Use a minus sign for negative numbers.
- Choose “Solve with steps” and read the solutions, then open each method to see the working.
- Try the question yourself first, then use the steps to find where your working differs.
Which method should you use?
- Factorising is quickest when the equation factorises neatly, which happens when the discriminant is a perfect square.
- The quadratic formula always works, so it is the safe choice when the numbers are awkward.
- Completing the square is needed when a question asks for it, and it gives the turning point of the graph (vertex form).
What the discriminant tells you
The discriminant is b² − 4ac. If it is positive there are two different real solutions. If it is zero there is one repeated solution. If it is negative there are no real solutions; in Further Maths you meet complex solutions instead.
Worked example: 2x² + 3x − 2 = 0
Here a = 2, b = 3 and c = −2. First by factorising:
- a × c = 2 × (−2) = −4. Two numbers that multiply to −4 and add to 3 are 4 and −1.
- Split the middle term: 2x² + 4x − x − 2 = 0.
- Factorise in pairs: 2x(x + 2) − (x + 2) = 0.
- Take out the common bracket: (x + 2)(2x − 1) = 0.
- x + 2 = 0 gives x = −2, and 2x − 1 = 0 gives x = 1/2.
The same example with the formula
The discriminant is b² − 4ac = 3² − 4 × 2 × (−2) = 9 + 16 = 25, and √25 = 5. So x = (−3 ± 5) / 4. That gives x = 2/4 = 1/2 or x = −8/4 = −2, the same solutions as before.
Common mistakes
- Forgetting to rearrange so that one side is 0 before reading off a, b and c.
- Losing a minus sign when working out −b, especially when b is already negative.
- Dividing only part of the numerator by 2a. The whole of (−b ± √(b² − 4ac)) is divided by 2a.
- Giving only the + solution and forgetting the − solution.
- Mixing up the order of a, b and c.
Common questions
Can I use this in an exam?
No. Online tools are not allowed in exams. Use the solver to check practice questions and to understand each step. Your school or exam board sets the calculator rules.
Does it give exact answers?
When a, b and c are whole numbers it gives exact answers as fractions or surds, plus decimals to 3 significant figures. With decimal inputs it gives decimal answers.
What if a is 0?
Then the equation is linear, not quadratic. The solver says so and solves it as a linear equation.
Is what I type saved or sent anywhere?
No. The calculation happens in your browser and nothing you enter is stored or sent to us.
Limitations and privacy
The solver gives exact answers only when a, b and c are whole numbers up to 1,000,000 in size. Complex solutions appear only as a note. It is a learning aid: it shows methods but cannot tell you which one your teacher or exam board prefers.
No input is sent to a server, an analytics service or an email provider. Nothing you enter is saved: refreshing the page clears it.
Sources and method
Whole-number coefficients are solved with exact fractions and surds; decimals use ordinary decimal arithmetic. The unit tests check thousands of random equations: each solution must satisfy the equation, and each factorisation must multiply back to the original. Calculation version: calculation-v1. No syllabus, date, grade boundary or tariff dataset has been imported. Maintained by Mehar Ahmad. This tool has not had a tutor or academic review.
Related study guides
Want help with this topic?
If a topic like this keeps going wrong, you can request a free 30-minute demo to talk it through.
Request a free 30-minute demo