Quadratic Equation Calculator

Solve roots, see every step and explore the parabola.

ax² + bx + c = 0

Examples:
Have a full equation? Enter it here

Supports x² or x^2, +, −, decimals and terms on both sides. Use expanded polynomial form (no brackets).

Quadratic Equation Calculator with Steps, Roots and Graph

A quadratic equation calculator helps you solve equations containing a squared variable, usually written as x². If you are learning algebra for school, college, a competitive entrance exam or an engineering course, you often need more than two answers: you need the formula, the steps, and a way to see what the equation means. This free online quadratic equation solver calculates the roots, identifies their type, finds the discriminant and vertex, and shows the parabola for the function.

Use the calculator above by entering the three coefficients of ax² + bx + c = 0. For instance, if your equation is x² − 5x + 6 = 0, enter a = 1, b = −5 and c = 6. The quadratic equation solver gives x = 2 and x = 3, then shows why those values work. It is also a quadratic root calculator, quadratic solution calculator and quadratic calculator with quadratic formula because the results come from the standard quadratic formula.

The calculator accepts positive, negative and decimal coefficients. It can show two different real roots, one repeated real root or two complex-conjugate roots. You can also enter an expanded equation directly using the optional equation field, or find an equation from two known roots in the second tab. This makes it more useful than a simple quadratic formula finder that only prints numbers.

Quick answer: How do you solve a quadratic equation?

Write the equation in standard form ax² + bx + c = 0, where a ≠ 0. Calculate Δ = b² − 4ac. Then use x = (−b ± √Δ) / (2a). A positive discriminant gives two real roots, zero gives one repeated real root, and a negative discriminant gives a pair of complex roots. The graph crosses the x-axis twice, touches it once, or has no real x-intercept, respectively.

Quadratic Formula and Quadratic Equation Formula

The quadratic formula is one of the most important formulas in algebra. It works for every genuine quadratic equation, including equations that do not factor neatly into integers. You may also see it described as the formula for quadratic equation, quadratic eq formula, math quadratic formula, quadratic function formula calculator or quadratic formula solver calculator. The essential idea is the same: take the coefficients a, b and c from the equation and substitute them into the expression below.

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

Here, a is the coefficient of x², b is the coefficient of x and c is the constant term. The ± symbol means you calculate one answer using plus and the other using minus. This is the standard quadratic equation solution formula, also known as the root formula. It gives the exact mathematical form before any decimal rounding, even though a numerical calculator may display a decimal approximation for irrational roots.

Many students look for a quadratic formula calculator, quadratic formula solver, quadratic formula roots calculator, quadratic equation formula solver or quadratic formula calculator with steps before an exam. Learning the substitution is more valuable than memorizing only the final result. The step-by-step panel above shows the discriminant and the two substitutions so you can follow the calculation and check your written work.

How to Solve a Quadratic Equation Step by Step

Let's solve a quadratic equation by quadratic formula using x² − 5x + 6 = 0. This is a simple example because it also factors exactly, making it easy to check both methods. The steps below explain how the quadratic equation calculator step by step works for any coefficients.

  1. Identify a = 1, b = −5 and c = 6 from the equation.
  2. Calculate the discriminant: Δ = (−5)² − 4(1)(6) = 25 − 24 = 1.
  3. Substitute into the formula: x = (5 ± √1) / 2.
  4. Use plus to obtain x₁ = (5 + 1) / 2 = 3.
  5. Use minus to obtain x₂ = (5 − 1) / 2 = 2.
  6. Check both answers: (2)² − 5(2) + 6 = 0 and (3)² − 5(3) + 6 = 0.

Therefore the solutions are x = 2 and x = 3. This is what students mean when searching for a solving quadratic equations calculator, quadratic equation solver with steps, quadratic formula solver with steps, quadratic formula calculator step by step or solving quadratic equations by quadratic formula. Each step has a reason: the discriminant tells you the root type, and the two signs produce both possible solutions.

When using the optional full-equation field, write an expanded polynomial equation such as 2x² − 5x − 3 = 0 or x² = 5x − 6. This version recognizes expressions consisting of constant, x and x² terms on either side of an equals sign. It intentionally does not try to evaluate arbitrary algebraic programming syntax or products inside parentheses. For a factored expression, expand it first or use the coefficients directly.

Roots of a Quadratic Equation: Real, Equal and Complex

The roots of a quadratic equation are the values of x that make the expression equal zero. A roots of quadratic equation calculator, quadratic root finder, quadratic root solver, quadratic equation root calculator or find roots of a quadratic equation tool is intended to find those values. Some students call them the zeros or x-intercepts of the quadratic function, but there is an important detail: complex roots are not visible as intercepts on a real x–y graph.

