AI Tools Free

Ellipse Perimeter Calculator

The Ellipse Perimeter Calculator is a two-dimensional curve-length solver that acts as an ellipse circumference calculator, circumference of an ellipse calculator, and perimeter of an ellipse calculator using Ramanujan's second approximation. Enter #a and #b (1e-9 to 1,000,000,000) to compute 12-significant-digit oval circumference locally in your browser without server uploads.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate.

Allowed range: 1e-09 to 1,000,000,000.

Allowed range: 1e-09 to 1,000,000,000.

Your result
Enter your details

Result will appear here

How to Calculate the Perimeter of an Ellipse

Understanding how to calculate the perimeter of an ellipse requires a different approach from finding ellipse area (A = πab; see our Ellipse Area Calculator). Unlike a circle (C = 2πr), the exact arc length of an ellipse with semi-major axis a and semi-minor axis b leads to the complete elliptic integral of the second kind, P = 4a ∫₀^(π/2) √(1 − e² sin²θ) dθ, which has no closed-form expression in elementary functions.

h = ((a − b) / (a + b))², P ≈ π(a + b) × [1 + 3h / (10 + √(4 − 3h))]

To achieve 12-digit accuracy without slow numerical integration, batch12-core.js implements Srinivasa Ramanujan's second approximation (1914). When expanded as a power series in h, Ramanujan's formula matches the exact elliptic integral P = π(a + b)(1 + h/4 + h²/64 + h³/256 + 25h⁴/16384 + ...) identically through the h⁴ term. Its leading error term is −(3 / 131072)h⁵ ≈ −0.0000229h⁵, meaning that for the preloaded a = 3, b = 2 ellipse (h = 0.04), the formula's relative error is roughly 2.3 × 10⁻¹² (accurate to all 12 displayed digits).

Diagram of an ellipse with semi-major axis a = 3 and semi-minor axis b = 2 showing flattening parameter h = 0.04 and perimeter P ≈ 15.8654395893.
Diagram of an ellipse with semi-major axis a = 3 and semi-minor axis b = 2 showing flattening parameter h = 0.04 and perimeter P ≈ 15.8654395893.

Ellipse Circumference Calculator & Ramanujan Reference Table

