A Full Guide on the NEC Electrical Codes for Junction Boxes
Section 110.26 specifies the requirements for the clearance area around electrical equipment, including junction boxes. Section 110.26 (A) requires a clear space of at least 30 inches wide by 36 inches