What this calculator does
A Kepler sector is the part of an ellipse swept by the line from one focus to a point moving along the ellipse, starting at the vertex nearest to that focus. It is bounded by the segment from the focus to that vertex, the elliptical arc to the end point X, and the segment from X back to the focus. The ellipse has semi-major axis a and semi-minor axis b; the end point is given by its true anomaly ν, the angle at the focus measured from the nearest vertex, or by its eccentric anomaly E, the parameter in x = a cos E, y = b sin E.
Derivation of the formulas
Eccentricity and focal distance:
$$ c = \sqrt{a^2 - b^2},\quad e = \frac{c}{a} $$
True and eccentric anomaly:
$$ \tan\frac{E}{2} = \sqrt{\frac{1 - e}{1 + e} }\,\tan\frac{\nu}{2} $$
Area (Kepler's equation):
$$ A = \frac{a b}{2}\left(E - e \sin E\right) $$
Distance from the focus to the end point:
$$ r = a\left(1 - e\cos E\right) $$
Arc length:
$$ s = \int_0^{E}\sqrt{a^2\sin^2 t + b^2\cos^2 t}\,dt $$
Stretch the circle of radius a by the factor b/a in the direction of the minor axis: it becomes the ellipse, the point with angle E on the circle becomes the point X with eccentric anomaly E, and every area is multiplied by b/a. On the circle the region from the focus F to the vertex and round to the point at angle E is the circular sector \(\tfrac{a^2E}{2}\) minus the triangle with base \(c\) and height \(a\sin E\), that is \(\tfrac{a^2}{2}(E - e\sin E)\). Multiplying by b/a gives \(A = \tfrac{ab}{2}(E - e\sin E)\), the area form of Kepler's equation \(M = E - e\sin E\). The polar angle at the focus follows from \(r\cos\nu = a\cos E - c\) and \(r\sin\nu = b\sin E\), which give the half-angle relation above. When the area is given, the calculator solves Kepler's equation for E with Newton's method, guarded by bisection on the bracket from 0 to 2π (the left side grows steadily with E). The arc length is an incomplete elliptic integral of the second kind, evaluated with Carlson's symmetric integrals \(R_F\) and \(R_D\).
Solving from what you know
Choose what you know: Semi-axes a, b and true anomaly ν (angle at the focus); Semi-axes a, b and eccentric anomaly E; Semi-axes a, b and sector area A. The calculator first finds the sizes that define the shape and then computes every other value from the formulas above. Each length is accepted from 0.000001 to 1,000,000,000, each area from 0.000000000001 to 1,000,000,000,000,000,000 and each angle from 0.000001 up to, but not including, 360° (2π rad); anything outside is refused with a sentence that names the range. A combination that cannot form the shape is refused with a sentence that says why; a limit that is still a real shape is answered and named.
Worked example
With the defaults a = 5, b = 3 and ν = 90°: c = 4, e = 0.8, the end point lies straight above the focus at r = b²/a = 1.8, E ≈ 36.869898°, and A = 7.5(E − 0.8 sin E) ≈ 1.226258.
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable. They are shown with up to 6 decimal places; a value below 0.000001 or of 10¹⁵ and more is shown as its plain 12-digit number instead. The unit you pick is a label: lengths are shown in that unit and areas in its square.
Frequently asked questions
Is the angle measured at the focus or at the centre?
The true anomaly ν is the angle at the focus, measured from the nearest vertex. The eccentric anomaly E is the parameter angle of the point on the auxiliary circle, measured at the centre. Choose the option that matches the angle you have; the calculator shows both.
Why is it called a Kepler sector?
By Kepler's second law a planet sweeps equal areas of this kind in equal times, so the sector area divided by πab is the fraction of the orbital period since the planet passed the nearest point (perihelion).
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
References
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018
M. Abramowitz and I. A. Stegun (eds.), Handbook of Mathematical Functions, National Bureau of Standards, 1964