Quadratic Formula Calculator

: Solve ax² + bx + c = 0 from a, b, c or a typed equation, with exact roots in simplest radical form, complex roots, the discriminant, vertex, factored form and every step
Quadratic
For ax² + bx + c = 0. Whole numbers, decimals or fractions (3/4, -1 1/2). A blank b or c is read as 0.
Exact: a, b and c are kept as fractions, so b² - 4ac is exact and the roots are written in simplest radical form, as fractions when b² - 4ac is a perfect square and as p ± qi when it is negative. Decimals are rounded to 6 places; ≈ marks a rounded figure.
Result
Roots
x = 3 or x = 2
x₁
3
x₂
2
Working
x = (-b ± √(b² - 4ac)) / (2a) a = 1, b = -5, c = 6 b² - 4ac = (-5)² - 4 × 1 × 6 = 25 - 24 = 1 √1 = 1 x = (5 ± 1) / 2 x₁ = (5 + 1) / 2 = 3 x₂ = (5 - 1) / 2 = 2
Standard form
x² - 5x + 6 = 0
a = 1, b = -5, c = 6.
Discriminant
b² - 4ac = 1: two real roots, both rational
Positive and a perfect square: two different rational roots, so the quadratic factors over the rationals; the parabola crosses the x-axis twice.
Vertex
(2.5, -0.25)
h = -b / (2a), k = c - b² / (4a): the lowest point of the parabola.
Axis of symmetry
x = 2.5
The vertical line through the vertex; the roots sit the same distance either side.
Opens
Up (a > 0)
A minimum of -0.25 at the vertex: the range is y ≥ -0.25.
y-intercept
(0, 6)
Where x = 0: y = c.
x-intercepts
(2, 0) and (3, 0)
Vertex form
y = (x - 2.5)² - 0.25
a(x - h)² + k with the vertex (h, k) = (2.5, -0.25).
Factored form
(x - 2)(x - 3)
a(x - x₁)(x - x₂), with whole numbers inside the brackets where the roots are fractions.
Sum of roots
-b / a = 5
x₁ + x₂ = 3 + 2 = 5. A check (Vieta's formulas).
Product of roots
c / a = 6
x₁ × x₂ = 3 × 2 = 6.
The parabola y = x² - 5x + 6

A quadratic formula calculator that solves ax² + bx + c = 0 and shows every step. Type a, b and c, or type the equation as you have it, such as 2x^2 - 4x = 6, and it moves everything to standard form first. It works as a quadratic equation calculator and quadratic solver: the roots come exact, in simplest radical form or as fractions, complex roots as p ± qi, each with a decimal, plus the discriminant, the vertex, vertex form, factored form and a graph of the parabola.

  1. Choose Enter: Coefficients a, b, c or An equation.
  2. For coefficients, type a (the number in front of x²), b (in front of x) and c (the number on its own). Decimals and fractions such as 3/4 work; a blank b or c is read as 0, so for x² - 9 = 0 type 1 and -9.
  3. For an equation, type it with terms on either side: x^2 or x², 2x, brackets such as (x - 2)(x + 3) = 0, or y = … for a function. The calculator says how it moved the terms to ax² + bx + c = 0.
  4. Read the roots at the top, then Working for each step of the formula with your numbers, and the rows for the discriminant, vertex, axis of symmetry, intercepts, vertex form, factored form and Vieta's sum and product. The graph under the rows marks the roots and the vertex. Examples fills one of seven equations.

x² + 2x - 1 = 0: roots with a root sign, the working and the other forms.

Input
Enter: Coefficients a, b, c
a: 1
b: 2
c: -1
Output
Roots: x = -1 ± √2
Discriminant: b² - 4ac = 8: two real roots, both irrational
Vertex: (-1, -2)
Vertex form: y = (x + 1)² - 2
Factored form: Not over the rationals; over the reals: (x + 1 - √2)(x + 1 + √2)

Working:
x = (-b ± √(b² - 4ac)) / (2a)
a = 1, b = 2, c = -1
b² - 4ac = 2² - 4 × 1 × (-1)
        = 4 + 4
        = 8
√8 = 2√2
x = (-2 ± 2√2) / 2
  = -1 ± √2
x₁ = -1 + √2 ≈ 0.414214
x₂ = -1 - √2 ≈ -2.414214

How do you use the quadratic formula?

Put the equation in the form ax² + bx + c = 0, read off a, b and c, and put them into x = (-b ± √(b² - 4ac)) / (2a). Work out b² - 4ac first, simplify its root, then do the + and the - once each. For x² - 5x + 6 = 0 that gives x = 3 or x = 2; the Working row shows these steps for your own numbers.

What does the discriminant tell you?

The discriminant b² - 4ac decides the number and kind of roots. Positive means two real roots (rational if it is a perfect square), zero means one repeated root where the vertex touches the x-axis, and negative means no real roots, only two complex ones. The Discriminant row names the case.

What if b² - 4ac is negative?

Then the parabola never crosses the x-axis and there are no real roots. The square root of a negative number is written with i, where i² = -1, so √-16 = 4i and x² + 2x + 5 = 0 has the complex roots -1 ± 2i.

Can every quadratic be factored?

Into whole-number brackets only when the discriminant is a perfect square. 2x² + 3x - 2 has 25, so it factors as (x + 2)(2x - 1). x² + 2x - 1 has 8, so it does not; its factors need roots: (x + 1 - √2)(x + 1 + √2).

How do I write a quadratic in vertex form?

Find the vertex (h, k) with h = -b / (2a) and k = c - b² / (4a), then write a(x - h)² + k. For 2x² - 4x - 6 the vertex is (1, -8), so the vertex form is y = 2(x - 1)² - 8. The calculator gives this row for every quadratic, and reads an equation typed in vertex form back to its roots.

Runs entirely in your browser. Nothing is uploaded.