How to Install Recessed Lighting: Wiring, Codes, and Step-by-Step Setup

Recessed lighting, also called can lighting or downlighting, delivers light from a fixture that nearly disappears into the ceiling. Only a thin ring of trim shows, which is why the style suits modern interiors built on clean planes and straight lines. With a nearby power source, a competent DIYer can install a fixture in 30 to 45 minutes, and materials run about $15 to $30 per light.

Two decisions shape the whole job: the power source and the fixture type. Bringing power to the ceiling can mean wiring a new circuit, tapping an existing one, or hiring an electrician, and each route changes the cost and the permitting picture. The recessed lighting primer on this site covers fixture families and trim styles, and the sections below walk through layout, wiring, controls, and code requirements in the order you will meet them.

Planning the Layout: Spacing, Beam Angles, and Light Count

Layout comes before tools. The standard spacing rule starts from ceiling height: divide the ceiling height by two to find the distance between fixtures, then halve that number for the distance from each fixture to the wall. An 8-foot ceiling puts cans about 8 feet apart and 4 feet from the walls. Beam angle changes the math, because a narrow 25-degree beam pools light while a wide 60-degree beam spreads it, so read the fixture’s beam spec before finalizing positions.

Fixture selection deserves the same attention as placement. A lighting fixture selection and installation reference helps match housing type, trim, and lamp technology to the room, and it flags the code requirements that apply to ceiling-mounted fixtures.

Housing Types and What They Mean for Your Ceiling

Housings fall into four practical categories, and the choice depends on whether the ceiling is open or finished and whether insulation will touch the can.

Housing typeBest forKey requirement
New constructionOpen ceilings during framingNails to joists, installed before drywall
Remodel, IC-ratedFinished ceilings with insulationInsulation-contact approved, clips to drywall
Remodel, non-ICFinished ceilings, no nearby insulation3-inch clearance from insulation
Shallow or slopedLow ceilings, sloped roof linesFits tight plenums, fewer trim options

Trim Styles and Beam Spread

Trim choices change both look and function. Baffled trims swallow glare for living rooms, eyeball trims aim light at a specific spot, and reflector trims maximize output in utility spaces.

Counting Fixtures for a Room

A 12 by 14 foot living room works well with six to eight fixtures laid out on the spacing grid; the exact count depends on beam angle and how much light comes from floor lamps and sconces. Sketch the plan on graph paper first, then transfer the marks to the ceiling.

Power Sources and Circuit Options

Recessed lights draw power either from an existing circuit or from a dedicated circuit installed for the job. Tapping an existing circuit is faster and cheaper, but you must respect the circuit’s load. A standard 15-amp circuit carries 1,440 watts of continuous load, and a row of six LED cans at 12 watts each adds only 72 watts, so lighting rarely stresses a general-purpose circuit. Kitchen counter circuits and bathroom circuits are often required to serve only their designated outlets, which rules them out as power sources in many jurisdictions.

For a worked example in a different room, the recessed lighting installation in a kitchen walkthrough from This Old House shows the same wiring sequence applied to a row of cans over a counter, including the decisions about which circuit to tap.

Wiring a New Circuit vs. Tapping an Existing One

A new circuit means a new breaker, a new cable run from the panel, and usually a permit and inspection, which adds cost but gives the lights a dedicated home. Tapping an existing circuit avoids the panel work but demands a careful load calculation and a code-compliant junction box.

Wiring Step by Step

  1. Turn off the breaker at the service panel and verify the circuit is dead with a non-contact voltage tester.
  2. Run cable from the power source to the first fixture location, leaving about 12 inches of slack at the box.
  3. Secure the cable inside each housing’s junction box with the supplied clamp.
  4. Connect black to black, white to white, and the ground wires, using wire nuts rated for the wire count.
  5. Daisy-chain to the next fixture by repeating the connections at each housing.
  6. Restore power and test each light before installing the trim.

Every connection lives inside the fixture’s own junction box, which must remain accessible after the ceiling is closed, so plan the daisy-chain route to keep each box reachable through the trim opening.

Controls and Automation: Dimmers and Smart Switches

Dimmers do more than set the mood. Running LED lamps at reduced output lowers energy use and heat, and dimming extends driver life. Compatibility matters more than brand: TRIAC dimmers work with most residential LED retrofits, while trailing-edge and 0-10V dimmers serve specific driver types, so match the dimmer to the lamp before buying.

