Math calculators

Quadratic Calculator

Updated Sep 7, 2026 By Jehan Wadia
Rate Formulas
Input mode

Enter Your Quadratic Equation

Decimal, scientific and fractional values (e.g., 3/4, 1.25, 2.5e-3) are accepted.
Try an example
Quick actions

Solve by

Switching the method instantly rebuilds the step-by-step breakdown — no need to press Calculate again.

Results

Discriminant Analysis (Δ = b² − 4ac)
Roots — Exact and Decimal
Step-by-Step Solution

Verify Your Answer

Separate multiple roots with commas. Fractions, sqrt( ), √, and complex answers such as -2 + 1.549i are understood.

Introduction

A quadratic equation looks like ax² + bx + c = 0. This quadratic equation solver finds the answers, called roots. Type in the numbers a, b, and c, or type the whole equation. Then press Calculate.

You get more than just an answer. The calculator shows each step, so you can see how the work is done. Pick one of three ways to solve: the quadratic formula, factoring, or completing the square. Switch between them any time to compare.

The tool also gives you:

  • The discriminant (Δ = b² − 4ac) and what it tells you about the roots
  • Exact answers with square roots, plus decimal answers
  • A graph of the parabola with the vertex and intercepts marked
  • A number line that shows where the real roots sit
  • A summary table with vertex form, factored form, axis of symmetry, domain, and range

Fractions, decimals, and complex (imaginary) roots all work. There is also a "Verify Your Answer" box. Type in the answer you got on paper, and the calculator will tell you if it is right. It is a fast way to check homework and learn algebra at the same time.

How to use our Quadratic Calculator

Enter the numbers from your quadratic equation, and the calculator gives you the roots, the discriminant, the vertex, a graph, and step-by-step work.

Input mode: Pick Coefficient Mode to type a, b, and c in separate boxes. Pick Equation Mode to type the whole equation on one line.

a (x² coefficient): Type the number in front of x². It cannot be 0. You can use whole numbers, decimals, or fractions like 3/4.

b (x coefficient): Type the number in front of x. Use 0 if your equation has no x term. Tap the ± button to flip the sign.

c (constant): Type the plain number at the end. Use 0 if there is no constant term.

Quadratic equation box: In Equation Mode, type your equation, like x^2 - 5x + 6 = 0. Use ^ for powers. If you leave off "= 0", we add it for you.

Show Keyboard: Tap this to get on-screen math keys for x, ^, √, and numbers.

Try an example: Tap any example equation to load and solve it right away.

Quick actions: Tap Solve, Find Vertex, Find Intercepts, Factor, or Complete the Square to jump straight to that answer.

Solve by: Choose Quadratic Formula, Factoring Method, or Completing the Square. The steps change as soon as you pick.

Calculate: Press this button to solve. Press Clear to start over with the default equation.

Result tabs: Use Steps, Graph, Number Line, and Summary to see the work, the parabola, the roots on a line, and all key values.

Verify Your Answer: Type your own roots, like x = 1, x = 2, and press Check Answer to see if you got it right.

What Is a Quadratic Equation?

A quadratic equation is a math sentence where the highest power of the variable is 2. Its standard form is ax² + bx + c = 0, where a, b, and c are numbers and a is not zero. If a were zero, the x² term would vanish and you would have a straight-line (linear) equation instead.

The three numbers are called coefficients. a sits in front of x², b sits in front of x, and c is the constant term. Solving the equation means finding the values of x that make both sides equal. Those values are called the roots or solutions.

The Parabola

When you graph a quadratic, you get a U-shaped curve called a parabola. If a is positive, the curve opens up and the lowest point is the smallest value. If a is negative, the curve opens down and the highest point is the largest value. That turning point is the vertex, found at x = −b ÷ 2a. A vertical line through the vertex is the axis of symmetry, and both halves of the parabola mirror each other across it. The roots are the spots where the curve crosses the x-axis, and the point (0, c) is the y-intercept.

