What this calculator does
An elongated quarter circle is a rectangle of width a and height b with a quarter disc of radius a standing on its top side: the quarter circle is centred at the top-left corner, so the left edge runs straight up to height b + a and the arc comes down to the top-right corner. With b = 0 it is a plain quarter circle.
Formulas
Area:
\[ A = a b + \frac{\pi a^2}{4} \]
Perimeter:
\[ P = 2a + 2b + \frac{\pi a}{2} \]
Total height:
\[ H = a + b \]
Derivation
The area adds the rectangle a · b and a quarter disc of radius a. The outline is the bottom edge a, the right side b, the quarter arc \(\tfrac{\pi a}{2}\) and the left side b + a. Given A or P with the width, solve for b; a negative b is refused because the quarter circle alone is already larger.
$$ A = a b + \frac{\pi a^2}{4} $$
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 = 5, b = 3: A = 15 + 6.25π ≈ 34.634954, P = 16 + 2.5π ≈ 23.853982.
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
Where is this shape used?
Quarter-round windows and door heads, garden bed corners, and countertop ends with one rounded corner of full width.
Why is my perimeter refused?
For a width a the outline is at least 2a + πa/2 (the quarter circle with its two radii); a shorter perimeter would need a negative 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