What this calculator does
A semi-ellipse (half ellipse) is one half of an ellipse cut along one of its axes: the region bounded by half of the ellipse and the straight base through the centre. Its base is 2a long (a is the semi-axis along the cut) and its height is the other semi-axis b; either axis may be the longer one.
Derivation of the formulas
Area:
$$ A = \frac{\pi a b}{2} $$
Curved edge (half the ellipse perimeter):
$$ L = 2\int_0^{\pi/2}\sqrt{a^2\sin^2 t + b^2\cos^2 t}\,dt = 2\max(a,b)\,E(e) $$
Perimeter:
$$ P = L + 2a $$
Centroid height above the base:
$$ \bar{y} = \frac{4b}{3\pi} $$
Eccentricity:
$$ e = \frac{\sqrt{\max(a,b)^2 - \min(a,b)^2} }{\max(a,b)} $$
Put the centre at the origin with the base on the x-axis: the curved edge is \(x = a\cos t,\ y = b\sin t\) for \(0 \le t \le \pi\). Stretching a half disc of radius 1 by a in x and by b in y multiplies its area \(\pi/2\) by ab, which gives \(A = \pi a b/2\); the same stretch moves the half disc's centroid height \(4/(3\pi)\) to \(4b/(3\pi)\). The curved edge has speed \(\sqrt{a^2\sin^2 t + b^2\cos^2 t}\); its length is half the ellipse perimeter, the complete elliptic integral of the second kind \(E(e)\) times twice the longer semi-axis. No elementary formula gives it, so the calculator evaluates it numerically with Carlson's symmetric integrals \(R_F\) and \(R_D\), using \(E(e) = R_F(0, 1 - e^2, 1) - \tfrac{e^2}{3} R_D(0, 1 - e^2, 1)\).
Solving from what you know
Choose what you know: Semi-axis a (half the base) and height b; Base width w and height b; Area A and height b; Area A and semi-axis 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; 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 and b = 3: A = 7.5π ≈ 23.561945, the curved edge is about 12.763499 (half of the ellipse perimeter 25.526999), so P ≈ 22.763499.
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
Which axis is cut?
The base is the axis of length 2a, through the centre. If you cut the same ellipse along its other axis, swap a and b: the area stays the same, but the base, the perimeter and the centroid height change.
What happens when a equals b?
The ellipse is a circle and the shape is a semicircle of radius a: A = πa²/2 and the curved edge is πa.
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