Conic Sections Calculator
Calculate properties of circles, ellipses, parabolas, and hyperbolas. Get equations, eccentricity, foci, area, and interactive graph visualization.
About
Conic sections arise from slicing a right circular cone with a plane at varying angles. The four resulting curves - circle, ellipse, parabola, and hyperbola - are governed by a single parameter: eccentricity e. When e = 0 the curve is a circle. For 0 < e < 1 it is an ellipse. At e = 1 you get a parabola, and e > 1 produces a hyperbola. Misidentifying the conic type or miscalculating the focal distance c leads to errors in antenna dish design, orbital mechanics, bridge arch geometry, and optical system layout. This calculator computes standard and general form equations, eccentricity, foci, directrices, latus rectum, area, and perimeter using exact closed-form expressions and the Ramanujan perimeter approximation for ellipses.
Limitations: all inputs assume real-valued, non-degenerate conics. Degenerate cases (e.g., a = 0) are rejected. The ellipse perimeter uses Ramanujan's second approximation, accurate to within 0.04% for eccentricities below 0.95. The interactive canvas plots parametric curves at 500 sample points, sufficient for visual accuracy but not CAD-grade precision.
Formulas
All four conic sections satisfy the polar equation with focus at the origin:
where l is the semi-latus rectum and e is eccentricity.
For an ellipse with semi-major axis a and semi-minor axis b (a ≥ b), the focal distance and eccentricity are:
Ellipse perimeter uses the Ramanujan second approximation:
For a hyperbola, the relationship inverts to c2 = a2 + b2, with asymptote slopes ±ba.
For a parabola y2 = 4px, the focus is at (p, 0) and the directrix at x = −p.
Variable legend: a = semi-major axis (or transverse semi-axis for hyperbola). b = semi-minor axis (or conjugate semi-axis). c = linear eccentricity (center-to-focus distance). e = eccentricity (dimensionless ratio). p = focal length (vertex-to-focus distance for parabola). r = radius (circle). h, k = center/vertex coordinates. l = semi-latus rectum.
Reference Data
| Conic Type | Eccentricity e | Standard Form (Centered) | Foci | Directrix | Area |
|---|---|---|---|---|---|
| Circle | 0 | x2 + y2 = r2 | Center (0, 0) | N/A | πr2 |
| Ellipse | 0 < e < 1 | x2a2 + y2b2 = 1 | (±c, 0) | x = ±ae | πab |
| Parabola (right) | 1 | y2 = 4px | (p, 0) | x = −p | Unbounded |
| Parabola (up) | 1 | x2 = 4py | (0, p) | y = −p | Unbounded |
| Hyperbola (horiz.) | e > 1 | x2a2 − y2b2 = 1 | (±c, 0) | x = ±ae | Unbounded |
| Hyperbola (vert.) | e > 1 | y2a2 − x2b2 = 1 | (0, ±c) | y = ±ae | Unbounded |
| Key relationships | |||||
| Ellipse | c2 = a2 − b2, e = ca, Latus rectum = 2b2a | ||||
| Hyperbola | c2 = a2 + b2, e = ca, Asymptotes: y = ±bax | ||||
| Parabola | Focus-directrix distance = 2p, Latus rectum = |4p| | ||||
| Circle | Special case of ellipse where a = b = r and c = 0 | ||||