Solved.tools: Free Online Calculators & Tools

We use cookies for analytics and advertising. Learn more about our cookie policy

Quadratic Formula Calculator

Last updated: 27 June 2026

Reviewed by Gavin Meiring, Lead research and primary author ยท Doctoral Candidate (Corporate Governance) ยท Research and drafting assisted by AI

axยฒ + bx + c = 0
Was this helpful?


Quadratic Formula Calculator

A quadratic formula calculator solves any quadratic equation of the form ax squared plus bx plus c equals 0, finding all real and complex roots instantly. It is used by maths students, engineers, physicists, and programmers who need to solve parabolic equations quickly.

How to Use the Quadratic Formula Calculator

  1. Rearrange your equation into standard form: ax squared plus bx plus c equals 0.
  2. Enter the values of a, b, and c into the corresponding input fields.
  3. Click Calculate to see the discriminant, the nature of the roots, and the solutions.
  4. Review the step-by-step working shown below the result.
  5. Use the graph display to visualise where the parabola crosses the x-axis.

The Formula

The quadratic formula gives the roots of ax squared plus bx plus c = 0 as: x = (minus b plus or minus the square root of (b squared minus 4ac)) divided by 2a. The expression under the square root, b squared minus 4ac, is called the discriminant (D). If D is greater than 0, there are two distinct real roots. If D equals 0, there is exactly one real root (the parabola just touches the x-axis). If D is less than 0, there are two complex (imaginary) roots.

Real-World Example

Solve 2x squared minus 4x minus 6 = 0. Here a = 2, b = minus 4, c = minus 6. Discriminant = (minus 4) squared minus 4 times 2 times (minus 6) = 16 plus 48 = 64. Square root of 64 = 8. x1 = (minus (minus 4) plus 8) divided by (2 times 2) = (4 plus 8) divided by 4 = 12 divided by 4 = 3. x2 = (4 minus 8) divided by 4 = minus 4 divided by 4 = minus 1. The two roots are x = 3 and x = minus 1.

Applications of Quadratic Equations

Quadratic equations appear in many real-world contexts. In physics, projectile motion follows a quadratic path; solving for t gives the time at which an object hits the ground. In finance, quadratic equations appear in portfolio optimisation and options pricing models. In engineering, they model the deflection of beams and the flow of current in some circuit configurations. In geometry, they arise when calculating areas or finding the dimensions of a rectangle given its perimeter and area.

Frequently Asked Questions

What does it mean when the discriminant is negative? A negative discriminant means the parabola does not cross the x-axis. There are no real solutions; the roots are complex numbers of the form p plus qi and p minus qi, where i is the square root of minus 1. In practical physical problems this often means there is no real-world solution to the scenario described.

Can I use the quadratic formula if a equals 0? No. If a = 0, the equation is linear (bx plus c = 0), not quadratic, and the quadratic formula does not apply. Solve a linear equation by rearranging: x = minus c divided by b.

What is the vertex of the parabola and how do I find it? The vertex is the highest or lowest point of the parabola. The x-coordinate of the vertex is minus b divided by (2a). Substitute this into the original equation to find the y-coordinate. The vertex lies exactly halfway between the two roots when they exist.

Are there other methods to solve quadratic equations? Yes. Factoring works when the equation has integer roots and is often faster. Completing the square is a method that can be used when factoring is not obvious; the quadratic formula is actually derived by completing the square on the general form. For numerical methods or very large coefficients, iterative solvers may be used.

Where the formula comes from

The quadratic formula is not a rule to be memorised from nowhere. It falls out of completing the square on the general equation, and the derivation is worth working through once.

Start with ax squared plus bx plus c equals 0, where a is not zero. Divide every term by a, which gives x squared plus (b divided by a) times x plus (c divided by a) equals 0. Move the constant to the right: x squared plus (b divided by a) times x equals minus (c divided by a).

Add the square of half the x coefficient to both sides. Half of b divided by a is b divided by 2a, and its square is b squared divided by 4a squared. The left hand side is now a perfect square, (x plus b divided by 2a) squared. The right hand side is minus (c divided by a) plus (b squared divided by 4a squared), which over a common denominator of 4a squared becomes (b squared minus 4ac) divided by 4a squared.

Take the square root of both sides. The right hand side becomes plus or minus the square root of (b squared minus 4ac), all divided by 2a, because the square root of 4a squared is 2a. Subtract b divided by 2a from both sides and the two terms combine over the shared denominator.