Two distinct real roots

For x² − 5x + 6 = 0, Δ = 1, which is positive. The solutions are 2 and 3. The parabola opens upward because a = 1 and crosses the x-axis at both roots. An equation with a positive discriminant always has two distinct real solutions.

One repeated real root

For x² − 4x + 4 = 0, Δ = 16 − 16 = 0. The only distinct solution is x = 2, counted twice in the quadratic formula. Its factored form is (x − 2)² = 0 and its parabola touches the x-axis at the vertex. This is sometimes called a double root.

Two complex or imaginary roots

For x² + 4x + 8 = 0, Δ = 16 − 32 = −16. The roots are x = −2 + 2i and x = −2 − 2i, where i² = −1. The parabola opens upward and stays above the x-axis. A quadratic calculator roots of quadratic equation must handle this case instead of incorrectly claiming that the equation has no solutions at all. It has no real roots, but it does have two complex solutions.

DiscriminantRoot typeGraph behaviour
Δ > 0Two different real rootsParabola crosses x-axis twice
Δ = 0One repeated real rootParabola touches x-axis once
Δ < 0Two complex-conjugate rootsNo real x-intercepts

Discriminant Calculator: What Does b² − 4ac Mean?

The discriminant is Δ = b² − 4ac. Its sign tells you the type of roots before you calculate either one. That makes the discriminant useful when a question asks only whether a quadratic has equal, distinct or imaginary roots. The calculator above functions as a discriminant calculator and helps you find the discriminant of the quadratic equation by calculating Δ directly from the entered coefficients.

A very common mistake is to compute b² as −5² = −25 when b = −5. The correct substitution is (−5)² = 25 because b is the entire negative number. The calculator shows the substituted values with parentheses to avoid that confusion. Another mistake is forgetting the minus sign in −4ac, especially when c is negative. In that case, the product −4ac can become positive.

The quadratic formula solution is based on this discriminant: if Δ is negative, you cannot take its ordinary real square root, but you can express √Δ using i. This allows the same formula to solve equations with complex roots rather than requiring an unrelated method.

Quadratic Function Graph, Vertex and Axis of Symmetry

Every quadratic function of the form y = ax² + bx + c has a parabola as its graph. The graph of quadratic equation shown by this page updates when the coefficients change. It marks the vertex and real roots and draws the axis of symmetry as a dashed vertical line. The graph is a visual aid for understanding the solutions, not only a decorative picture.

Vertex: h = −b/(2a), k = f(h) = c − b²/(4a)
Axis of symmetry: x = h

For y = x² − 5x + 6, the vertex is (2.5, −0.25). Since a is positive, the parabola opens upward and the vertex is the minimum point. If a were negative, the parabola would open downward and the vertex would be a maximum. This is why the sign of a is so important when interpreting the curve.

The x-intercepts are real roots, while the y-intercept is the point (0, c). For y = x² − 5x + 6, the y-intercept is (0, 6). Not every parabola has a real x-intercept. If the discriminant is negative, the real graph remains entirely on one side of the x-axis.

Domain and range of a quadratic function

The domain of y = ax² + bx + c, where a ≠ 0, is all real numbers because any real x can be substituted. The range depends on the direction in which the parabola opens. For a > 0, y ≥ k, where k is the vertex's y-coordinate. For a < 0, y ≤ k. These facts help answer questions involving a domain and range of quadratic equation calculator or a quadratic function calculator. Strictly, domain and range refer to the function, rather than the equality ax² + bx + c = 0 alone.

Factoring Quadratics Calculator and the Splitting Middle Term Method

Factoring is another way to solve quadratic equations. In x² − 5x + 6 = 0, the numbers −2 and −3 multiply to 6 and add to −5. Therefore x² − 5x + 6 = (x − 2)(x − 3). Setting each factor equal to zero gives x = 2 and x = 3.

A factoring quadratics calculator, factorisation solver or splitting the middle term calculator helps with this approach. The method works especially well when the coefficients and roots allow convenient factorization. If the roots are irrational or complex, writing an elementary integer factorization may not be possible. In those situations the quadratic formula remains dependable.

For a general quadratic, one may write a(x − r₁)(x − r₂), where r₁ and r₂ are its roots, but when a root is shown as a rounded decimal this is only an approximation. The calculator distinguishes numerical roots from exact simple factors and does not mislabel a decimal approximation as an exact integer factorization.

For quadratic equation solver with steps by factoring, start by checking whether a, b and c are integers and whether the discriminant is a perfect square. If it is, the roots are rational; from there you may be able to factor over the rational numbers. Even when the equation does factor, you can verify your result quickly using the quadratic formula.

