How the Room Area Calculator Works
The calculator builds a list of rooms and sums their floor areas into a grand total. Each room is assigned a shape and the area is computed from the matching formula: a rectangle is length × width; an L-shape is its overall bounding box minus a rectangular corner notch (length × width − notchLength × notchWidth); a circle is π × radius²; a triangle is ½ × base × height (with a Heron-of-Alexandria fallback from three sides); and a trapezoid is ½ × (a + b) × height, where a and b are the parallel sides. Incomplete or non-positive rooms contribute zero rather than breaking the total. The active-unit total is then converted so the result is shown in square metres, square feet and square yards simultaneously, plus roofing “squares” of 100 ft², with a perimeter accumulated for the shapes that have a meaningful closed boundary.
- Total floor area = Σ(per-room area by shape)
- Rectangle L×W · L-shape box−notch · circle πr² · triangle ½bh (or Heron) · trapezoid ½(a+b)h
- 1 ft² = 0.09290304 m²; 1 m² = 10.7639 ft²; 9 ft² = 1 yd²
- Roofing square = 100 ft²
- All math is client-side JavaScript with no server round-trip
