Match the shape, not the outline.
A rectangle uses length × width. A circle uses π × (diameter ÷ 2)². A triangle uses base × perpendicular height ÷ 2. For an irregular footprint, split it into simple shapes and add the areas. Subtract openings separately.