اردوहिन्दी

Quadratic Formula Calculator

Solve a quadratic equation: roots (real or complex), discriminant, vertex and axis of symmetry.

Cannot be 0.

Solutions

x = -1 and 4

The discriminant is positive, so there are two different real roots.

Root 1
-1
Root 2
4
Equation
1x² − 3x − 4 = 0
Discriminant (b² − 4ac)
25
Vertex
(1.5, -6.25)
Axis of symmetry
x = 1.5
Opens
Upwards (minimum at the vertex)
y-intercept
-4
Sum of roots (−b ÷ a)
3
Product of roots (c ÷ a)
-4

For 1x² − 3x − 4 = 0, the solutions are x = -1 and 4.

Add this calculator to your website

Free to use on any site or blog. Paste this code where you want the calculator to appear. It stays up to date, needs no account, and keeps your visitors' numbers in their own browser.

Preview

How it works

A quadratic equation has the form ax² + bx + c = 0, where a is not 0. Type the three numbers a, b and c. A missing term is 0, so x² − 9 = 0 has a = 1, b = 0 and c = −9.

The quadratic formula gives the solutions: x = (−b ± √(b² − 4ac)) ÷ 2a. The part under the square root, b² − 4ac, is the discriminant. If it is positive there are two real roots. If it is 0 there is one repeated root. If it is negative there are no real roots, only two complex ones that come as a pair.

The tool also gives the vertex of the parabola y = ax² + bx + c. Its x position is −b ÷ 2a, which is also the axis of symmetry and the point halfway between the two roots. The vertex is the lowest point when a is positive and the highest point when a is negative.

Check it by hand: for x² − 3x − 4 = 0, a = 1, b = −3 and c = −4. The discriminant is b² − 4ac = 9 + 16 = 25, and its square root is 5. The roots are (3 ± 5) ÷ 2, which gives 4 and −1. Check: 4 + (−1) = 3 = −b ÷ a, and 4 × (−1) = −4 = c ÷ a. The vertex is at x = 3 ÷ 2 = 1.5, where y = 2.25 − 4.5 − 4 = −6.25.

x = (−b ± √(b² − 4ac)) ÷ 2a
Discriminant D = b² − 4ac
Vertex = (−b ÷ 2a, c − b² ÷ 4a)
Sum of roots = −b ÷ a, product of roots = c ÷ a

Worked example

Solve x² − 3x − 4 = 0. Here a = 1, b = −3, c = −4. The discriminant is (−3)² − 4 × 1 × (−4) = 9 + 16 = 25, and its square root is 5.

x = (3 ± 5) ÷ 2, so x = 4 or x = −1. Check: 4 × (−1) = −4 = c ÷ a, and 4 + (−1) = 3 = −b ÷ a. The vertex is at x = 1.5, where y = −6.25.

Good to know

  • Complex roots are shown in the form p ± qi, where i is the square root of −1.
  • Results are rounded to 6 decimal places for display. Very large or very small coefficients are fine, but the numbers shown are rounded.
  • This solves one quadratic equation at a time. It does not solve higher powers or inequalities, and it does not factor the expression for you.

Questions people ask

What is the quadratic formula?

For ax² + bx + c = 0 the solutions are x = (−b ± √(b² − 4ac)) ÷ 2a. It works for every quadratic equation, including ones that do not factor neatly.

What does the discriminant tell me?

The discriminant b² − 4ac decides the kind of roots. Positive means two different real roots, zero means one repeated root, and negative means two complex roots with no real solution.

How do I solve x² − 5x + 6 = 0?

Use a = 1, b = −5, c = 6. The discriminant is 25 − 24 = 1, so x = (5 ± 1) ÷ 2, which gives x = 3 and x = 2.

What if a is 0?

Then there is no x² term and the equation is linear: bx + c = 0, with the single solution x = −c ÷ b. This tool needs a to be non-zero.

How do I find the vertex of a parabola?

The x value of the vertex is −b ÷ 2a. Put it back into the equation to find y. This calculator shows both.

What is the discriminant of x² − 3x − 4?

b² − 4ac = 9 − 4 × 1 × (−4) = 25. It is positive, so there are two real roots.

Part of the guide: Math and study calculators: percentages, fractions, GPA and everyday sums

Formulas and text last checked on 14 October 2026. Everything is calculated in your browser, so nothing you enter is sent or stored. Spotted a mistake? Tell us and we will fix it.