The Discriminant Tells You What to Expect

Before solving, you can check the discriminant: Δ = b² − 4ac. It tells you how many roots the equation has and what kind they are.

  • Δ > 0: two different real roots. The parabola crosses the x-axis twice.
  • Δ = 0: one repeated real root. The parabola just touches the x-axis.
  • Δ < 0: two complex roots that use the imaginary number i. The parabola never touches the x-axis.

Three Ways to Solve

1. Factoring. Break the quadratic into two smaller pieces, like (x − 1)(x − 2) = 0. Then set each piece equal to zero and solve. This is the fastest way, but it only works when the roots are nice fractions or whole numbers.

2. Completing the square. Rewrite the equation so one side is a perfect square, such as (x − h)² = k. Then take the square root of both sides. This method also turns the equation into vertex form, a(x − h)² + k, where (h, k) is the vertex.

3. The quadratic formula. This one always works, no matter how messy the numbers are:

x = ( −b ± √(b² − 4ac) ) ÷ 2a

Plug in a, b, and c, then use the plus sign for one root and the minus sign for the other.

Handy Shortcuts

Vieta's rules let you check your answers fast. The two roots add up to −b ÷ a, and they multiply to c ÷ a. If your roots do not follow both rules, something went wrong.

Every quadratic has a domain of all real numbers, because you can put any number in for x. The range depends on the vertex: it starts at k and goes up when the curve opens up, or stops at k and goes down when the curve opens down.

Where Quadratics Show Up

Quadratic equations model many real things. They describe the path of a thrown ball, the shape of a satellite dish, the arc of a bridge cable, how long an object falls, profit and cost curves in business, and area problems where length and width are linked. Anytime a value grows and then shrinks (or shrinks and then grows), a quadratic is often the right tool.


Formulas used

