What this calculator does
A circular central segment (central circular layer) is the part of a disc of radius r between two parallel chords that are the same distance from the centre, one on each side. Its height h is the distance between the chords, both chords have the same length c, and it is bounded by the two chords and two equal arcs. With h = 2r it is the whole disc.
Formulas
Chord:
\[ c = 2\sqrt{r^2 - \tfrac{h^2}{4} } \]
Radius from chord and height:
\[ r = \tfrac{1}{2}\sqrt{c^2 + h^2} \]
Area:
\[ A = \frac{h c}{2} + 2r^2 \arcsin\frac{h}{2r} \]
Each side arc and perimeter:
\[ s = 2r\arcsin\frac{h}{2r}, \quad P = 2c + 2s \]
Derivation
The chords sit at distances ±h/2 from the centre, so each half-chord, the radius and h/2 form a right triangle: \(r^2 = (c/2)^2 + (h/2)^2\). The area is four right triangles with legs c/2 and h/2 (together \(hc/2\)) plus two circular sectors of angle \(2\arcsin\tfrac{h}{2r}\) on the sides (together \(2r^2\arcsin\tfrac{h}{2r}\)). Each side arc spans the same angle \(2\arcsin\tfrac{h}{2r}\).
$$ A = \frac{h c}{2} + 2r^2 \arcsin\frac{h}{2r} $$
Solving from what you know
Choose what you know: Radius r and height h, Radius r and chord c, Chord c and height h. The calculator first solves for the defining size and then computes every other value from the formulas above. A size of 0 or less, or a combination that cannot form the shape, is refused with a sentence that says why.
Worked example
With the defaults r = 5 and h = 6: c = 2√16 = 8, A = 24 + 50 arcsin(0.6) ≈ 56.175055 and P = 16 + 20 arcsin(0.6) ≈ 28.870022.
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. Values are shown with up to 6 decimal places. The unit you pick is a label: lengths are shown in that unit and areas in its square.
Lengths from 0.000001 to 1,000,000,000 are accepted (and 0 where a size of 0 makes sense).
Frequently asked questions
What is the difference to a circular layer?
A central segment is the symmetric case of a circular layer: both chords are equally far from the centre, so they have the same length.
Why is a chord equal to the diameter refused?
Two chords as long as the diameter coincide, so the layer between them has no height.
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
The formulas on this page are derived here, step by step, from the standard formulas for the circle, the circular sector and the circular segment, which the reference below contains.
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd edition, CRC Press, 2018