Geometry • Conic Sections Flagship

Ellipse Calculator

Solve horizontal and vertical ellipses for standard form, center $(h, k)$, semi-major axis ($a$), semi-minor axis ($b$), foci coordinates, eccentricity ($e = c/a$), area, and perimeter with interactive SVG plots.

Verified Kepler Planetary & Ramanujan Formulas
Last Updated: September 2026
Presets:
Circle Standard Equation Solution
(x - 0)² + (y - 0)² = 25
Center (h, k) Point
(0, 0)
Symmetry Origin
Radius (r) Length
5
Diameter d = 10
Eccentricity (e) Ratio
0
Perfect Circle (e = 0)
Enclosed Area Metric
78.54
25π square units
General Quadratic Form: x² + y² - 25 = 0

Conic Cartesian Coordinate Plot

Scale: Auto-Fitting
Center / Vertex
Foci Points (F₁, F₂)
Asymptotes / Directrix

Geometric Properties

Exact Dimensions
Axis of Symmetry All Lines through (0,0)
X-Intercepts (-5, 0), (5, 0)
Y-Intercepts (0, -5), (0, 5)
Focal Parameter (c) c = 0
Asymptotes / Directrix None
Direct Answer & Overview
Verified Educational Guide

Ellipse Definition & Standard Formulas

An ellipse is the conic section with eccentricity 0 ≤ e < 1, defined as the locus of points where the sum of distances to two foci is constant (2a). The larger denominator under x² or y² determines the orientation of the major axis.

Primary Mathematical Formula Standard Mathematical Model
Standard Equation
ƒ(x)
Q.E.D.
Horizontal: (x − h)²/a² + (y − k)²/b² = 1 (a > b), Focal Distance: c = √(a² − b²), Eccentricity: e = c/a, Area: A = πab
Evaluated with exact mathematical formulation • Rigorously verified
Exact Formula
Input Parameters
Required
1
Center coordinates (h, k)
2
Semi-major axis (a)
3
Semi-minor axis (b)
4
Major axis orientation (Horizontal along X or Vertical along Y)
Expected Outputs
Calculated
Standard Form Equation
Foci Coordinates (F₁, F₂)
Eccentricity Value (e)
Exact Area (πab) & Ramanujan Perimeter
Interactive SVG coordinate canvas plot
Worked Numerical Example
Instant Verification
Find foci, eccentricity, and area for ellipse (x - 0)²/25 + (y - 0)²/9 = 1
→ a² = 25 ⟹ a = 5, b² = 9 ⟹ b = 3. Focal distance c = √(25 - 9) = √16 = 4. Eccentricity e = 4/5 = 0.8. Area A = π(5)(3) = 15π ≈ 47.12.
Foci = (±4, 0), e = 0.80, Area = 15π ≈ 47.12

Ellipse Definition & Two-Foci Distance Sum Locus

An ellipse is the geometric locus of all points $P(x, y)$ in a plane such that the sum of its distances from two fixed points $F_1$ and $F_2$ (the foci) is constant and equal to the major axis length $2a$:

$$d(P, F_1) + d(P, F_2) = 2a \quad (a > b > 0)$$

The line segment of length $2a$ connecting the vertices through the center and foci is the major axis. The perpendicular line segment of length $2b$ through the center is the minor axis.

Standard Form Equations (Horizontal vs Vertical Major Axis)

Horizontal Ellipse ($a > b$)
$\frac{(x - h)^2}{a^2} + \frac{(y - k)^2}{b^2} = 1$
  • Major axis is horizontal along $y = k$.
  • Vertices: $(h \pm a, k)$
  • Foci: $(h \pm c, k)$ where $c = \sqrt{a^2 - b^2}$
Vertical Ellipse ($a > b$)
$\frac{(x - h)^2}{b^2} + \frac{(y - k)^2}{a^2} = 1$
  • Major axis is vertical along $x = h$.
  • Vertices: $(h, k \pm a)$
  • Foci: $(h, k \pm c)$ where $c = \sqrt{a^2 - b^2}$

Focal Distance ($c = \sqrt{a^2 - b^2}$) & Eccentricity ($e = c/a$)

The Pythagorean relationship $a^2 = b^2 + c^2$ connects semi-major axis $a$, semi-minor axis $b$, and focal parameter $c$:

Focal Parameter ($c$)
$$c = \sqrt{a^2 - b^2}$$

Distance from center $(h, k)$ along the major axis to each focus point.

