Circular Layer Calculator

Circular Layer Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

yi=hi−r,ci=2hi(2r−hi),A=12(y2c2−y1c1)+r2(arcsin⁡y2r−arcsin⁡y1r),s=r(arcsin⁡y2r−arcsin⁡y1r),P=c1+c2+2s,y1+y2=c12−c224h,y2−y1=h,r2=y12+c124y_i = h_i - r,\; c_i = 2\sqrt{h_i\,(2r - h_i)},\; A = \tfrac{1}{2}\left(y_2 c_2 - y_1 c_1\right) + r^2\left(\arcsin\tfrac{y_2}{r} - \arcsin\tfrac{y_1}{r}\right),\; s = r\left(\arcsin\tfrac{y_2}{r} - \arcsin\tfrac{y_1}{r}\right), \quad P = c_1 + c_2 + 2s,\; y_1 + y_2 = \frac{c_1^2 - c_2^2}{4h}, \quad y_2 - y_1 = h, \quad r^2 = y_1^2 + \tfrac{c_1^2}{4}
Usage stats

Advertisement

Results

Area A
47.5406
square units
Radius r5
Lower chord c₁8
Upper chord c₂9.165151
Layer height h5
Lower chord height h₁2
Upper chord height h₂7
Each side arc5.27509
Perimeter P27.715331

Report an error on this page

What this calculator does

A circular layer is the part of a disc that lies between two parallel chords. Here the circle has radius r and the chords sit at heights h₁ and h₂ above the lowest point of the circle, with 0 ≤ h₁ < h₂ ≤ 2r; the layer is bounded by the two chords and two equal arcs of the circle. With h₁ = 0 it is a circular segment, and with h₁ = 0 and h₂ = 2r it is the whole disc.

Formulas

Signed distance of a chord from the centre:

\[ y_i = h_i - r \]

Chord length:

\[ c_i = 2\sqrt{h_i\,(2r - h_i)} \]

Area:

\[ A = \tfrac{1}{2}\left(y_2 c_2 - y_1 c_1\right) + r^2\left(\arcsin\tfrac{y_2}{r} - \arcsin\tfrac{y_1}{r}\right) \]

Each side arc and perimeter:

\[ s = r\left(\arcsin\tfrac{y_2}{r} - \arcsin\tfrac{y_1}{r}\right), \quad P = c_1 + c_2 + 2s \]

From two chords and their distance h:

\[ y_1 + y_2 = \frac{c_1^2 - c_2^2}{4h}, \quad y_2 - y_1 = h, \quad r^2 = y_1^2 + \tfrac{c_1^2}{4} \]

Derivation

Put the centre at the origin. A horizontal line at height y cuts the disc in a strip of width \(2\sqrt{r^2 - y^2}\); integrating that width from y₁ to y₂ gives \(\left[y\sqrt{r^2-y^2} + r^2\arcsin\tfrac{y}{r}\right]_{y_1}^{y_2}\), the area formula above. Each side arc runs between the angles \(\arcsin\tfrac{y_1}{r}\) and \(\arcsin\tfrac{y_2}{r}\). When both chords and their distance are known, subtracting \(r^2 = y_1^2 + c_1^2/4\) from \(r^2 = y_2^2 + c_2^2/4\) gives \(y_2^2 - y_1^2 = (c_1^2 - c_2^2)/4\), and dividing by \(y_2 - y_1 = h\) fixes both distances and so the radius.

$$ A = \tfrac{1}{2}\left(y_2 c_2 - y_1 c_1\right) + r^2\left(\arcsin\tfrac{y_2}{r} - \arcsin\tfrac{y_1}{r}\right) $$

Solving from what you know

Choose what you know: Radius r and both chord heights, Both chords and the distance between them. 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.

Advertisement

Worked example

With the defaults r = 5, h₁ = 2, h₂ = 7: the chords are 8 and 2√21 ≈ 9.165151, the layer area is ≈ 47.540600, each side arc is ≈ 5.275090 and P ≈ 27.715331.

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).

Circle with a shaded layer between two parallel chords, showing the worked-example radius, chord heights, and chord lengths.
For a radius of 5 and chord heights of 2 and 7, the chord lengths are 8 and approximately 9.165151.

Frequently asked questions

Can the two chords be on opposite sides of the centre?

Yes. Heights are measured from the bottom of the circle, so any 0 ≤ h₁ < h₂ ≤ 2r works; the layer contains the centre when h₁ < r < h₂.

How is this related to a circular segment?

A layer is the difference of two segments cut off at heights h₂ and h₁; with h₁ = 0 the lower segment vanishes and the layer is a segment.

Why are two chords and their distance enough?

Two parallel chords of a circle and the gap between them fix the circle: the chord lengths give two equations for the radius, and the gap ties the two chord positions together.

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.

Advertisement
Shaded circular layer showing its area, one side arc, and complete perimeter for the worked example.
The layer area is approximately 47.540600. Each side arc is approximately 5.275090, and the perimeter is approximately 27.715331.

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

Last updated: