Skip to content

Math

Quadratic Formula Calculator

Enter your values and the result updates as you type. The formula and a worked example are below the calculator.

Solves a x² + b x + c = 0 as you type. Whole numbers, decimals and fractions such as 3/4 all work, and the answers stay exact.

Coefficients

Solutions:

x = 5 or x = -1

Exact form: x = 5 or −1

The discriminant is positive, so the parabola crosses the x-axis at two points.

Equation
-5x² + 20x + 25 = 0
Discriminant (b² − 4ac)
900
Vertex (h, k)
(2, 45)
Axis of symmetry
x = 2
y-intercept
(0, 25)
Sum of solutions (−b/a)
4
Product of solutions (c/a)
−5
Vertex form
y = (−5)(x − 2)² + 45
Factored form
y = (−5)(x − 5)(x + 1)
x = 5x = -1vertex (2, 45)c = 25x
  1. −b ± √(b² − 4ac)2a
  2. −20 ± √(20² − 4 × (−5) × 25)2 × (−5)
  3. −20 ± √(900)−10

How to use

  1. Type a, b and c from your equation a x² + b x + c = 0. Whole numbers, decimals and fractions such as 3/4 all work.
  2. Read the solutions at the top. They are shown exactly (such as 1 ± √2) with decimals underneath, and as a complex pair when the parabola never reaches the x-axis.
  3. Check the discriminant, vertex, axis of symmetry, intercept, vertex form and (when the solutions are rational) the factored form, then look at the graph.
  4. Open the steps to see the quadratic formula filled in line by line. If a is 0 the equation is a straight line and is solved as x = -c ÷ b.

Formula

x = (-b ± √(b² - 4ac)) / 2a. The discriminant b² - 4ac decides the kind of solutions: above 0 gives two real solutions, exactly 0 gives one repeated solution, below 0 gives two complex solutions. The parabola's vertex is at x = -b/2a, and the two solutions always add up to -b/a and multiply to c/a.

Example

x² - 3x + 2 = 0 has a discriminant of 1, so x = (3 ± 1) / 2, which is 2 or 1. x² + 2x + 5 = 0 has a discriminant of -16, so x = -1 ± 2i. In India, a ball thrown up from a 25 m platform at 20 m/s follows h = -5t² + 20t + 25 (g taken as 10 m/s²); setting h = 0 gives t = 5 s, the moment it lands.

Every step is worked in exact fractions, so 1/3 stays 1/3 instead of 0.333. Decimal values are shown to 10 places. A negative or complex answer can still be right for the algebra; for a real-world problem such as the ball above, only the positive time makes sense.