Q:

Can you put an electrical switch inside a walk-in closet according to NEC?

I have a walk-in closet where I would like to put a switched light ceiling-mounted fixture.
According to NEC can I put the switch inside the closet (next to the door), or does the switch need to be on the wall, outside the closet?
I would prefer a citation of the code (if there is one) so I can ensure I follow the rules.

A:

Code doesn’t specify a location for the light switch it can be inside or outside so a code reference is not available.
The only limit is the height at 6’7”
NEC 410 can get you started for luminaries and closets 410.16 in the closet then 410.48 general wiring but no requirement for the location.
More on switches in article 404 And again the height max is the only limit.

