Zoning Density Calculator Formula

Understand the math behind the zoning density calculator. Each variable explained with a worked example.

Formulas Used

Maximum Allowed Units

maximum_units = max_units

Units Allowed by Lot Size

by_lot_size = units_by_lot_size

Units Allowed by Density Limit

by_density = units_by_density

Net Buildable Area

net_buildable_area = net_buildable

Parcel Acreage

total_acres = parcel_acres

Total Building Area

total_bldg_sqft = total_building_area

Variables

VariableDescriptionDefault
parcel_sqftTotal Parcel Size (sq ft)(sq ft)217800
min_lot_size_sqftMinimum Lot Size (sq ft)(sq ft)7200
road_dedication_pctRoad/Open Space Dedication(%)25
max_density_per_acreMax Density (units/acre)8
avg_unit_size_sqftAverage Unit Size (sq ft)(sq ft)1800
parcel_acresDerived value= parcel_sqft / 43560calculated
net_buildableDerived value= parcel_sqft * (1 - road_dedication_pct / 100)calculated
units_by_lot_sizeDerived value= min_lot_size_sqft > 0 ? floor(net_buildable / min_lot_size_sqft) : 0calculated
units_by_densityDerived value= floor(parcel_acres * max_density_per_acre)calculated
max_unitsDerived value= units_by_lot_size < units_by_density ? units_by_lot_size : units_by_densitycalculated
total_building_areaDerived value= max_units * avg_unit_size_sqftcalculated

How It Works

Zoning Density Calculations

Zoning regulations control how many dwelling units or how much building area can be placed on a given parcel. Density is limited by multiple factors, and the most restrictive one governs.

Density Limiters

1. Maximum density per acre: The zoning code specifies a maximum number of units per acre (e.g., 8 units/acre) 2. Minimum lot size: Each unit must have a minimum lot area (e.g., 7,200 sq ft) 3. Road and open space dedication: Typically 20-30% of the parcel is dedicated to roads, sidewalks, and open space 4. Setbacks and coverage: Building footprint limits further constrain density

Calculation Method

1. Subtract road/open space dedication from total parcel area 2. Calculate units by dividing net area by minimum lot size 3. Calculate units by multiplying acreage by maximum density 4. The lower number is the maximum allowed

Density Bonus Programs

Many jurisdictions offer density bonuses (10-35% more units) for including affordable housing, green building features, or transit-oriented design.

Worked Example

5-acre parcel (217,800 sq ft), 7,200 sq ft minimum lot size, 25% road dedication, 8 units/acre maximum, 1,800 sq ft average unit.

parcel_sqft = 217800min_lot_size_sqft = 7200road_dedication_pct = 25max_density_per_acre = 8avg_unit_size_sqft = 1800
  1. 01Parcel acreage: 217,800 / 43,560 = 5.0 acres
  2. 02Net buildable: 217,800 x 75% = 163,350 sq ft
  3. 03Units by lot size: 163,350 / 7,200 = 22 units
  4. 04Units by density: 5.0 x 8 = 40 units
  5. 05Maximum allowed: 22 units (limited by lot size)
  6. 06Total building area: 22 x 1,800 = 39,600 sq ft

Ready to run the numbers?

Open Zoning Density Calculator