Conic Section Calculator

Conic type—
Discriminant (B² − 4AC)—
Eccentricity (axis-aligned case)—

How Conic Section Calculator is calculated: Discriminant = B² − 4AC: negative means ellipse, zero means parabola, positive means hyperbola

What is a conic section?

A conic section is a curve obtained by slicing a double cone with a plane, and the four kinds are the circle, the ellipse, the parabola and the hyperbola. Cut the cone parallel to its base and you get a circle. Tilt the cut slightly and you get an ellipse. Cut parallel to the side of the cone and you get a parabola. Cut steeper than the side, through both halves of the cone, and you get a hyperbola. The same four curves appear as the general second-degree equation in x and y, which is what this calculator works from.

This calculator identifies the conic from the coefficients A, B and C of the general equation, using the discriminant, and it also gives the eccentricity for the axis-aligned case. For the quadratic equation that defines a parabola, a quadratic equation calculator solves it directly, while this page classifies the whole family of curves.

Everything on this page runs in your browser, so the numbers you type never leave your device. There is no sign-up, no upload and no waiting for a server. Change any input and the results update straight away, which makes it easy to test a few values side by side before you decide anything. You can also use it offline once the page has loaded, because the calculation needs no connection at all.

How the discriminant identifies a conic

The discriminant is B squared minus 4 times A times C, where A, B and C are the coefficients of x squared, xy and y squared in the general second-degree equation. If the discriminant is negative, the conic is an ellipse, or a circle when A equals C and B is zero. If it is zero, the conic is a parabola. If it is positive, the conic is a hyperbola. The sign alone decides the type, whatever the other coefficients are.

A is the coefficient of x squared, B is the coefficient of the xy term, and C is the coefficient of y squared. The xy term matters because it rotates the conic: when B is zero, the conic is aligned with the axes, and when B is not zero, it is tilted. The discriminant uses all three coefficients, so a rotated ellipse is still recognised as an ellipse, even though its equation looks complicated.

The conic type is the headline answer, and it is one of the four names: circle, ellipse, parabola or hyperbola. The discriminant is the number behind the decision, and its sign is what matters, not its size. The eccentricity is shown for the axis-aligned case, where B is zero, and it measures how stretched the conic is: 0 for a circle, between 0 and 1 for an ellipse, exactly 1 for a parabola, and above 1 for a hyperbola.

Read the results together, not in isolation. The main result answers the headline question, but the supporting rows explain how it was reached, and they are the first place to look when a number surprises you. If the main result moves more than you expected when you change an input, check the supporting rows: they usually show which part of the calculation moved, and whether the change came from the input you intended or from a different one.

The discriminant, explained

The discriminant is the single number that classifies a conic, and it is the same idea as the discriminant of a quadratic equation, which decides whether the roots are real. Here it decides the shape. The formula is B squared minus 4AC, and the sign is everything: negative, zero or positive. The size of the discriminant does not matter for the type, although it affects the size and orientation of the curve.

The discriminant is unchanged by rotating the coordinate system, which is why it can classify a tilted conic correctly. A rotated ellipse has a nonzero B, but its discriminant is still negative, because the rotation does not change the underlying shape. That invariance is the reason the discriminant is used, rather than the individual coefficients, which do change under rotation.

The boundary cases are where the discriminant is exactly zero, which gives a parabola, or where the coefficients make the conic degenerate, such as a pair of lines or a single point. A degenerate conic still has a discriminant, but the type name does not fully describe it: two intersecting lines have a positive discriminant, like a hyperbola, but they are not a hyperbola. This calculator names the non-degenerate type, and the article notes the degenerate exception.

A worked example: x squared minus y squared equals 1

Take the equation x squared minus y squared equals 1, which has A equal to 1, B equal to 0 and C equal to minus 1. This is a familiar curve, and the calculator should identify it at once.

The discriminant is B squared minus 4AC, which is 0 minus 4 times 1 times minus 1, giving 4.00. A positive discriminant means a hyperbola, so the type is Hyperbola. The eccentricity for the axis-aligned case is the square root of 1 plus the ratio of the smaller to the larger of the absolute coefficients, which is the square root of 2, giving 1.41.

A hyperbola with an eccentricity of 1.41 is the curve with two branches opening left and right, and it is the graph of the equation x squared minus y squared equals 1. The discriminant of 4.00 is the number that told the calculator it was a hyperbola, and any other equation with a positive discriminant is a hyperbola too, whatever its other coefficients are.

Who uses conic sections