Standard form of a quadratic equation
ax^2 + bx + c = 0,\quad a \neq 0
Quadratic formula (roots)
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
Discriminant
\Delta = b^2 - 4ac
Complex roots when the discriminant is negative
x = \frac{-b}{2a} \pm \frac{\sqrt{-\Delta}}{2|a|}\,i
Vertex and axis of symmetry
h = -\frac{b}{2a},\quad k = c - \frac{b^2}{4a},\quad \text{axis: } x = -\frac{b}{2a}
Vertex form (completing the square)
a\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a},\quad f(x) = a(x-h)^2 + k
Sum and product of roots (Vieta's formulas)
x_1 + x_2 = -\frac{b}{a},\quad x_1 x_2 = \frac{c}{a}
Factored form
f(x) = a\left(x - x_1\right)\left(x - x_2\right)

Frequently asked questions

What is the quadratic formula?

The quadratic formula is x = (−b ± √(b² − 4ac)) ÷ 2a. It solves any equation written as ax² + bx + c = 0.

Use the plus sign to get one root and the minus sign to get the other. It works every time, even when factoring fails or the roots are messy decimals or imaginary numbers.

How do you solve a quadratic equation by factoring?

Put the equation in the form ax² + bx + c = 0. Then find two numbers that multiply to a·c and add to b.

For x² − 5x + 6 = 0, the numbers are −2 and −3. They multiply to 6 and add to −5. So the equation factors into (x − 2)(x − 3) = 0. Set each part to zero: x = 2 and x = 3.

Factoring only works cleanly when the roots are whole numbers or simple fractions.

What does the discriminant tell you?

The discriminant is Δ = b² − 4ac. It tells you the number and type of roots before you solve.

  • Δ > 0: two different real roots. The parabola crosses the x-axis twice.
  • Δ = 0: one repeated real root. The parabola just touches the x-axis.
  • Δ < 0: two complex roots with i. The parabola never touches the x-axis.

How do you complete the square?

Start with x² + bx + c = 0. If there is a number in front of x², divide every term by it first.

  1. Move the constant to the right side: x² + bx = −c
  2. Take half of b, square it, and add it to both sides.
  3. The left side is now a perfect square: (x + b/2)² = something.
  4. Take the square root of both sides and solve for x.

Example: x² + 6x = 7 becomes x² + 6x + 9 = 16, or (x + 3)² = 16. So x + 3 = ±4, giving x = 1 and x = −7.

Why can't a be zero in a quadratic equation?

If a = 0, the x² term disappears. You are left with bx + c = 0, which is a straight-line equation with only one answer.

The x² term is what makes an equation quadratic. Without it, there is no parabola and no second root.

How do you find the vertex of a parabola?

Find the x-value with x = −b ÷ 2a. Then plug that number back into the equation to get the y-value.

For y = x² − 4x + 3: x = 4 ÷ 2 = 2. Then y = 4 − 8 + 3 = −1. The vertex is (2, −1).

The vertex is the lowest point when a is positive and the highest point when a is negative.

What are complex or imaginary roots?

When the discriminant is negative, you need the square root of a negative number. That is not a real number, so math uses i, where i² = −1.

For x² + 1 = 0, the roots are x = i and x = −i. Complex roots always come in pairs, like 3 + 2i and 3 − 2i. On a graph, the parabola floats above or below the x-axis and never crosses it.

What is vertex form and how is it different from standard form?

Standard form is ax² + bx + c. Vertex form is a(x − h)² + k, where (h, k) is the vertex.

Standard form makes the y-intercept easy to see, since it is just c. Vertex form makes the turning point easy to see. You switch from standard form to vertex form by completing the square.

How many solutions can a quadratic equation have?

Two, one, or none in the real numbers.

  • Two real roots when b² − 4ac is positive.
  • One repeated root when b² − 4ac equals zero.
  • No real roots when b² − 4ac is negative, but there are still two complex roots.

So a quadratic always has exactly two roots if you count complex numbers and repeats.

What is the axis of symmetry?

The axis of symmetry is a vertical line that cuts the parabola into two matching halves. Its equation is x = −b ÷ 2a.

It always passes through the vertex. If the parabola has two roots, the axis sits exactly halfway between them.

How do you check if your quadratic answers are correct?

Two quick ways:

1. Plug them in. Put each root back into ax² + bx + c. You should get 0.

2. Use Vieta's rules. The two roots must add to −b ÷ a and multiply to c ÷ a. If either check fails, you made a mistake.

What is the domain and range of a quadratic function?

The domain is always all real numbers. You can plug in any x value.

The range depends on the vertex value k. If a is positive, the range is [k, ∞), because the curve opens up from its lowest point. If a is negative, the range is (−∞, k], because the curve opens down from its highest point.

How do you solve a quadratic with no b term, like x² − 9 = 0?

Move the constant over and take the square root of both sides. Remember both the plus and minus answers.

x² − 9 = 0 becomes x² = 9, so x = 3 and x = −3.

This is called the square root method. It is the fastest way when there is no x term.

What are quadratic equations used for in real life?

They show up anywhere a value rises then falls, or falls then rises. Common examples:

  • The path of a thrown or kicked ball
  • How long an object takes to fall
  • The curve of a satellite dish or car headlight
  • Profit and cost curves in business
  • Area problems where length and width are linked
  • Bridge cables and arches

What does it mean when a quadratic has a double root?

A double root means both answers are the same number. It happens when the discriminant equals zero.

For x² − 6x + 9 = 0, the factored form is (x − 3)(x − 3) = 0, so x = 3 twice. On a graph, the parabola touches the x-axis at one point and bounces back instead of crossing.

Can a quadratic equation have fractions or decimals as coefficients?

Yes. The quadratic formula works with any real numbers for a, b, and c.

To make the math easier, you can multiply every term by the lowest common denominator to clear fractions. For example, 0.5x² + 1.5x − 2 = 0 becomes x² + 3x − 4 = 0 when you double every term. The roots stay the same.