What is an L-shape?
An L-shape is a rectangle of width a and height b with a smaller rectangle, c wide and d high, cut out of one corner. What is left is a foot of thickness y = b − d along the whole width and an upright arm of width x = a − c along the whole height; every corner is a right angle.
How to use it
Choose what you know: the outer sides and the cut-out, or the outer sides and the two arm widths. The length unit is only a label: lengths come out in that unit and areas in its square. Each length you type must be from 0.000001 to 1,000,000,000 (boxes that allow 0 also accept 0); anything else, including text, is refused instead of being read as something else.
Derivation of the formulas
Split the L into the foot (a by y) and the upright above it (x by d):
$$A = a\,y + x\,d = a\,b - c\,d$$
Every horizontal edge of the outline together covers the width twice and every vertical edge the height twice, so
$$P = 2(a + b)$$
The centroid is the area-weighted mean of the two rectangles' centres:
$$\bar x = \frac{a y \cdot \tfrac{a}{2} + x d \cdot \tfrac{x}{2} }{A},\qquad \bar y = \frac{a y \cdot \tfrac{y}{2} + x d\,(y + \tfrac{d}{2})}{A}$$
Worked example
The page opens with overall width a = 10, overall height b = 8, cut-out width c = 6, cut-out height d = 5. Then area A = 50; perimeter P = 36; centroid x from the left edge = 3.8; centroid y from the bottom edge = 3.1 (shown to at most six decimals; see the precision note in the FAQ).
FAQ
Why does the perimeter not depend on the cut-out?
Moving the inner corner only shifts edges: the horizontal edges still add up to 2a and the vertical ones to 2b. This holds while the cut-out is smaller than the rectangle in both directions.
What if the cut-out spans the whole width?
Then the upright arm vanishes and the shape is the foot alone, a rectangle; the page names it and gives its own perimeter. A cut-out as large as the whole rectangle leaves nothing and is refused.
Why does the unit not change the numbers?
The calculator does not convert between units. Every length is read in the unit you chose, so the unit only labels the results; areas come out in that unit squared.
How precise 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. The page shows up to six decimals; a value too small or too large for that is written out as a plain number instead.
References
Zwillinger, D. (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., 2018