Notice

We and selected partners use cookies or similar technologies as specified in the cookie policy.
You can consent to the use of such technologies by closing this notice, by scrolling this page, by interacting with any link or button outside of this notice or by continuing to browse otherwise.
To find out more about the categories of personal information collected and the purposes for which such information will be used, please refer to our privacy policy.

California Consumer Notice

Quadratic Equation Calculator

The calculator solves any type of quadratic equation, including incomplete quadratic equations, calculates real and complex solutions, and also plots and finds the points of intersection of the parabola with the x-axis.

Equation type
Specify the coefficients a, b, c of the quadratic equation ax² + bx + c = 0, where a≠0.
x² + x + = 0


Quadratic equation

ax² + bx + c = 0
where a, b, c are the coefficients of the quadratic equation and a≠0

a — quadratic coefficient
b — linear coefficient
c — constant coefficient or free term

The Discriminant of the quadratic equation D determines the number of solutions and their type: real or complex conjugate.
The discriminant is calculated by the formula:
D = b2-4ac


If D = 0, the equation has a unique solution.
x = b 2a

For example, the equation
x2+2x+1 = 0
Coefficient values
a = 1
b = 2
c = 1
Discriminant
D = b2-4ac
D = 2 2 - 4  ·  1  ·  1 = 0
x = b 2a
x = 22 · 1 = -1
x = -1

Plot of quadratic function
y = x2+2 · x+1
The solution to the quadratic equation is the intersection of the parabola with the x-axis. The equation has one solution, then the parabola on the plot intersects the x-axis at only one point.

If D > 0 , the equation has two different solutions.
x1 = - b - D 2 a
x2 = - b + D 2 a

For example, the equation
2x2+5x+3 = 0
Coefficient values
a = 2
b = 5
c = 3

Discriminant
D = b2-4ac
D = 5 2 - 4  ·  2  ·  3 = 1 > 0
x1 = - 5 - 1 2  ·  2 = -32
x2 = - 5 + 1 2  ·  2 = -1
x1 = -32 = -1.5
x2 = -1

Plot of quadratic function
y = 2x2+5x+3
The solution to the quadratic equation is the intersection of the parabola with the x-axis. The equation has two solutions, so the parabola on the graph intersects the x-axis at two points.

If D < 0 , the equation has two complex conjugate solutions expressed by the same formula as for the positive discriminant.
x1 = - b - D 2 a
x2 = - b + D 2 a

For example, the equation
3x2-x+7 = 0
Coefficient values
a = 3
b = -1
c = 7
Discriminant
D = b2-4ac
D = -1 2 - 4  ·  3  ·  7 = -83 < 0
x1 = - b - D 2 a
x2 = - b + D 2 a
x1 = - -1 - -83 2  ·  3 = 16-83 · i6
x2 = - -1 + -83 2  ·  3 = 16+83 · i6

Plot of quadratic function
y = 3x2-x+7
Pay attention to the parabola of the graph, it does not intersect the x-axis, therefore, the equation has no real solutions.

Incomplete quadratic equation

An incomplete quadratic equation is characterized by the fact that at least one of the coefficients b or c is zero.

The equation ax² + bx = 0
Let's take an example of the equation 2x2+6x = 0
Coefficient values
a = 2
b = 6
An incomplete quadratic equation of the form ax² + bx = 0, where b≠0 has two real solutions:
x1 = 0 and x2 = ba
Solution
x1 = 0
x2 = 62 = -3

Plot of quadratic function
y = 2x2+6x

The equation ax² + c = 0
Let's take an example of the equation x22-5 = 0
Coefficient values
a = 12
c = -5
An incomplete quadratic equation of the form ax² + c = 0 and has two real solutions if c a < 0 and two complex solutions if c a > 0 .
ca = -512 = -10
Solution
c a < 0 , the equation has two different solutions:
x1 = - - c a
x2 = - c a
x1 = - - -5 12 = -10
x2 = - -5 12 = 10
x1 = -10 = -3.16227766016838
x2 = 10 = 3.16227766016838

Plot of quadratic function
y = x22-5

See also