N.Y. Multiple Dwelling Law § 26
2. Definitions. For the purpose of this section certain words are defined herein but such definitions shall not be held to modify or affect legal interpretations of such terms or words as used in any local law, ordinance, rule or regulation and shall apply in addition to and not in substitution for the provisions of section four of this chapter. a. "Accessory use or accessory structure": a use or structure customarily incident to the principal use or building: b. "Floor area": the sum of the gross horizontal areas of all of the several floors of a dwelling or dwellings and accessory structures on a lot measured from the exterior faces of exterior walls or from the center line of party walls, except:
5. Rear yard. a. Except as otherwise provided in the zoning resolution of the city of New York and except as hereinafter provided for a corner lot, an interior lot within one hundred feet of the point of intersection of the two street lines intersecting at an angle of one hundred thirty-five degrees or less, an interior lot fronting on a block measuring less than two hundred thirty feet in length between two intersecting streets or a through lot, a rear yard shall be required for each dwelling and shall extend the entire width of the lot at every point. For dwellings occupying an entire block or a through lot, no rear yard shall be required. When dwellings do not exceed in area thirty-five per centum of the plot, the department shall permit such location of yards and courts as will promote the best possible plot ventilation. For purposes of this paragraph a, a block shall not be deemed less than an entire block because a portion thereof is conveyed after construction of such multiple dwelling or dwellings to a city for public park purposes. b. Except as otherwise provided in the zoning resolution of the city of New York, the minimum depth of a required rear yard shall be thirty feet for the first one hundred twenty-five feet above curb level, and fifty feet above that point. The depth of a rear yard shall be measured at right angles from the rear lot line to the extreme exterior rear wall of the dwelling. The provisions of this paragraph requiring a rear yard fifty feet in depth for portions of a building in excess of one hundred twenty-five feet above the curb level shall not be applied to a tower. c. Except as otherwise provided in the zoning resolution of the city of New York, on a corner lot no rear yard shall be required, provided, however, every required window shall open into either: