The rule
The opening and passageway have to be larger than the largest component of the appliance, and no smaller than 22 inches by 30 inches. If you can't get the old heater out through it, you can't change it out.
Distance from the access to the appliance is limited. Where the passageway is lower than 6 feet, the limit is 20 feet measured along the centerline. Where it's 6 feet or higher, the limit is 50 feet.
The passageway has to be unobstructed and have solid flooring at least 24 inches wide from the opening to the appliance. In front of the service side there's a level working platform at least 30 inches by 30 inches.
A permanent 120 V receptacle and a light go near the appliance, and the switch for the light is at the entrance to the passageway.
On the job
- Measure the hatch against the new heater before you order it, not after. The opening has to be bigger than the largest piece of the appliance, so a tank that won't pass through the hatch is a problem before the job starts.
- Flooring is not just a couple of boards. It has to be solid, at least 24 inches wide, all the way to the platform.
- A heater in an attic also needs the drain pan under Section 507.5. Check the pan, its drain and the T&P discharge when you check the access.
The inspector and your city's adopted edition have the final word.