Ellipse Perimeter Calculator
Enter the semi-major axis (a) and semi-minor axis (b) of your ellipse to instantly get the perimeter using Ramanujan's second approximation, plus the area, eccentricity, and focal distance. The steps panel walks through the calculation with your exact numbers, and the formula comparison table shows how four classic approximations compare for your specific ellipse.
Why there is no exact formula for ellipse perimeter
Unlike a circle, which has the simple perimeter formula P = 2*pi*r, an ellipse has no closed-form algebraic expression for its perimeter. The exact value requires an elliptic integral, an infinite series that cannot be collapsed into a simple combination of elementary functions. This was proven rigorously in the 19th century. Mathematicians have therefore spent centuries developing approximation formulas of increasing accuracy. The Indian mathematician Srinivasa Ramanujan published two particularly useful approximations in 1914, the simpler first formula and the far more accurate second formula, both of which are still the practical standard today.
How to use this calculator
Enter the semi-major axis (a), the longer half-axis, and the semi-minor axis (b), the shorter half-axis. If a equals b the shape is a circle. The calculator uses Ramanujan's second formula by default, which is accurate to within 0.004% for any ellipse. You can switch to Ramanujan's first formula or the simpler Euler formula using the formula selector. The unit system selector converts between centimetres and inches. The steps panel shows every intermediate calculation with your actual numbers. The chart below the result shows how all three approximations behave as the b/a ratio changes from a very flat ellipse to a circle, letting you see where the formulas diverge.
Eccentricity and focal distance
Eccentricity (e) is a dimensionless measure of how stretched an ellipse is. It equals sqrt(a^2 - b^2) / a and ranges from 0 (a perfect circle) to just under 1 (an extremely flat ellipse that approaches a line segment). The focal distance (c) is the distance from the center to each of the two focus points, calculated as c = sqrt(a^2 - b^2). For a circle, both foci coincide at the center. In astronomy, planetary orbits are ellipses with the Sun at one focus; the eccentricity of Earth's orbit is about 0.0167, making it very nearly circular.
Worked example: a 10 by 6 ellipse
Take a = 10 cm and b = 6 cm. First compute h = (10 - 6)^2 / (10 + 6)^2 = 16 / 256 = 0.0625. Then compute sqrt(4 - 3h) = sqrt(4 - 0.1875) = sqrt(3.8125) = 1.9526. The bracket term is 3 * 0.0625 / (10 + 1.9526) = 0.1875 / 11.9526 = 0.01569. The perimeter is pi * (10 + 6) * (1 + 0.01569) = pi * 16 * 1.01569 = 51.05 cm. The area is pi * 10 * 6 = 188.50 cm^2. Eccentricity is sqrt(100 - 36) / 10 = sqrt(64) / 10 = 8 / 10 = 0.8, a noticeably elongated ellipse.
Ellipse perimeter approximation formulas compared
| Formula | Expression | Max error | Best for |
|---|---|---|---|
| Ramanujan 2nd | pi*(a+b)*(1+3h/(10+sqrt(4-3h))), h=(a-b)^2/(a+b)^2 | <0.004% | General use, any eccentricity |
| Ramanujan 1st | pi*[3(a+b)-sqrt((3a+b)(a+3b))] | <0.6% | Quick hand calculation |
| Euler | 2*pi*sqrt((a^2+b^2)/2) | up to ~5% | Rough estimates only |
| Exact (elliptic integral) | 4a * integral(0 to pi/2) sqrt(1-e^2*sin^2(t)) dt | Exact | Numerical reference only |
Accuracy vs. the exact elliptic integral for common aspect ratios. All errors shown as maximum relative error.
Frequently asked questions
What is the formula for the perimeter of an ellipse?
There is no single exact closed-form formula. The exact perimeter requires an elliptic integral. For practical purposes, Ramanujan's second approximation is recommended: P = pi*(a+b)*(1 + 3h/(10+sqrt(4-3h))), where h = (a-b)^2/(a+b)^2. This is accurate to within 0.004% for any ellipse, including very elongated ones.
What is the difference between the semi-major and semi-minor axes?
The semi-major axis (a) is the longer half-axis, measured from the center of the ellipse to the farthest point on its edge. The semi-minor axis (b) is the shorter half-axis, measured from the center to the nearest edge. Together they fully describe the shape of an ellipse. When a = b, the ellipse is a circle with radius a.
How accurate is Ramanujan's formula?
Ramanujan's second formula has a maximum relative error of less than 0.004% compared to the exact elliptic integral, for any eccentricity from 0 to just under 1. His simpler first formula has a maximum error under 0.6%. The Euler approximation can be off by up to about 5% for flat ellipses, so it is only suitable for rough estimates.
What is eccentricity and what does it tell me?
Eccentricity (e) measures how elongated an ellipse is. It ranges from 0 for a perfect circle to just below 1 for an extremely flat ellipse. An eccentricity of 0.5 means the foci are at the halfway point between the center and the end of the major axis. Values below 0.3 appear nearly circular to the eye; values above 0.9 look very narrow and stretched.
How does ellipse area differ from perimeter?
The area of an ellipse has an exact, simple formula: A = pi * a * b. For a circle (a = b = r) this reduces to pi * r^2. The perimeter does not have an exact simple formula, which is why approximations are needed. The area is always straightforward to calculate precisely, regardless of eccentricity.
Can I use this for real-world applications like an oval track or garden bed?
Yes. Measure the longest width of the oval from edge to edge and halve it for a. Measure the shortest width and halve it for b. The perimeter result tells you how much fencing or edging material you need (add a small margin for overlap). The area tells you how much soil, turf or paving to order. Use the imperial mode if your measurements are in inches or feet.