The right box should be safe, serviceable, and easier to approve on site. This guide breaks down the actual rules inspectors check — with calculations and. NEC junction box code covers box fill, access, covers, grounding, support, and location suitability for safer, inspection-ready box selection. What NEC Rules Apply to Junction Boxes? NEC 314. According to the NEC (National Electrical Code), all wire splices and electrical connections must be enclosed within an approved electrical junction box to ensure safety, accessibility, and code compliance. A junction box protects wire connections from physical damage, reduces shock and fire risks. NEC requires junction boxes to meet size (box fill), material, accessibility, and grounding rules (per Articles 314 & 300). Non‑compliance risks safety or code violations.