DEV Community

Clara Sutton
Clara Sutton

Posted on Originally published at plancaliber.com

Implementing IBC Table 1004.5 Commercial Occupancy Loads & Exit Separation in TypeScript

Before signing a US commercial office, cafe, salon, or retail lease, tenants and contractors run a quick test-fit to answer five high-stakes layout questions: how many occupants does the suite hold under IBC Table 1004.5, does the occupant load cross the threshold requiring two separate exits, do exit doors have to swing outward, how wide must corridors be (36" vs 44"), and how far apart must two exits sit along the suite diagonal?

Here is the core TypeScript engine powering PlanCaliber's IBC 1004.5 Commercial Occupancy Load Calculator and Commercial Building & Office Floor Plan Software.

1. Mixed-Use Occupant Load & IBC Table 1006.2.1 Exit Thresholds

Real suites rarely have one uniform load factor. A 2,400 sq ft business office (150 gross sq ft / person) often contains a 450 sq ft conference assembly zone (15 net sq ft / person), and a 960 sq ft cafe splits between dining (15 net) and commercial kitchen (200 gross). Always round up (Math.ceil) per zone before summing:

export interface ZoneSpec {
  factorSqFtPerPerson: number;
  singleExitMaxOccupants: number;
  isAssembly: boolean;
  commonPathSprinkleredFt: number;
  commonPathUnsprinkleredFt: number;
}

export interface OccupancyAudit {
  totalOccupantLoad: number;
  minExitsRequired: number;
  outwardDoorSwingRequired: boolean;
  panicHardwareRequired: boolean;
  requiredAggregateDoorWidthIn: number;
  requiredCorridorWidthIn: 36 | 44;
  minExitSeparationFt: number;
}

export function auditCommercialSuite(
  primaryAreaSqFt: number,
  primary: ZoneSpec,
  secondaryAreaSqFt: number,
  secondary: ZoneSpec | null,
  sprinklered: boolean
): OccupancyAudit {
  const primaryOcc = Math.ceil(primaryAreaSqFt / primary.factorSqFtPerPerson);
  const secondaryOcc =
    secondary && secondaryAreaSqFt > 0
      ? Math.ceil(secondaryAreaSqFt / secondary.factorSqFtPerPerson)
      : 0;
  const totalOccupantLoad = primaryOcc + secondaryOcc;

  // IBC Table 1006.2.1 minimum exits
  let minExitsRequired = 1;
  if (totalOccupantLoad > 1000) minExitsRequired = 4;
  else if (totalOccupantLoad > 500) minExitsRequired = 3;
  else if (totalOccupantLoad > primary.singleExitMaxOccupants) minExitsRequired = 2;

  const outwardDoorSwingRequired = totalOccupantLoad >= 50;
  const isAssemblyUse = primary.isAssembly || Boolean(secondary?.isAssembly && secondaryOcc > 0);
  const panicHardwareRequired = isAssemblyUse && totalOccupantLoad >= 50;

  // IBC 1005.3 aggregate egress door width (in/occupant)
  const doorFactor = sprinklered ? 0.15 : 0.2;
  const requiredAggregateDoorWidthIn = Math.max(32, Math.ceil(totalOccupantLoad * doorFactor));

  // IBC 1020.3 corridor clear width
  const requiredCorridorWidthIn: 36 | 44 = totalOccupantLoad >= 50 ? 44 : 36;

  // IBC 1007.1.1 exit separation along suite diagonal (1/3 sprinklered, 1/2 unsprinklered)
  const totalArea = primaryAreaSqFt + (secondary ? secondaryAreaSqFt : 0);
  const estWidthFt = Math.max(20, Math.round(Math.sqrt(totalArea * 1.45)));
  const estDepthFt = Math.max(14, Math.round(totalArea / estWidthFt));
  const estDiagonalFt = Math.round(Math.hypot(estWidthFt, estDepthFt));
  const minExitSeparationFt =
    minExitsRequired >= 2 ? Math.ceil(estDiagonalFt * (sprinklered ? 1 / 3 : 1 / 2)) : 0;

  return {
    totalOccupantLoad,
    minExitsRequired,
    outwardDoorSwingRequired,
    panicHardwareRequired,
    requiredAggregateDoorWidthIn,
    requiredCorridorWidthIn,
    minExitSeparationFt
  };
}
Enter fullscreen mode Exit fullscreen mode

2. Why Crossing 49 -> 50 Occupants Changes the Entire Floor Plan

Look at the discontinuous jump at totalOccupantLoad >= 50 in the audit above:

  1. Corridor width jumps from 36" to 44" (IBC 1020.3), shrinking workstation rows or booth depth along every central spine.
  2. Exit doors must swing outward in the direction of egress travel (IBC 1010.1.2.1), requiring recessed vestibules so doors do not block public sidewalks or shared hallways.
  3. Assembly spaces (Group A) require panic hardware (IBC 1010.2.9), and minExitsRequired triggers the IBC 1007.1.1 diagonal separation rule (>= 1/3 diagonal when sprinklered, >= 1/2 diagonal when unsprinklered).
  4. ADA clearances still govern every accessible route (36" clear width) and restroom (60" wheelchair turning circle).

3. Taking a Test-Fit From Code Math Into Scaled CAD

If you want to work with the spreadsheet formulas directly, we published a copyable Commercial Office & IBC 1004.5 Estimator (Google Sheets) and an 8-Sheet Vector PDF Commercial Space-Planning Guide.

In PlanCaliber's browser studio, drafting is free with an instant 1400x1050 watermarked proof PNG export; one-time passes unlock clean 1/4"=1'-0" 2-sheet vector PDFs ($9) or full 5-sheet CAD packs with layered AutoCAD R12 .DXF ($INSUNITS=1 US inches, 8 AIA layers), 3D .OBJ, and material takeoff .CSV ($19), backed by our 14-day instant refund policy.

Note: Preliminary tenant space-planning and estimating reference only. Confirm occupancy classification, sprinkler credits, local IBC/IPC/ADA amendments, and stamped construction drawings with your local AHJ and a licensed US design professional before lease execution or build-out.

Top comments (0)