Students in Class 11 and 12 meet conic sections as a full chapter, and the discriminant is the standard tool for classifying them. The topic connects algebra with geometry: the same equation that looks like a mess of coefficients is revealed to be a circle, an ellipse, a parabola or a hyperbola, and the discriminant is the key that unlocks it.

Astronomers use conics for orbits. A planet moves in an ellipse, a comet that returns moves in an ellipse, and a comet that never returns moves in a parabola or a hyperbola. The eccentricity decides which, and the discriminant of the orbital equation is the algebraic version of the same test.

Engineers use parabolas for reflectors, because a parabola focuses parallel rays to a single point, which is why satellite dishes and car headlights are parabolic. Hyperbolas appear in cooling towers, which are hyperboloids, and in navigation systems. A Pythagorean theorem calculator is the tool for the right-angled triangles that appear in the geometry of these curves.

Treat the answers as a working figure, not as a final decision. The calculator applies the formula exactly as stated, but it cannot know the details of your situation: the exact rate, the precise measurements, or the rule that applies in your case. Use the result to narrow the question, then confirm the final number with the source that governs it, whether that is a textbook, a professional, or an official table. For a related calculation, the triangle area calculator covers the next number most people need after this one.

Ellipse vs hyperbola

An ellipse and a hyperbola are the two conics with a nonzero discriminant of opposite signs, and they are opposites in shape. An ellipse is a closed curve, bounded, with every point at a finite distance from the centre. A hyperbola is an open curve with two separate branches that run off to infinity, and it has asymptotes that the branches approach but never reach.

The eccentricity draws the line between them: an ellipse has eccentricity between 0 and 1, a parabola has exactly 1, and a hyperbola has more than 1. The circle is the special ellipse with eccentricity 0. That single number, the eccentricity, orders all four conics on one scale, which is why it is shown alongside the discriminant on this page.

Use whichever tool matches the question in front of you. When you need both answers, run the two tools with the same inputs and compare the results line by line; the difference between them is usually the decision itself. If the two tools disagree, check the inputs first, because a different input explains most disagreements.

Common mistakes with conic sections

The first is forgetting the xy term, and using A and C alone, which misclassifies a rotated conic. The second is getting the sign of the discriminant wrong, because the formula is B squared minus 4AC, not B squared plus 4AC.

The third is calling every negative discriminant a circle, when a circle needs A equal to C and B equal to zero as well. The fourth is ignoring degenerate cases, such as a pair of lines, which have a discriminant but are not a proper conic.

Check your answer by looking at the coefficients: if A and C have the same sign and B is small, expect an ellipse; if they have opposite signs, expect a hyperbola; if one of them is zero, expect a parabola. If the calculator disagrees with that rough check, recheck the signs of the coefficients.

How to use this conic section calculator

To use it, enter a (coefficient of x²); enter b (coefficient of xy); enter c (coefficient of y²), then read the results box at the top. The main result is highlighted, and the other rows give the supporting figures. If an answer looks wrong, check the inputs first: a misplaced decimal or a wrong unit is the usual cause, not the formula.

Enter A, B and C from the general second-degree equation, in the form Ax squared plus Bxy plus Cy squared plus Dx plus Ey plus F equals zero. The calculator needs only A, B and C to identify the type. Read the type first, then the discriminant, then the eccentricity, remembering that the eccentricity shown is for the axis-aligned case.

Your figures stay on your own device because the whole calculation happens in the browser. Nothing is uploaded, nothing is stored, and there is no account to create. That makes it safe to try realistic numbers, including the ones you would not want to paste into a random website. It also means the tool works the same way on a phone, a tablet or a computer, with nothing to install.

Frequently Asked Questions

Compute the discriminant, B squared minus 4AC, from the coefficients of x squared, xy and y squared. A negative discriminant means an ellipse, or a circle if A equals C and B is zero. Zero means a parabola, and a positive discriminant means a hyperbola.

Eccentricity measures how stretched a conic is. A circle has eccentricity 0, an ellipse has between 0 and 1, a parabola has exactly 1, and a hyperbola has more than 1. It is the ratio of the distance from a point on the curve to a focus, over its distance to the directrix.

A degenerate conic is a second-degree equation whose graph is not a proper curve, but a point, a single line, or a pair of lines. For example, x squared plus y squared equals zero is a single point, and x squared minus y squared equals zero is a pair of lines. The discriminant still classifies them, but the type name needs the degenerate qualification.

Planets move in ellipses, satellite dishes and headlights use parabolas, cooling towers are hyperboloids, and the path of a thrown ball is a parabola. Conic sections are the curves of orbits, optics and architecture, which is why they are studied in Class 11 and 12.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.