Compare 10 verified oval and orbital geometries to see how this ellipse circumference calculator evaluates the flattening parameter h = ((a − b)/(a + b))² and 12-digit perimeter (#result-main):

First Semiaxis (#a)Second Semiaxis (#b)Flattening Parameter (h)Calculated Perimeter (#result-main)Geometric & Engineering Benchmark
3 (preloaded)2 (preloaded)0.0415.8654395893Preloaded workspace verification case (3:2 oval)
55031.4159265359 (10π)Exact circle limit (a = b = 5 → 2πr)
540.012345728.361667889Low-eccentricity ellipse (e = 0.6, 5:4 aspect ratio)
530.062525.5269988628Classic textbook ellipse (e = 0.8, focal distance c = 4)
10 in5 in0.11111148.442241080720 in × 10 in (2:1) oval ductwork collar (48.44 in band)
620.2526.7297855597Elongated 3:1 elliptical arch rib (e = 0.9428)
410.3617.1568392624High-eccentricity 4:1 cam profile (e = 0.9682)
36 in24 in0.04190.38527507172 in × 48 in (6 ft × 4 ft) oval dining table edge banding (15.87 ft)
45 m30 m0.04237.98159383990 m × 60 m elliptical garden track perimeter (237.98 m)
1.0167 AU0.9832 AU0.00028066.28331188422Near-circular planetary orbit benchmark (a = 1.0167, b = 0.9832)

How to Calculate the Circumference of an Ellipse Step by Step

Follow these three steps to learn how to calculate the circumference of an ellipse in the workspace above.

Enter the First Semiaxis (#a)

Measure from the center of the ellipse to the farthest vertex (half of the major diameter 2a) and enter that value into First semiaxis (#a, preloaded with 3, accepting 1e-9 to 1,000,000,000).

Input and settings
First semiaxis (#a = 3) and Second semiaxis (#b = 2) input fields in the Ellipse Perimeter Calculator.
First semiaxis (#a = 3) and Second semiaxis (#b = 2) input fields in the Ellipse Perimeter Calculator.

Enter the Second Semiaxis (#b)

Supply the perpendicular center-to-co-vertex radius (half of the minor height 2b) in Second semiaxis (#b, preloaded with 2) using the same length unit.

Tool result
Halving full oval length 2a and full oval width 2b to obtain semiaxes a and b before calculating.
Halving full oval length 2a and full oval width 2b to obtain semiaxes a and b before calculating.

Click Calculate and Export

Select Calculate (#primary-action) to compute the 12-digit perimeter in #result-main, then use Copy result (#copy-action) or Load sample (#sample-action).

Review the details
Result panel showing 15.8654395893 for preloaded semiaxes a = 3 and b = 2 alongside Copy result and Clear buttons.
Result panel showing 15.8654395893 for preloaded semiaxes a = 3 and b = 2 alongside Copy result and Clear buttons.

Worked Examples: Circumference of an Ellipse Calculator

These three worked examples demonstrate how the circumference of an ellipse calculator evaluates the preloaded 3 × 2 baseline, an oval dining tabletop edge band, and a 20 in × 10 in elliptical HVAC duct.

Preloaded a = 3, b = 2 Baseline Ellipse

With First semiaxis = 3 and Second semiaxis = 2, the sum is a + b = 5 and the flattening parameter is h = ((3 − 2)/(3 + 2))² = (1/5)² = 0.04. Substituting h = 0.04 gives 1 + 0.12 / (10 + √3.88) = 1.01001682655, which multiplied by 5π returns 15.8654395893 linear units.

Ellipse with semiaxes a = 3 and b = 2 yielding h = 0.04 and perimeter P = 15.8654395893.
Ellipse with semiaxes a = 3 and b = 2 yielding h = 0.04 and perimeter P = 15.8654395893.

Oval Dining Tabletop Edge Banding (72 in × 48 in)

A woodworker needs veneer edge banding for a 72 in long by 48 in wide oval tabletop. Halving both full dimensions gives First semiaxis = 36 in and Second semiaxis = 24 in. Entering 36 in #a and 24 in #b outputs 190.385275071 inches (15.865 ft) of trim before overlap waste.

72 in by 48 in oval tabletop converted to semiaxes a = 36 in and b = 24 in requiring 190.39 inches of edge trim.
72 in by 48 in oval tabletop converted to semiaxes a = 36 in and b = 24 in requiring 190.39 inches of edge trim.

Elliptical HVAC Duct Collar (20 in × 10 in Oval)

A sheet-metal fabricator forms a flat-oval transition collar measuring 20 in major axis (a = 10 in) by 10 in minor axis (b = 5 in). Entering 10 and 5 yields h = (5/15)² = 1/9 ≈ 0.111111 and outputs 48.4422410807 inches of sheet-metal stretch-out length (to check the ellipse's flatness ratio, pair with our Ellipse Eccentricity Calculator).

20 in by 10 in elliptical duct cross-section with semiaxes a = 10 in and b = 5 in producing a 48.44 in perimeter.
20 in by 10 in elliptical duct cross-section with semiaxes a = 10 in and b = 5 in producing a 48.44 in perimeter.

Ellipse Perimeter Formula Accuracy: Ramanujan vs. Elliptic Integrals

Why does this perimeter of an ellipse calculator use Ramanujan's second approximation instead of simpler textbook formulas? Compare the accuracy across aspect ratios:

Naive Arithmetic Mean (P ≈ π(a + b)) vs. Root-Mean-Square (P ≈ 2π√((a² + b²)/2)): Simply averaging the two radii sets h = 0 and ignores curvature concentration near the major vertices. At a 2:1 aspect ratio (a = 10, b = 5), π(10 + 5) = 47.1239, underestimating the true perimeter (48.4422) by −2.72% (1.32 in short on a 20 in duct!). Conversely, the RMS formula gives 2π√62.5 = 49.6729, overshooting the true length by +2.54%.

Ramanujan's Second Approximation vs. Complete Elliptic Integral 4aE(e): At a = 10, b = 5 (h = 1/9), the exact elliptic integral 4aE(√0.75) is 48.4422411027, while Ramanujan's second formula outputs 48.4422410807 (an error of just −0.000000045%, or half a part per billion). Even on a steep 4:1 ellipse (a = 4, b = 1, h = 0.36), Ramanujan II (17.1568392624) stays within 0.0014% of the exact elliptic integral (17.15686352). For circular arcs or sectors rather than closed ovals, use our Arc Length Calculator or Sector Perimeter Calculator.

Accuracy comparison curve plotting naive mean π(a+b), RMS approximation, and Ramanujan's second approximation against the exact elliptic integral 4aE(e).
Accuracy comparison curve plotting naive mean π(a+b), RMS approximation, and Ramanujan's second approximation against the exact elliptic integral 4aE(e).

Common Ellipse Circumference Mistakes & Related Geometry Tools

Check these three frequent input mistakes before cutting material or exporting specifications:

Entering Full Diameters (2a, 2b) Instead of Semiaxes (a, b): The inputs #a and #b represent center-to-edge semiaxes (half-width and half-height), not end-to-end major and minor diameters. Because h = ((a − b)/(a + b))² is unchanged when both numbers are doubled while π(a + b) doubles, typing full diameters 6 and 4 instead of semiaxes 3 and 2 outputs 31.7308791785 (exactly 2× the true perimeter 15.8654395893). Swapping #a and #b does not change the result because (a + b) and (a − b)² are symmetric. Also note that 4-center compass ovals have a slightly different perimeter than a true conic-section ellipse x²/a² + y²/b² = 1.

For related conic, circular, and 3D calculations, use our Ellipse Area Calculator, Ellipse Eccentricity Calculator, Ellipsoid Volume Calculator, Circle Area Calculator, Arc Length Calculator, Sector Perimeter Calculator, or Regular Polygon Perimeter Calculator.

Comparison of semiaxes a and b (measured from center) versus full major and minor axes 2a and 2b (measured edge to edge).
Comparison of semiaxes a and b (measured from center) versus full major and minor axes 2a and 2b (measured edge to edge).

Frequently Asked Questions About the Ellipse Perimeter Calculator

Answers about using Ellipse Perimeter Calculator and understanding its results.

What formula does the Ellipse Perimeter Calculator use?

It uses Srinivasa Ramanujan's second approximation: first calculate h = ((a − b) / (a + b))² from semiaxes a and b, then compute P ≈ π(a + b)(1 + 3h / (10 + √(4 − 3h))). For the preloaded a = 3, b = 2 inputs (h = 0.04), this returns 15.8654395893.

Why is there no simple exact formula for the circumference of an ellipse?

Integrating the arc-length element ds = √(dx² + dy²) around x²/a² + y²/b² = 1 produces the complete elliptic integral of the second kind, P = 4a ∫₀^(π/2) √(1 − e² sin²θ) dθ. Liouville proved that this integral cannot be expressed in closed form using only elementary algebraic, trigonometric, or logarithmic functions when a ≠ b.

Should I enter full oval width and height or half-axes into #a and #b?

Always enter the semiaxes (half of the full major length and half of the full minor width). Entering full end-to-end diameters D = 2a and d = 2b doubles the calculated perimeter.

How accurate is Ramanujan's second approximation for ellipse circumference?

Its Taylor series matches the exact elliptic integral through h⁴, with a leading error term of −(3 / 131072)h⁵. For aspect ratios up to 2:1 (a = 2b, h = 1/9), the error is less than 0.5 parts per billion (0.000000045%), and even at a 3:1 aspect ratio (h = 0.25) it remains accurate to within 0.00018%.

How do I calculate a partial or half ellipse perimeter?

A half-ellipse (semi-elliptical arch) cut along either the major axis (2a) or minor axis (2b) has curved arc length equal to half of the full ellipse perimeter (P / 2). If you need the closed perimeter including the flat base chord, add 2a (or 2b) to P / 2.

Does it matter whether the larger semiaxis is in #a or #b?

No. Because (a + b) and (a − b)² are symmetric, swapping First semiaxis (#a) and Second semiaxis (#b) gives the identical 12-significant-digit circumference.

Calculate with your input

Choose another tool for your next calculation, conversion, or text task.

Calculate