Closet lighting code comes down to two questions: which fixture types are allowed, and how far each must sit from your stored clothes and shelves. Under the National Electrical Code (NEC) 410.16, a surface-mounted LED or incandescent fixture needs 12 inches of clearance from the storage space, and a recessed fixture needs 6 inches. Bare bulbs and pendants are not allowed. In San Diego, the California Electrical Code, which is built on the NEC, is the rule that applies.
This guide walks through the rule as written, shows how to measure the storage space, and covers the California energy requirements that affect walk-in closets. It also explains how to plan lighting before a custom closet goes in, so the fixtures and the shelving don’t conflict.
TL;DR
- Only enclosed or closet-rated fixtures are allowed: fully enclosed LED or incandescent, fluorescent, or surface-mounted LED or fluorescent fixtures identified for use inside the storage space.
- Surface-mounted enclosed LED or incandescent fixtures need 12 inches from the nearest point of the storage space. Recessed fixtures and fluorescent fixtures need 6 inches.
- Pendants, bare bulbs, and keyless lampholders are not permitted in a clothes closet.
- Clearance is measured from the defined storage space, which depends on shelf depth and rod height, not from the closet wall.
- San Diego follows the 2025 California Electrical Code. Walk-in closets also fall under California’s energy rules for automatic-off controls.
Table of Contents
- Which fixtures the code allows in a clothes closet
- Clearance rules: 6 inches or 12 inches
- How to measure the storage space
- Pendants, bare bulbs, keyless sockets and track lights
- What California adds: edition and energy rules
- Planning lighting with a custom closet
- Perspective: why we design lighting into the closet
- Plan your closet with us
- FAQ
- Sources
Which fixtures the code allows in a clothes closet
The NEC limits closet luminaires because closets hold fabric, cardboard, and paper, and a hot lamp touching them is a fire risk. According to the text of NEC 410.16, only three families of fixtures are permitted:
- Surface-mounted or recessed incandescent or LED luminaires with a completely enclosed light source.
- Surface-mounted or recessed fluorescent luminaires.
- Surface-mounted fluorescent or LED luminaires identified as suitable for installation within the clothes closet storage space.
The same section excludes incandescent luminaires with open or partially enclosed lamps, and pendant luminaires or lamp holders. That answers a question many homeowners ask: a ceramic keyless socket with a bare bulb, a pull-chain fixture, a hanging pendant, or a decorative open-bulb sconce does not belong in a closet. Track lighting generally fails for the same reason, because its heads typically use open lamps and hang in the space. If you want it in a closet, the specific product must be one the listing says is suitable.
What “completely enclosed” means in practice
An enclosed fixture has a cover, such as a glass or plastic diffuser, around the lamp so that the bulb can’t touch or ignite stored items. A flush drum fixture with a closed lens is the classic example. A bare LED bulb in a socket doesn’t count as enclosed, even though LEDs run cooler than incandescent bulbs.
That is worth knowing, because “LED” does not equal “approved.” An electrical contractor’s summary of 410.16 points out that a low-heat LED is not automatically acceptable inside the storage space. Only surface-mounted fluorescent or LED fixtures identified for that use may go there.
Fixtures labeled for the storage space
The “identified for use” language is about product listing. UL, for example, certifies luminaires for use in a clothes closet storage space under categories such as surface-mounted LED luminaires and low-voltage lighting systems, and the installation instructions state that the fixture is suitable for a closet storage area, according to an IAEI explanation of the listings. This is why slim LED bars and shallow surface panels sold for closets can mount inside the space while a normal drum light cannot. Look for closet wording on the box or the installation sheet.
Clearance rules: 6 inches or 12 inches
The clearance depends on the fixture type and where it is mounted. These are the minimum distances between the luminaire and the nearest point of the clothes closet storage space under the 2023 NEC text:
| Fixture type | Where it is installed | Minimum clearance |
|---|---|---|
| Surface-mounted incandescent or LED, completely enclosed | Wall above the door or on the ceiling | 12 in. (300 mm) |
| Surface-mounted fluorescent | Wall above the door or on the ceiling | 6 in. (150 mm) |
| Recessed incandescent or LED, completely enclosed | In the wall or ceiling | 6 in. (150 mm) |
| Recessed fluorescent | In the wall or ceiling | 6 in. (150 mm) |
| Surface-mounted fluorescent or LED identified for the purpose | Inside the storage space | Permitted where identified for this use |
California inspectors use the same numbers. A City of Milpitas residential handout on lighting, switches and receptacles repeats the 12-inch and 6-inch clearances under the California Electrical Code.
A common failure: the drum light and the deep shelf
The most frequent correction is a surface drum fixture with an LED or incandescent source mounted closer than 12 inches to the storage space. It is especially common where shelves are deep. According to the CK Electric 410.16 guide, problems often arise when someone swaps in a different fixture or moves a shelf after the electrical rough-in, which changes the clearance. The fixture was fine on day one, and the closet layout later made it noncompliant.
How to measure the storage space
The clearances run from the edge of the “storage space,” and the NEC defines that edge precisely. Per the NEC text, the clothes closet storage space is the volume bounded by the side and back walls, running from the floor up to 6 ft (1.8 m) or the highest clothes-hanging rod, whichever is higher. Its boundary sits parallel to the walls at 24 inches from the sides and back. It then continues up to the ceiling at a horizontal distance of 12 inches or the width of the shelf, whichever is greater.
If the closet allows access to both sides of a hanging rod, the storage space also includes the volume below the highest rod, extending 12 inches on either side of the rod along its full length.
In plain terms:
- A shelf that is 16 inches deep pushes the storage-space boundary 16 inches out from the wall at ceiling level, not 12.
- A rod at 80 inches in a double-hang layout raises the lower limit of the “above the rod” zone.
- A second, deeper shelf or a rod pulled forward changes the boundary after the light was placed.
That’s why lighting and layout need to be settled together. If you’re deciding where the rods go, our guide to closet rod height covers the standard single and double-hang positions that feed into this measurement.
Worked example: a 6-foot reach-in
Say you have a reach-in closet with a 14-inch shelf above a single rod and a flat LED drum fixture on the ceiling. The storage space extends at least 14 inches from the back wall at the ceiling level (the shelf width beats the 12-inch minimum). Because the fixture is a surface-mounted enclosed LED, you need 12 inches between the fixture and that boundary. A fixture mounted on the ceiling just outside the door, or on the wall above the door, usually clears this easily. A recessed enclosed LED could sit 6 inches from the boundary, which is useful in tight closets.
If the rod is mounted deep and the shelf is 16 inches, recheck the numbers. The check takes a minute with a tape measure and saves a failed inspection.
Pendants, bare bulbs, keyless sockets and track lights
The short version: none of them are allowed in the storage space, and the pendant and open-lamp types are excluded from the closet altogether. The NEC’s list of permitted fixtures leaves out pendants, lamp holders, and open or partially enclosed incandescent lamps. If you have a bedroom with a bare-bulb socket in an older closet, the safest fix is to replace it with a fully enclosed LED fixture, and a licensed electrician can confirm the placement.
The tidy alternatives that satisfy code include:
- A flat, fully enclosed LED ceiling fixture placed outside the clearance zone.
- A recessed enclosed LED downlight, with 6 inches to the storage-space boundary.
- A surface-mounted LED bar listed for closet storage-space use, mounted on a shelf underside or vertical upright where the listing allows.
What California adds: edition and energy rules
For San Diego homeowners, the NEC is the base, but California adopts and amends its own version. The City of San Diego adopts the 2025 California Electrical Code by reference, as stated in San Diego Municipal Code Chapter 14, Article 6. The state document is Part 3 of Title 24 and is based on the 2023 NEC, which is the version the clearances above come from. The 2025 edition took effect statewide on January 1, 2026, according to the same City of San Diego document.
One edition note: the 2023 NEC moved the closet storage-space definition into 410.16(A), so the clearances now sit in 410.16(D), and the permission for identified fixtures inside the storage space became an exception, as the CK Electric breakdown explains. If you read older articles quoting 410.16© or 410.8, the section numbers have shifted, but the 6-inch and 12-inch figures are the ones in the current text above.

