Elliptical Sector Calculator

Elliptical Sector Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

A=ab2(E2−E1),tan⁡E=abtan⁡θ,r(θ)=abb2cos2⁡θ+a2sin2⁡θA = \frac{ab}{2} \left( E_2 - E_1 \right), \quad \tan E = \frac{a}{b} \tan\theta, \quad r(\theta) = \frac{ab}{\sqrt{b^2 \cos^2\theta + a^2 \sin^2\theta} }
Show calculation steps (2)
  1. Length of a ray

    r(θ)=abb2cos2⁡θ+a2sin2⁡θr(\theta) = \frac{ab}{\sqrt{b^2 \cos^2\theta + a^2 \sin^2\theta} }

    Distance from the centre to the ellipse along the polar angle θ.

  2. Sector area

    A=ab2(E2−E1)A = \frac{ab}{2} \left( E_2 - E_1 \right)

    Half the product of the semi-axes times the difference of the eccentric angles of the two rays.

Usage stats

Advertisement

Results

Sector area
6.4959
square units
Opening angle θ2 − θ1 55 °
End angle θ2 75 °
Length of the ray at θ1 4.54929 units
Length of the ray at θ2 3.066452 units
Area of the whole ellipse 47.12389 square units

Report an error on this page

What is an elliptical sector?

An elliptical sector is the part of an ellipse cut out by two rays from its centre: the region between the ray at the polar angle θ1, the ray at the polar angle θ2 and the arc of the ellipse between them. The angles are measured anticlockwise from the semi-axis a, so a lies along 0° and b along 90°. With a equal to b it is an ordinary circular sector (see the sector area calculator). A sector whose two rays start at a focus instead of the centre is a different region: see the Kepler sector calculator.

This calculator finds the area of the sector, the opening angle θ2 − θ1, the end angle θ2, the lengths of the two rays from the centre to the ellipse and the area of the whole ellipse.

How to use it

Choose whether you know the end angle θ2 or the opening angle, then enter the semi-axes a and b and the angles in degrees. With the end angle, 0 ≤ θ1 < θ2 ≤ 360; with the opening angle (up to 360°) the sector may cross the 0° direction, for example from 350° to 10°. The angles are polar angles, the directions of the two rays from the centre; they are not the eccentric angles of the parametric form of the ellipse. The angle you enter last (the end angle or the opening angle) is shown back rounded like the results, to at most 6 decimal places (its full digits are used in the calculation), and every other measure is solved from the values you enter. The length unit is a label only: lengths are shown in that unit and areas in its square; angles are always in degrees. The page shows results rounded to at most 6 decimal places and writes values from 10¹² up as a 12-digit number times a power of ten, such as 1.23456789012 × 10¹², and very small values out in full.

Derivation of the formulas

Write the ellipse as (a cos E, b sin E), where E is the eccentric angle. The point with the eccentric angle E lies on the ray at the polar angle θ with tan θ = (b/a) tan E, in the same quadrant as E. A small step dE of the parameter sweeps from the centre the triangle area ½(x dy − y dx) = ½ab dE, so the sector between the eccentric angles E1 and E2 has the area

$$A = \frac{ab}{2} \left( E_2 - E_1 \right)$$

As a function of the polar angle, E = θ + arctan((a − b) sin θ cos θ / (b cos² θ + a sin² θ)), a correction that stays between −90° and 90° because both angles lie in the same quadrant. Rather than subtract two such angles, the page takes their difference as the one angle between the vectors (b cos θ1, a sin θ1) and (b cos θ2, a sin θ2), which point in the directions of the eccentric angles E1 and E2:

$$E_2 - E_1 = \operatorname{atan2}\left( ab \sin(\theta_2 - \theta_1),\; b^2 \cos\theta_1 \cos\theta_2 + a^2 \sin\theta_1 \sin\theta_2 \right)$$

For an opening above 180° the page adds 180° to the angle between the first vector and the reverse of the second. The ray at the polar angle θ meets the ellipse x²/a² + y²/b² = 1 at the distance

$$r(\theta) = \frac{ab}{\sqrt{b^2 \cos^2\theta + a^2 \sin^2\theta} }$$

With a equal to b the eccentric and polar angles agree and the area is πa²(θ2 − θ1)/360. For every ellipse an opening of 180° holds exactly half the ellipse and 360° all of it, because E advances by 180° whenever θ does. The area is not in general the opening's share of πab: since the ray is longer near the longer axis, equal openings hold more area there than near the shorter axis.

When the page was built, this formula was compared at 90 digits on 24 sectors, from a circle to an ellipse 10¹⁵ times longer than wide, with the eccentric angles above taken one by one and, for ellipses at most 50 times longer than wide, with a direct numerical integration of ½∫r(θ)² dθ; they agreed to more than 80 significant digits.

Worked example

With the default semi-axes a = 5 and b = 3 and the angles θ1 = 20° and θ2 = 75° the opening is 55°, the rays are 4.54929 and 3.066452 long and the sector has the area 6.4959 square units, while 55/360 of the whole ellipse (47.12389) would be 7.199483.

Advertisement
Ellipse with the sector between the 20° and 75° rays shaded, showing its semi-axes, ray lengths, and area.
For semi-axes 5 and 3, the rays at 20° and 75° have lengths 4.54929 and 3.066452. The shaded sector has area 6.4959 square units.

FAQ

Why is the area not just (θ2 − θ1)/360 of the ellipse?

That holds for a circle, for openings of 180° and 360°, and for a few special pairs of angles such as 0° to 90°, but not in general. The ray is longer near the longer axis, so a sector of the same opening holds more area there than near the shorter axis.

Which inputs are refused?

A semi-axis that is 0, negative or outside the range, an end angle that is not greater than the start angle, an angle above 360°, an end or opening angle of 0, text that is not a number and values outside the ranges.

Does the page give the arc length?

No. The length of the arc between the two rays is an incomplete elliptic integral of the second kind, and this page does not compute it. The elliptical segment calculator gives an arc length between two polar angles.

Does the unit change the numbers?

No. Geometry does not depend on the unit, so the unit only labels the results.

Advertisement
Comparison of the actual elliptical sector area with the result of taking 55/360 of the whole ellipse.
The 55° elliptical sector has area 6.4959. Taking 55/360 of the whole ellipse gives 7.199483 instead, because elliptical sector area is not proportional to the polar angle.

Accuracy and input range

The page computes every result from the values you enter: the two angles exactly, each ray length exactly when a equals b, or when its angle is a multiple of 30° or 45° and the square root is a terminating decimal; the other results with π and the values you enter to at least 80 significant digits, sines, cosines and the arc tangent by their power series with 20 extra digits. Each value is rounded once, half up, to the digits shown; when a value lies within 10⁻⁷⁵ of a rounding boundary (relative to its size) the page repeats the calculation with 160 and then 320 digits first, so every digit shown is correct unless a result lies within about 10⁻³¹⁵ of such a boundary.

Enter each length from 0.000001 to 1,000,000,000 and the start angle either 0 or from 0.000001 to 360 degrees and each other angle from 0.000001 to 360 degrees. Anything outside is refused with a message naming the range.

References

D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., CRC Press, 2018, ch. 4 (the ellipse; area in polar and parametric form)

Last updated:

Most popular in Geometry

View all Geometry calculators