Eccentricity ($e$)
$$e = \frac{c}{a} = \sqrt{1 - \frac{b^2}{a^2}}$$

Dimensionless ratio $0 \le e < 1$ measuring the degree of elongation / flattening.

Exact Area ($\pi ab$) & Ramanujan Perimeter Approximations

Exact Enclosed Area

$$A = \pi a b$$

Derived by integrating or scaling a unit circle by factor $a$ along x and $b$ along y ($A = \pi \cdot 1^2 \cdot ab$).

Ramanujan Perimeter Formula

$$P \approx \pi (a + b) \left( 1 + \frac{3h}{10 + \sqrt{4 - 3h}} \right)$$

Where $h = \frac{(a - b)^2}{(a + b)^2}$. Provides sub-millimeter precision for high-eccentricity ellipses.

Applications in Astronomy (Kepler Orbits) & Acoustics

Kepler's 1st Law (Planetary Orbits)

All planets orbit the Sun in elliptical trajectories with the Sun at one focus $F_1$. Earth's orbital eccentricity is $e \approx 0.0167$.

Acoustic Whispering Galleries

In elliptical domes (e.g. St. Paul's Cathedral), sound waves whispered at focus $F_1$ reflect off the curved ceiling to concentrate at focus $F_2$.

Medical Lithotripsy

Acoustic shockwaves generated at focus $F_1$ inside an elliptical reflector reflect to focus precisely on kidney stones positioned at focus $F_2$.

Graded Step-by-Step Numerical Solutions

Example 1 • Vertical Ellipse Analysis Standard Tier

Analyze the vertical ellipse $\frac{(x - 2)^2}{9} + \frac{(y + 1)^2}{25} = 1$.

1. Center $(h, k) = (2, -1)$.

2. Denominators: $a^2 = 25 \implies a = 5$ (under $y$), $b^2 = 9 \implies b = 3$ (under $x$).

3. Major axis is vertical ($x = 2$). Vertices: $(2, -1 \pm 5) \implies (2, 4)$ and $(2, -6)$.

4. Focal distance $c = \sqrt{25 - 9} = \sqrt{16} = 4$. Foci: $(2, -1 \pm 4) \implies F_1(2, 3), F_2(2, -5)$.

Eccentricity $e = 4/5 = 0.80$, Area $A = 15\pi \approx 47.12$.

Common Pitfalls & Major vs Minor Axis Inversion

Pitfall 1: Assuming a² is Always Under x²
In an ellipse, $a$ is defined as the larger semi-axis ($a > b$). If the larger denominator is under $(y - k)^2$, the ellipse is vertical, and the foci and vertices lie along the vertical axis of symmetry $x = h$.
Pitfall 2: Adding Instead of Subtracting for Focal Distance c
For an ellipse, $c^2 = a^2 - b^2$ (subtraction), ensuring $c < a$ and $e < 1$. For a hyperbola, $c^2 = a^2 + b^2$ (addition). Do not confuse the two formulas.
Fact-Checked & Verified • Computational Accuracy Standards
Updated July 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

What is the standard equation of an ellipse?
For a horizontal ellipse (major axis along x), the standard form is (x − h)²/a² + (y − k)²/b² = 1 (where a > b). For a vertical ellipse (major axis along y), the standard form is (x − h)²/b² + (y − k)²/a² = 1 (where a > b).
What is the geometric locus definition of an ellipse?
An ellipse is the set of all points P in a plane such that the sum of the distances from P to two fixed foci F₁ and F₂ is strictly constant: d(P, F₁) + d(P, F₂) = 2a (where 2a is the major axis length).
How do you calculate the focal distance c and eccentricity e of an ellipse?
The distance c from center to each focus is given by c = √(a² − b²). The eccentricity is e = c / a. For all ellipses, 0 ≤ e < 1 (when e = 0, the ellipse becomes a perfect circle).
How do you calculate the area and perimeter of an ellipse?
The exact area is A = π · a · b. The perimeter has no simple elementary closed-form formula, but Ramanujan’s second approximation provides high accuracy: P ≈ π(a + b)[1 + 3h / (10 + √(4 − 3h))], where h = ((a − b) / (a + b))².
How does Kepler’s First Law use ellipses in astronomy?
Johannes Kepler discovered that planetary orbits around the Sun are ellipses with the Sun situated at one focus F₁ (with the other focus empty). The orbital eccentricity e determines how elongated the planetary orbit is.