Walk-in closets and automatic-off controls
California’s energy code adds a separate layer. The 2025 residential lighting compliance form states that in bathrooms, garages, laundry rooms, utility rooms, and walk-in closets, the installed luminaire must be controlled by an occupancy or vacancy sensor with automatic-off functionality, per the California Energy Commission’s CF2R-LTG-01-E. The same form requires installed luminaires and light sources to comply with Reference Joint Appendix JA8 and be certified and marked as JA8 requires, with exceptions for things like lighting integral to exhaust fans, range hoods, and bath vanity mirrors.
Practical takeaways for a walk-in:
- Plan a vacancy or occupancy sensor rather than a plain toggle switch.
- Choose fixtures marked as compliant with JA8.
- Treat the electrical clearance (NEC) and the energy controls (Title 24 Part 6) as two checks you need to pass.
Small reach-in closets are treated differently from walk-ins in the energy rules, so confirm with your electrician or the city which category yours falls in.
Planning lighting with a custom closet
Lighting is easiest to get right when it is designed with the closet, not added after. The clearances depend on shelf depth and rod height, so the layout decides where the fixture can go. A few habits make the job smoother:
- Fix the shelf and rod layout first. Know the shelf depth and the highest rod before the electrician sets the box location.
- Place fixtures outside the boundary. A ceiling fixture near the closet opening or in a walk-in’s center aisle is often the simplest solution.
- Use closet-listed strips for task light. Shelf-edge or upright LED bars that are identified for use in the storage space light the hanging area without breaking the clearance rule.
- Get the sensor right in a walk-in. Specify vacancy sensing so you meet the California energy rules from the start.
- Re-check after any change. If a shelf is deepened or a rod is lowered, re-measure.
If you’re converting a spare room, the convert a bedroom to a closet guide covers the planning side, including how it affects resale.
Hiring someone to do the electrical work
The fixtures and wiring should be installed by a licensed electrician, and larger remodels typically need a permit and inspection through your local building department. If you’d like to see what electrical contractors near you would charge for a closet circuit or fixture swap, you can compare bids from licensed contractors before you commit.
Perspective: why we design lighting into the closet
We see the same pattern in San Diego homes: the light fixture was chosen first, the shelves were added later, and the two don’t agree. Because every Classy Closets project is designed in 3D to the exact dimensions of the space, we can show shelf depth, rod height and the ceiling in one model before anything is built.
That model is useful for lighting. When you can see where the shelves end and where the highest rod sits, it is simple to mark the zone a fixture must stay clear of. Our own installation crew builds what was drawn, so the layout your electrician planned around is the layout that goes in. No one has to improvise on install day.
Our quotes are itemized, so you can see what the closet system costs separately from other work. We offer free in-home consultations, and we back our workmanship with a 10-year warranty. Bring your lighting plans to the consultation, and we will design the shelving around them.
Gary Pavitt
Plan your closet with us
If you’re building or upgrading a closet, we design it in 3D, manufacture it locally in San Diego, and install it with our own crew. Our published starting prices are from $700 for a reach-in system, from $3,000 for a custom closet and from $3,000 for walk-in closet design. Each project is quoted in an itemized estimate after a free in-home consultation.