Completing the Square Formula and Method

The completing the square formula expresses a quadratic as a perfect square plus a constant. It is also the algebra behind the quadratic formula. Starting from ax² + bx + c = 0, divide by a, move the constant term to the right, and add (b/2a)² to both sides. You obtain the completed-square identity below.

a(x + b/(2a))² + (c − b²/(4a)) = 0

For x² − 5x + 6 = 0, completing the square gives (x − 2.5)² − 0.25 = 0. Rearranging yields (x − 2.5)² = 0.25, so x − 2.5 = ±0.5 and therefore x = 3 or x = 2. This is the same answer obtained from the quadratic formula and factoring.

Students searching for a completing the square calculator, quadratic equation by completing the square, solve quadratic equations by completing the square or quadratic equation simplification can use the completed-square step in the result panel above to see how the equation relates to its vertex and roots.

Find a Quadratic Equation from Its Roots

Sometimes the question gives two roots instead of an equation. To find quadratic equation from roots, start with x = r₁ and x = r₂. Then the equation is a(x − r₁)(x − r₂) = 0 for any nonzero a. Expanding gives ax² − a(r₁ + r₂)x + ar₁r₂ = 0. This is the idea behind a reverse quadratic equation calculator.

For roots 2 and 3 and a = 1, the equation is (x − 2)(x − 3) = 0, or x² − 5x + 6 = 0. If the leading coefficient is a = 2, the equation becomes 2x² − 10x + 12 = 0. Both have the same roots because multiplying the entire equation by a nonzero constant does not change its solutions.

Given roots α and β: x² − (α + β)x + αβ = 0 (when a = 1)

This also explains the relationship between roots and coefficients of quadratic equation, sometimes described using alpha and beta quadratic equation. For a general ax² + bx + c = 0, the sum of roots is α + β = −b/a and the product is αβ = c/a. The second calculator tab makes these relationships practical: enter two real roots and choose a leading coefficient to construct the equation.

How to Calculate Roots Using a Scientific Calculator

You may search for how to solve quadratic equation in scientific calculator, how to solve quadratic equation in calculator, how to find quadratic equation in calculator or how to find roots of quadratic equation on calculator. Some scientific calculators include an equation or polynomial mode with a degree-two option. The exact key sequence depends on the calculator model. If yours has no polynomial solver, use the quadratic formula, which requires only square root, division, multiplication and subtraction.

For a scientific calculator, always check whether the coefficients were entered with the correct signs. If an equation is not equal to zero, move all terms to one side first. For example, x² = 4x − 4 becomes x² − 4x + 4 = 0. Selecting the wrong coefficients produces a different equation, regardless of whether the device or web calculator is working correctly.

Quadratic Equation Examples with Solutions

EquationDiscriminantSolutions
x² − 5x + 6 = 012 and 3
x² − 4x + 4 = 002 (double root)
x² + 4x + 8 = 0−16−2 ± 2i
2x² − 5x − 3 = 0493 and −0.5
x² − 2x − 1 = 081 ± √2
3x² + 6x + 3 = 00−1 (double root)

Use these as practice problems with the quadratic equation calculator with steps above. Begin with an example you can factor easily, then try one with a non-perfect-square discriminant and one with complex roots. Seeing all three cases is a useful way to prepare for school exams and improve confidence with quadratic equations.

Types of Quadratic Equation and Common Mistakes

In school textbooks, types of quadratic equation may refer to a complete quadratic ax² + bx + c = 0, a pure quadratic ax² + c = 0, or an incomplete quadratic ax² + bx = 0. Every one of these can be solved by entering zero for the missing coefficient. For example, x² − 9 = 0 uses a = 1, b = 0 and c = −9, producing x = ±3.

Here are the most common errors when learning mathematics quadratic equations and applying the formula:

  • Forgetting that a cannot be zero. If a = 0, the equation is linear or constant, not quadratic. This solver reports an error rather than pretending it has a parabola.
  • Missing the negative sign on b. For b = −5, the numerator begins with −(−5) = +5.
  • Incorrectly treating a negative discriminant as no solutions. Such an equation has complex solutions but no real intercepts.
  • Ignoring the ± sign. A quadratic can have two different real solutions.
  • Confusing the x-intercepts with the vertex. The roots and turning point are different features of the graph.
  • Using rounded roots as exact factors. Irrational roots may need radical expressions to retain exactness.
  • Typing an unexpanded product into the equation field. Expand brackets first or use the coefficients.

Quadratic Equations in Real Life