The result is the formula: x equals minus b plus or minus the square root of (b squared minus 4ac), all divided by 2a.

The same derivation on a worked example

Setting a equals 3, b equals minus 2 and c equals minus 5 gives 3x squared minus 2x minus 5 equals 0. The discriminant is (minus 2) squared minus 4 times 3 times (minus 5), which is 4 plus 60, or 64. The square root of 64 is 8.

The two roots are (2 plus 8) divided by 6 and (2 minus 8) divided by 6. Those are 10 divided by 6, which is 1.666667, and minus 6 divided by 6, which is minus 1. Substituting either value back into the original equation returns zero, which is the check that matters.

The vertex of that parabola is at x equals 1 divided by 3, or 0.333333, and y equals minus 16 divided by 3, or minus 5.333333. It sits halfway between the two roots, at the average of 1.666667 and minus 1.

Scaling the equation does not move the roots

Multiplying every coefficient by the same non-zero number leaves the roots untouched, because the formula divides a scaled numerator by a scaled denominator.

EquationRelation to the firstRoots
2x squared minus 4x minus 6 equals 0as givenminus 1 and 3
x squared minus 2x minus 3 equals 0divided by 2minus 1 and 3
minus 3x squared plus 6x plus 9 equals 0multiplied by minus 1.5minus 1 and 3

This is why the calculator can normalise an equation before solving it. If a coefficient pair looks awkward, dividing through by a common factor often turns a fractional discriminant into a whole number and makes the arithmetic easier to check by hand.

Exact answers against decimal places

The formula gives exact answers when the discriminant is a perfect square, and answers involving a surd when it is not. Both forms are useful, and the calculator reports both.

EquationDiscriminantExact rootsDecimals
2x squared minus 7x plus 3 equals 0253 and 0.53.000000 and 0.500000
x squared minus 3x plus 1 equals 05(3 plus the square root of 5) divided by 2, and (3 minus the square root of 5) divided by 22.618034 and 0.381966
4x squared plus 4x plus 1 equals 00minus 0.5minus 0.500000

The middle row is the one where the decimal form loses information. The square root of 5 is 2.236068 to six places, and both roots are irrational. A rounded decimal is fine for checking an answer, and it is a poor input for a second calculation, which is why the exact form is given first.

Rounding also hides the symmetry of the pair. The two exact roots here add to 3, which is the value of minus b divided by a, and they multiply to 1, which is c divided by a.

When the discriminant is negative

A negative discriminant puts the two roots off the real number line, and they arrive as a conjugate pair.

EquationDiscriminantRootsCheck
x squared plus 2x plus 5 equals 0minus 16minus 1 plus 2i and minus 1 minus 2isubstituting either root returns 0
2x squared minus 4x plus 10 equals 0minus 641 plus 2i and 1 minus 2isubstituting either root returns 0

For the first row, the square root of minus 16 is 4i. Dividing (minus 2 plus 4i) and (minus 2 minus 4i) by 2 gives the pair shown. The two roots add to minus 2 and multiply to 5, matching minus b divided by a and c divided by a, so the conjugate structure is not a coincidence.

On a graph this shows up as a parabola that never meets the x axis. The vertex of x squared plus 2x plus 5 sits at (minus 1, 4), four units above the axis, so there is no real crossing to find.

Four shapes of answer, one test

Every quadratic falls into one of four cases, and the discriminant alone tells you which.

DiscriminantKind of rootsExampleRoots
Positive and a perfect squareTwo rational roots2x squared minus 7x plus 33 and 0.5
Positive but not a perfect squareTwo irrational rootsx squared minus 3x plus 12.618034 and 0.381966
ZeroOne repeated root4x squared plus 4x plus 1minus 0.5 twice
NegativeA complex conjugate pairx squared plus 2x plus 5minus 1 plus or minus 2i

The test is cheap, and it is worth running before deciding how to solve an equation. A perfect square discriminant means the equation factors over the integers and can be solved by inspection. A zero discriminant means the two answers are the same number, which is usually a sign that the quadratic is a perfect square trinomial.

What the calculator assumes about the coefficients

  • The coefficients are real numbers entered in standard form. The equation must be rearranged first.
  • The value of a must not be zero, because the formula divides by 2a.
  • Roots are shown in exact form where possible and to six decimal places otherwise.
  • The imaginary unit is written as i, and both members of a conjugate pair are reported.
  • The graph is drawn over a fixed window, so very large or very small roots may fall outside the view without affecting the reported answer.

Also try these free tools: