Learn what the NEC requires for junction boxes, from box fill calculations and grounding to outdoor use and fire-rated wall installations. The National Electrical Code (NEC), published as NFPA 70, sets minimum safety standards for electrical junction boxes in residential and. The National Electrical Code (NEC) governs electrical junction box rules. These rules define when you must install a box, how large it must be, how you must install it, and how inspectors evaluate compliance. Thus, with installations. nded on 6th April 2006. This document states that the requirements will be met by adherence to the 'Fundamental Principles' for achieving safety given in the Wiring Regulat non-domestic buildings.