What this calculator does
A semi-annulus (half ring) is one half of an annulus cut along a diameter: the region between two concentric semicircles with outer radius R and inner radius r, closed by two straight pieces of the diameter, each of length R − r.
Derivation of the formulas
Area:
$$ A = \frac{\pi}{2}\left(R^2 - r^2\right) $$
Perimeter:
$$ P = \pi (R + r) + 2 (R - r) $$
Centroid distance from the centre:
$$ \bar{y} = \frac{4\left(R^2 + R r + r^2\right)}{3\pi (R + r)} $$
Take the half disc of radius R, area \(\tfrac{\pi}{2}R^2\), and remove the concentric half disc of radius r. The boundary is the outer arc \(\pi R\), the inner arc \(\pi r\) and two straight pieces of length \(R - r\). A half disc of radius x has its centroid at \(\tfrac{4x}{3\pi}\) from the centre, so the half ring has its centroid at \(\bar{y} = \dfrac{\tfrac{\pi R^2}{2}\cdot\tfrac{4R}{3\pi} - \tfrac{\pi r^2}{2}\cdot\tfrac{4r}{3\pi} }{\tfrac{\pi}{2}(R^2 - r^2)} = \dfrac{4(R^3 - r^3)}{3\pi(R^2 - r^2)}\), which simplifies to the formula above.
Solving from what you know
Choose what you know: Outer radius R and inner radius r; Outer radius R and ring width w; Inner radius r and ring width w; Area A and outer radius R; Area A and inner radius r. The calculator first solves for 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 (a length the shape allows to shrink away, such as an inner radius, may also be 0), and 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, such as an inner radius of 0, is answered.
Worked example
With the defaults R = 6 and r = 4: A = π(36 − 16)/2 = 10π ≈ 31.415927, P = 10π + 4 ≈ 35.415927.
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
What happens when the inner radius is 0?
The hole disappears and the shape is a half disc: A = πR²/2 and P = πR + 2R.
How do I find the area from the ring width?
Choose "Outer radius R and ring width w": the inner radius is r = R − w, and w may be as large as R.
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.
Reference
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018