What this calculator does
An elongated semicircle is a rectangle of width a and height b with a semicircle of diameter a standing on its top side, like a round-topped window or a tombstone outline. With b = 0 it is a plain semicircle.
Formulas
Area:
\[ A = a b + \frac{\pi a^2}{8} \]
Perimeter:
\[ P = a + 2b + \frac{\pi a}{2} \]
Total height:
\[ H = b + \frac{a}{2} \]
Derivation
The area adds the rectangle a · b and half a disc of radius a/2. The outline is the bottom edge a, the two sides b and the half circle \(\pi \cdot \tfrac{a}{2}\); the top edge of the rectangle is inside the shape. Given A or P with the width, solve the same equations for b; a negative b means the area or perimeter is smaller than the semicircle alone, so no such shape exists.
$$ A = a b + \frac{\pi a^2}{8} $$
Solving from what you know
Choose what you know: Width a and height b, Width a and area A, Width a and perimeter P. 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 a = 6, b = 4: A = 24 + 4.5π ≈ 38.137167, P = 14 + 3π ≈ 23.424778.
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), and areas from 0.000000000001 to 1,000,000,000,000,000,000.
Frequently asked questions
What is the arch window area formula?
The same: rectangle width × height plus π × width² / 8 for the semicircular head.
Why is my area refused?
For a width a the smallest possible area is the semicircle alone, πa²/8; a smaller area would need a negative rectangle 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