A real life application of quadratic formula appears wherever a quantity changes according to a squared relationship. Projectile height, for instance, can often be approximated by h(t) = at² + bt + c under a simplified constant-acceleration model. Solving h(t) = 0 may tell you when an object returns to the ground. Only the physically meaningful time values should be used for the situation, even when the mathematical equation has two roots.

Quadratics also appear in area problems. If the width of a rectangle is x and its length is x + 3, then an area of 40 gives x(x + 3) = 40, or x² + 3x − 40 = 0. The equation has solutions 5 and −8, but a negative width is not physically meaningful. For an area question, the answer is width 5 and length 8.

Other application quadratic equation examples occur in optimization, economics and geometry. The vertex of a downward-opening quadratic represents a maximum, while the vertex of an upward-opening quadratic represents a minimum. The quadratic function solver above reports that vertex directly, making the graph useful for studying the meaning of a problem rather than just solving an equation.

When Should You Use This Calculator?

This page is most helpful when a student needs a solve any quadratic equation tool for school algebra, a college assessment, engineering mathematics or entrance-exam practice. It is also useful as a quadratic equation problem solver, quadratic equation finder, quadratic expression calculator and quadratic solution solver for equations already in degree-two polynomial form. Results are calculated instantly in the browser, without an account or a server submission.

Other common terms include quadratic eq solver, quadratic formula cal, quadratic equation cal, quadratic formula solution, second degree equation calculator, 2nd degree equation solver, math quadratic calculator, quadratic equation calculator online and online quadratic calculator. They mostly refer to the same core student intent: finding valid solutions to ax² + bx + c = 0 with understandable working.

For topics that use a parabola without requiring roots, the same tool can still help you inspect a quadratic function calculator result, the vertex and the shape of the graph. However, the function y = ax² + bx + c and the equation ax² + bx + c = 0 are not identical tasks: the first defines output y for every x, while the second asks for the x values where y is zero.

Frequently Asked Questions

1. What is the formula for a quadratic equation?

The standard form is ax² + bx + c = 0 with a ≠ 0. The roots of quadratic equation formula is x = (−b ± √(b² − 4ac)) / (2a).

2. How do you find the roots of a quadratic equation?

Find the discriminant, insert a, b and c into the quadratic formula, and calculate the plus and minus solutions. The calculator roots of quadratic equation feature above shows both outcomes.

3. Can a quadratic equation have only one root?

Yes, it has one distinct repeated root when its discriminant is exactly zero, such as x² − 4x + 4 = 0.

4. What happens when the discriminant is negative?

There are two complex-conjugate roots. A real parabola then has no x-intercepts.

5. Can the quadratic calculator handle decimal coefficients?

Yes. You can enter decimals and negative values for a, b and c. The leading coefficient must not equal zero.

6. How do you find a quadratic equation from two roots?

Use a(x − r₁)(x − r₂) = 0. The Equation from Roots tab expands the expression automatically.

7. Can I solve quadratics by completing the square?

Yes. The solution panel shows the completed-square form along with the quadratic-formula steps.

8. Is there a graph for a quadratic equation?

Yes. The calculator draws the parabola and marks the vertex, axis of symmetry and real roots.

9. What is the quadratic vertex formula?

h = −b/(2a), and k = c − b²/(4a). The turning point is (h, k).

10. Can I solve x² − 5x + 6 = 0?

Yes. Set a = 1, b = −5, c = 6. The roots are 2 and 3.

11. Can I use the tool as a factoring quadratic equation calculator?

It recognizes simple exact factorizations with integer coefficients and integer roots. Other cases are solved using the quadratic formula and shown with the appropriate exact or approximate roots.

12. Does a quadratic always cross the x-axis?

No. With a negative discriminant, it does not touch the real x-axis at all. With zero discriminant, it touches it once.

13. What is the sum and product of the roots?

For ax² + bx + c = 0, root sum = −b/a and root product = c/a.

14. Can I enter x² = 5x − 6 directly?

Yes. Open the full-equation field and enter the expanded equation. The parser moves all terms to the left side before solving.

15. Can it calculate roots of a cubic or quartic?

No. The quadratic equation solver is specifically for second-degree polynomials with a nonzero x² coefficient.

16. Is the calculator free for students?

Yes. You can use it online without registering, and the calculations run entirely in your browser.

Start Solving a Quadratic Equation

Enter your equation's coefficients in the quadratic equation calculator at the top, then check the roots, discriminant, completed-square expression and graph. Use the worked steps to verify classroom solutions, and try the Equation from Roots tab when your assignment supplies roots instead of an equation. The most useful result is not only the answer—it is understanding why the equation has those roots.