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- 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.
Quadratic Formula Calculator
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.
How to use the quadratic formula calculator
- Choose
Enter:Coefficients a, b, corAn equation. - For coefficients, type
a(the number in front of x²),b(in front of x) andc(the number on its own). Decimals and fractions such as3/4work; a blank b or c is read as 0, so for x² - 9 = 0 type 1 and -9. - For an equation, type it with terms on either side:
x^2orx²,2x, brackets such as(x - 2)(x + 3) = 0, ory = …for a function. The calculator says how it moved the terms to ax² + bx + c = 0. - Read the roots at the top, then
Workingfor 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.Examplesfills one of seven equations.
Example
x² + 2x - 1 = 0: roots with a root sign, the working and the other forms.
Enter: Coefficients a, b, c
a: 1
b: 2
c: -1Roots: 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.414214Details
- The quadratic formula gives the roots of any quadratic equation ax² + bx + c = 0 with a not 0: x = (-b ± √(b² - 4ac)) / (2a). The ± makes two answers, one with + and one with -. For x² - 5x + 6 = 0, a = 1, b = -5 and c = 6, so b² - 4ac = 25 - 24 = 1 and x = (5 ± 1) / 2, which gives x = 3 or x = 2.
- The discriminant is the part under the root, b² - 4ac, and it says what kind of roots to expect before you finish. Positive and a perfect square: two rational roots, and the quadratic factors (2x² + 3x - 2 has 25: x = 0.5 or x = -2). Positive but not a perfect square: two irrational roots with a root sign (x² + 2x - 1 has 8: x = -1 ± √2). Zero: one double root, as x² - 6x + 9 has: x = 3. Negative: no real roots, and the roots are complex (x² + 2x + 5 has -16: x = -1 ± 2i).
- Answers stay exact. a, b and c are held as fractions, so b² - 4ac is exact, and its root is simplified by taking out square factors: √8 = 2√2, so (-2 ± 2√2) / 2 reduces to -1 ± √2. Each root also gets a decimal to 6 places, such as -1 + √2 ≈ 0.414214. A negative discriminant gives i = √-1: x² + x + 1 = 0 has b² - 4ac = -3, so x = (-1 ± i√3)/2, about -0.5 + 0.866025i and its conjugate.
- Typed equations are moved to standard form for you. 2x^2 - 4x = 6 becomes 2x² - 4x - 6 = 0 and gives x = 3 or x = -1. Brackets are multiplied out, so (x - 2)(x + 3) = 0 and 2(x + 1)^2 = 8 work too, and y = 2(x - 1)² - 8 is read as the parabola's zeros: x = 3 or x = -1. An equation whose x³ term does not cancel is refused, because the quadratic formula only solves degree 2.
- The parabola y = ax² + bx + c has its vertex at h = -b / (2a), k = c - b² / (4a), on the axis of symmetry x = h. It opens up when a is positive (the vertex is the lowest point) and down when a is negative. For 2x² - 4x - 6 the vertex is (1, -8), so the vertex form is y = 2(x - 1)² - 8. The y-intercept is (0, c), and the x-intercepts are the real roots.
- When the roots are rational, the factored form uses whole numbers inside the brackets: 2x² + 3x - 2 = (x + 2)(2x - 1). When they are not, the calculator says so and gives the factors over the reals or the complex numbers instead, such as (x + 1 - √2)(x + 1 + √2) for x² + 2x - 1. As a check, the roots always add up to -b / a and multiply to c / a (Vieta's formulas); both rows show the sum and product worked from the roots themselves.
Limits
- With a = 0 there is no x² term, so the equation is linear: the calculator says so and solves bx + c = 0 instead (5x + 3 = 0 gives x = -0.6). With a = 0 and b = 0 it says whether every number or no number is a solution.
- Coefficients are whole numbers, decimals or fractions; roots such as √2 are not taken as a, b or c, and the equation cannot contain √ either. An equation uses one letter for the unknown: "The equation has 2 letters (x, y); a quadratic in one unknown uses one letter, such as x."
- It solves equations, not inequalities (x² - 4 > 0), and only degree 2: cubics and higher are refused with the reason. It does not show completing the square as a separate method, though the vertex form is the result of it. Decimals are rounded to 6 places and marked ≈; the exact form is the answer to copy for homework.
FAQ
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.