About Quadratic Equation With Complex Roots
This calculator solves quadratics with a negative discriminant. Instead of stopping at "no real solution", it gives the two complex roots in the form a ± bi. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.
The page opens on x² + 2x + 5 = 0. The discriminant is -16, and the square root of -16 is 4i, so the roots are -1 + 2i and -1 - 2i. The graph shows why: the parabola never reaches the x axis, and its vertex is the point (-1, 4).
Complex roots of a real quadratic always come as a conjugate pair: the real part is -b/(2a) and the imaginary parts are equal with opposite signs.
How to use Quadratic Equation With Complex Roots
- Choose what to show: Roots, Discriminant, Vertex or Completing the square.
- Enter a, b and c in their boxes, or switch to Equation and type something like 2x^2 - 7x + 3 = 0.
- Read the headline answer. It updates as you type, with no calculate button.
- Open the steps underneath to follow the substitution into the quadratic formula, or the completing-the-square route.
- Use the table for the factored form, vertex form, axis of symmetry and y-intercept, and the graph to see where the parabola crosses the x axis.
Features
- Exact roots: rational, simplified radical or complex, never only a rounded decimal.
- Discriminant with a reading: two real roots, one repeated root or a complex pair.
- Vertex, axis of symmetry, y-intercept and whether the parabola opens up or down.
- Factored form over the rationals when it exists, with the complex factorisation otherwise.
- Completing the square written out, ending in vertex form.
- Quadratic formula steps in KaTeX, with a copy button for the LaTeX.
- Interactive plot with roots and vertex marked, zoom, pan and PNG export.
- Accepts integers, decimals, fractions and a full equation.
Complex roots
When the discriminant is negative, take the root of its absolute value and attach i.
x = -b/(2a) ± i·√(4ac - b²) / (2a)Worked examples
x² + 2x + 5 = 0 gives x = -1 + 2i and x = -1 - 2i
Discriminant -16, so the imaginary part is 4/2 = 2.
x² + x + 1 = 0 gives x = (-1 + √3i)/2 and x = (-1 - √3i)/2
Discriminant -3. These roots are the primitive cube roots of 1.
Privacy: how it works
- Everything is calculated by code running in your browser tab. The coefficients you enter are not sent to Ulkaa or to any other server, and there is nothing to sign in to.
Tips
- Check an answer by substituting a root back into the equation: the left side should come out as 0.
- If the roots look awkward, look at the discriminant first. A perfect square means rational roots and a clean factorisation.
- The sum of the roots is -b/a and their product is c/a, which is a quick check on any pair of roots.
Frequently asked questions
Is it really free?
Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.
Do I need an account?
No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.
Does it run in my browser?
Yes. Coefficients are processed by code running in your browser tab, on your own device.
Is my data uploaded?
No. Coefficients are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.
Why does a quadratic have complex roots?
When the discriminant is negative the formula needs the square root of a negative number. That is defined using the imaginary unit i, where i² = -1.
Do complex roots always come in pairs?
For a quadratic with real coefficients, yes. They are complex conjugates, with the same real part and opposite imaginary parts.
More Quadratic Formula Calculator pages
- Quadratic Formula CalculatorEnter a, b and c, or type the equation, and get the roots with every step, the vertex and a graph of the parabola.
- Discriminant CalculatorEnter a, b and c to get the discriminant and what it says about the roots.
- Vertex Form CalculatorEnter a, b and c to get the vertex, the axis of symmetry and the vertex form.
- Completing the Square CalculatorEnter a, b and c to see the equation rewritten as a perfect square, step by step.