ThisCalculator

Math

Minimum Side Yard Setback NYC Calculator

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Minimum Side Yard Setback NYC Calculator

This calculator estimates the minimum side yard setback required for a residential building in New York City under the Zoning Resolution (ZR). You enter your lot width, building width, and zoning district, and it returns the required side yard width in feet. The calculation follows the ZR’s rules for attached and detached buildings in R1-R5 districts.

Formula

The NYC Zoning Resolution (Section 23-44) requires that for detached buildings in R1-R5 districts, the sum of the two side yards must be at least 10% of the lot width, but not less than 8 feet total. Each individual side yard must be at least 4 feet wide. For attached buildings (zero lot line on one side), the remaining side yard must be at least 4 feet.

For a detached building, the required total side yard width is: Total Side Yards = max(8 ft, 0.10 × Lot Width). The minimum each side yard is max(4 ft, (Total Side Yards)/2) if both sides are used. This calculator simplifies by assuming equal distribution: Side Yard = (Lot Width – Building Width) / 2, but only if the lot is not fully built. If the building width is less than the lot width, the remaining space is split between the two sides. If the building width equals the lot width (attached), the side yard is zero, but you must still provide at least 4 feet on one side if you have a window facing that side.

Worked Example

Using the defaults: Lot Width = 40 ft, Building Width = 30 ft. The remaining space is 40 – 30 = 10 ft. Divided by 2 sides gives 5 ft per side. The ZR minimum is 8 ft total or 4 ft each, so 5 ft satisfies the minimum. The calculator returns 5.00 ft for each side yard.

When to Use This Calculator

Use this when you are designing a new house, adding an extension, or converting a building in a low-density residential district (R1-R5). It helps you quickly check if your proposed building width leaves enough side yard to meet zoning. Note that this calculator only covers the basic side yard rule; other rules may apply for corner lots, through lots, or if your building has a garage or accessory structure.

How to Read the Result

The result is the minimum width of each side yard (if both sides are equal) in feet. If the result is 0, it means your building covers the entire lot width, which is only allowed for attached buildings (e.g., row houses) or if you have a waiver. For a detached house, you cannot have a zero side yard; you must provide at least 4 feet on each side, so if your building width is too large, you need to reduce it or apply for a variance.

Common Mistakes

  • Using the lot depth instead of width. The side yard is measured along the side lot line, not the front or rear.
  • Forgetting that the 10% rule is a minimum total, not per side. For a 40 ft lot, the total must be at least 8 ft, so each side could be 4 ft and 4 ft, but if one side is 5 ft, the other must be at least 3 ft? Actually, the ZR requires each side yard to be at least 4 ft, so the minimum total is 8 ft regardless of the 10% rule.
  • Assuming the building width is the same as the footprint. The building width is the exterior width of the building at its widest point, including eaves or balconies that overhang.

Limitations of the Formula

This calculator uses a simplified formula that assumes the building is centered on the lot and that both side yards are equal. In reality, you can have unequal side yards (e.g., 6 ft on one side, 4 ft on the other) as long as each is at least 4 ft and the total meets the 10% rule. Also, for corner lots, the side yard facing the street may have different requirements. For attached buildings, the side yard on the attached side is zero, but the other side must be at least 4 ft. This calculator does not account for those variations.

Frequently Asked Questions

What is the minimum side yard setback in NYC?

For detached buildings in R1-R5 districts, the minimum side yard is 4 feet on each side, and the total of both side yards must be at least 8 feet or 10% of the lot width, whichever is greater. For attached buildings, one side can be zero, but the other must be at least 4 feet.

Does the side yard setback apply to all buildings?

No. The side yard rules apply to residential buildings in low-density districts (R1-R5). In higher-density districts (R6 and above), side yards are often not required, and buildings can be built to the lot line. Commercial and community facility buildings may have different rules.

Can I build a garage in the side yard?

In many cases, yes, but the garage must comply with accessory building regulations, which often require a separate setback from the side lot line (usually 4 feet). The garage cannot be located in the required side yard of the main building unless it is attached and part of the main building.

What if my lot is irregularly shaped?

For irregular lots, the side yard is measured perpendicular to the side lot line at the building’s widest point. If the lot is not rectangular, you may need to consult a professional to determine the exact setback. The calculator gives a rough estimate for regular lots.

How do I find my zoning district?

You can find your zoning district on the NYC Zoning and Land Use Map (ZoLa) on the NYC Department of City Planning website. Enter your property address to see the zoning designation.

Can I get a variance to reduce the side yard?

Yes, you can apply for a variance from the Board of Standards and Appeals (BSA) if you can demonstrate that the strict application of the zoning rules causes an unnecessary hardship. This is a lengthy and costly process, and approval is not guaranteed.

Related

Formula used
in lot_width | Lot Width | ft | 40 | 0
in bldg_width | Building Width | ft | 30 | 0
sel district | Zoning District | R1=1, R2=1, R3=1, R4=1, R5=1 | 1
out side_yard | Minimum Side Yard | ft | max(0, (lot_width - bldg_width) / 2) | 2
out total_yards | Total Side Yards | ft | lot_width - bldg_width | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.