See the custom closet cost page for current pricing, explore walk-in closet design, or contact our team to book a consultation.
FAQ
Can I put an LED strip light inside my closet?
Yes, if the strip fixture is a surface-mounted LED luminaire identified for installation within the clothes closet storage space. The listing or installation sheet should say it is suitable for that use. A generic strip without that identification should stay outside the storage space.
How far does a closet light need to be from clothes?
The distance is measured from the nearest point of the clothes closet storage space. For surface-mounted enclosed LED or incandescent fixtures it is 12 inches. For recessed fixtures and fluorescent fixtures it is 6 inches, under the 2023 NEC that California’s code is based on.
Is a pull-chain or bare-bulb light legal in a closet?
No. The NEC does not permit open or partially enclosed incandescent lamps, or pendant luminaires and lamp holders, in a clothes closet. Replace them with a fully enclosed fixture placed at the right clearance.
Which code applies in San Diego?
San Diego adopts the 2025 California Electrical Code by reference, which is based on the 2023 NEC. Walk-in closets also have to meet California’s energy rules, including occupancy or vacancy sensor controls. Your electrician or the city building department can confirm the details for your project.
Sources
- NEC 410.16 text, luminaires in clothes closets
- City of Milpitas, lighting, switches and receptacles handout
- CK Electric, NEC 410.16 light fixtures in clothes closets
- IAEI Magazine, clothes closet storage space luminaires
- San Diego Municipal Code, Chapter 14, Article 6, Electrical Regulations
- City of San Diego, 2025 California Building Standards Code adoption
- California Energy Commission, 2025 CF2R-LTG-01-E lighting form