For homeowners who want schedules and scenes, residential smart lighting design and installation covers the full range of controls, from smart switches that replace the wall dimmer to wireless modules that tuck into the junction box.

Dimmer Compatibility at a Glance

Dimmer typeTypical lamp matchNotes
Leading-edge (TRIAC)Most dimmable LED retrofitsMost common, lowest cost
Trailing-edge (ELV)LED drivers, low-voltage fixturesQuieter at low levels
0-10VCommercial drivers, some LED tapeNeeds an extra control wire
Smart (Wi-Fi or zigbee)Dimmable LEDs with app controlAdds schedules and scenes

Zones and Scenes

Group the lights into zones that match how the room is used. A movie zone dims the whole set, a reading zone aims light at the chair, and a cleaning zone runs everything at full brightness. Smart systems store these as scenes and trigger them by switch, app, or motion sensor.

Layering Recessed Light With Ambient, Task, and Accent Lighting

Recessed cans make excellent ambient light, but a room lit only from the ceiling flattens out. The interior lighting design principles for ambient, task, and accent light apply directly: use the cans for the general wash, add task light where work happens, and aim accent light at art and architectural details.

Placement by Light Role

Ambient cans follow the spacing grid for even coverage. Task fixtures sit over counters, desks, and sinks, aimed at the work surface rather than the room. Accent fixtures angle at art and shelves, and a 30-degree aiming angle is a common starting point for wall washing.

Layout Mistakes That Show Up at Night

  • Running a single row down the center of a narrow room, which lights the floor and leaves the walls dark.
  • Placing cans so close to the wall that the trim casts a scalloped pattern of light on the wall.
  • Laying out to the room’s dimensions while ignoring where the furniture will sit.
  • Forgetting that a chair or sofa directly under a can blocks the light it was meant to deliver.

Costs, Budgets, and Common Retrofit Problems

The fixture price is only part of the total. DIY material costs run $15 to $30 per fixture, but adding a new circuit, junction boxes, cable, and a permit pushes the project total higher, and hiring an electrician multiplies it again. The recessed lighting installation cost breakdown from Bob Vila lays out typical fixture, labor, and circuit pricing so the budget reflects the real job.

What Moves the Final Price

  • Fixture type and trim: IC-rated remodel housings cost more than basic non-IC cans.
  • Fixture count: materials and labor scale almost linearly.
  • New circuit versus existing: panel work is the biggest single line item.
  • Local permits and inspections: fees vary widely by jurisdiction.
  • Access: a cathedral ceiling or a finished room above raises labor time.

Heat Problems and Bulb Life

Old halogen retrofit lamps run hot, and a non-IC housing packed with insulation cooks the lamp and the wiring. That heat is the usual reason halogen bulbs keep blowing in recessed lighting, and it is why modern LED retrofit modules run cooler and last far longer. Check the housing’s insulation rating before installing anything, and choose IC-rated housings wherever insulation is present.

Codes, Permits, and Doing the Job Safely

Most jurisdictions require an electrical permit for new circuits and for extending an existing circuit, and many require one even for a simple tap. The permit triggers an inspection, which catches the two mistakes that cause the most trouble: unsecured cable and inaccessible junction boxes. Check local requirements before cutting the first hole.

Clearance and Insulation Rules

Non-IC housings need at least 3 inches of clearance from insulation and combustible material, while IC-rated housings may touch insulation directly. Either way, keep fixtures a safe distance from ceiling joists, and never let trim cover an electrical box that needs access.

The Physical Installation Sequence

  1. Transfer the layout marks to the ceiling and cut the holes with a drywall saw or hole saw at the housing template diameter.
  2. Fish the cable to the first opening, leaving slack for the connections.
  3. Insert the housing and tighten the mounting clips so it sits flush with the drywall.
  4. Make the wiring connections in the housing’s junction box.
  5. Snap in the trim, install the lamp, and test the circuit and dimmer.
  6. Schedule the inspection before closing up any access panels.

Hiring a Pro vs. Doing It Yourself

The project suits a weekend DIYer comfortable with basic wiring, but a house with no accessible attic, a cathedral ceiling, or a full panel pushes the job toward an electrician. Get a fixed quote that includes the permit so the comparison against DIY is honest.

Done well, recessed lighting disappears into the ceiling and shapes the room with light rather than fixtures. The same principles that guide residential builds apply to the single-room project, and the recessed lighting in modern home design coverage on this site shows how fixtures integrate with ceilings, millwork, and control systems in finished projects.