I put solar lights on my deck three times before I got it right. The first two attempts looked great for about a month. Then the adhesive gave out, the screws stripped, and half the lights ended up in the yard after a windstorm. Here’s what I figured out the hard way.
Decks are weird. They’re not like garden beds where you just push a stake into the ground. You’re mounting lights to a vertical surface, or underneath a railing, or on the edge of a stair tread. The light has to stay put, face the right direction, and somehow get enough sun to charge — all while being attached to a surface that expands, contracts, and gets rained on.
Most solar light instructions assume you’re mounting to a flat wall. Decks aren’t flat walls. So let me walk through what I learned, because the generic advice you’ll find online doesn’t cover the stuff that actually goes wrong.
Deck Stairs: The Hardest Place to Light
Stairs are where people get hurt. A missed step at night is a twisted ankle at best, a broken hip at worst. So stairs are usually the first place people want to add deck lighting, and they’re also the hardest place to get it right.
The basic principle: you want light on the tread (the part you step on), not in your eyes. That means mounting the light on the riser (the vertical part between steps) and aiming it down and forward, or mounting it on the stringer (the side support) and aiming it across.
Solar stair lights designed for decks usually come as small rectangular or round fixtures with a built-in solar panel on the front face. You screw or adhesive-mount them to the riser, and they cast a downward glow onto the tread below.
Here’s what goes wrong:
The panel faces the wrong way. If you mount the light on the riser facing outward — toward the yard — the solar panel gets sun during the day. Good. But the light shines outward into the yard, not down onto the step where you need it. If you mount it facing down to light the tread, the solar panel faces the ground and gets zero sun. Bad.
The fix is to buy stair lights where the solar panel and the LED are on different faces of the fixture. Panel faces outward (toward the sun), LED faces down (toward the tread). Not all solar stair lights are designed this way. Check before you buy.
Screws strip out of soft wood. Pressure-treated pine and cedar — the two most common deck materials — are soft. A small screw into a thin riser board doesn’t hold well, especially after a season of temperature cycling. The screw loosens, the light sags, and eventually it falls off.
Use longer screws than the ones that come in the package. The included screws are usually 3/4 inch, which barely bites into a 1-inch riser. Go with 1.5-inch exterior-grade screws and drill a pilot hole first. For composite decking, use the specific screws the composite manufacturer recommends — regular screws can split composite material.
Adhesive mounts fail in summer heat. A lot of solar stair lights come with adhesive backing as an alternative to screws. This works fine in spring and fall. In July, when the deck surface hits 130+ degrees in direct sun, the adhesive softens and the light slides down the riser or falls off entirely.
If you’re going to use adhesive, use it in addition to screws, not instead of them. Or skip adhesive entirely and use small exterior-grade screws with pilot holes. It takes five more minutes per light and they’ll actually stay put.
Post Caps: The Easy Win
If there’s one place where solar deck lights work beautifully, it’s post caps. The top of a 4×4 or 6×6 deck post is a flat, sun-exposed surface that’s perfect for a solar light. The panel faces straight up into full sun. The light shines downward. No mounting angle issues, no orientation problems.
Solar post cap lights are designed to slip over the top of a standard post. You secure them with screws or, on some models, they just friction-fit. The light casts a soft glow downward around the post base and illuminates the railing area.
The main thing to watch for is post size. Most solar post caps are made for 4×4 or 6×6 posts — but a nominal 4×4 post is actually 3.5 x 3.5 inches, and some caps are sized for the nominal measurement while others account for the actual dimension. Measure your posts before ordering. A cap that’s too loose will wobble in the wind. One that’s too small won’t fit at all.
Post cap lights are also the most visible deck lighting element. They’re up high, visible from inside the house and from the yard. If you’re going to spend a little extra on quality anywhere, this is the place. Cheap post caps with thin plastic lenses will yellow and crack within a season. Look for glass lenses or UV-resistant polycarbonate.
Under-Rail Lighting: Tricky but Worth It
Mounting solar lights under the deck railing — so the light shines down onto the deck floor — is a clean, modern look that a lot of people want. It’s also the most finicky to install.
The challenge is the solar panel. If the light is mounted under the railing, it’s in shadow. The panel gets no direct sun. The light doesn’t charge. The light doesn’t work.
There are two ways around this:
Buy lights with a separate solar panel. Some under-rail solar lights come with a small panel on a 6-10 foot cable. You mount the light under the railing where you want the glow, then run the cable to the top of the railing or a nearby post where the panel can sit in full sun. This works well but means you have a visible cable to manage. Use cable clips or raceway to keep it tidy.
Use rail-mounted lights with downward-facing LEDs. These mount on top of the railing itself — where the panel gets sun — but the LED is on the underside, shining down onto the deck. The fixture is visible from above, but the light effect is on the deck surface below. This is simpler to install but doesn’t work if your railing is solid (no gap between top rail and deck floor for light to pass through).
I tried the adhesive-only under-rail lights first. They lasted about six weeks before the summer heat softened the adhesive and they started dropping. Switched to screw-mounted lights with separate panels and they’ve been solid for two years.
The Sun Mapping Step Nobody Does
Before you buy any solar deck lights, do this: spend one sunny day walking around your deck every two hours and noting which areas are in full sun, partial shade, or full shade at each time.
Most decks have mixed sun exposure. The south-facing railing might get sun all day. The north-facing side might be in shadow by noon. The area under a pergola or awning gets zero direct sun. The stair area might be shaded by the house until 2 PM.
This matters because solar lights need 6+ hours of direct sun to charge properly. If you mount a light in a spot that only gets 3 hours of sun, it’ll underperform no matter how good the light is. And deck layouts often create shade patterns that aren’t obvious until you actually pay attention to them.
I mapped my deck on a Saturday in June. Turns out the west side of my deck — where I’d originally put four stair lights — only gets direct sun from about 3 PM to 7 PM. Four hours. Not enough. Those lights were always dim. I moved them to the south-facing stair stringer, which gets sun from 10 AM to 6 PM, and they’ve been bright ever since.
Do this mapping in the season you plan to use the deck most. Sun patterns change dramatically between summer and fall. A spot that’s sunny in June might be shaded by a tree that’s fully leafed out by August.
Composite Decking: A Different Animal
If your deck is composite — Trex, TimberTech, Fiberon, or similar — the installation rules change.
Composite material is denser than wood. Screws don’t bite the same way. You absolutely need pilot holes, and they need to be the right size — too small and the screw binds and strips, too large and it doesn’t hold. Check the composite manufacturer’s website for recommended screw sizes and pilot hole diameters.
Some composites have a shell layer that can crack if you over-tighten screws. Hand-tighten, don’t power-drive. If you’re using a drill, use the clutch setting so it doesn’t over-torque.
Adhesive works better on composite than on wood because the surface is smoother and doesn’t absorb moisture. But it still fails in extreme heat. I wouldn’t trust adhesive alone on any deck surface, composite included.
One thing composite has going for it: it doesn’t rot. So if a screw hole does strip out, you can drill a slightly larger hole and use a larger screw without worrying that you’re creating a water entry point that’ll rot the wood underneath. With wood, every screw hole is a potential rot site.
The Spacing Question
People always ask how far apart to space deck lights. The honest answer: closer than you think.
For stair lights, one per step is the minimum. Two per step if the stairs are wider than 4 feet. The light from a single solar stair fixture only covers about 2-3 feet of tread width. If your stairs are 6 feet wide and you put one light in the center, the edges of each step are in shadow.
For post caps, every post gets one. No spacing decision needed.
For under-rail lights, space them about 3-4 feet apart. Closer than that and the light pools overlap too much, creating bright spots and dark spots. Farther apart and you get visible gaps of darkness between fixtures.
The instinct is to space them wider to save money. Resist that. A few extra lights spaced properly look dramatically better than fewer lights spaced too far apart. The difference between 4-foot spacing and 6-foot spacing is the difference between “this deck looks professionally lit” and “someone stuck some random lights on the railing.”
What I’d Tell Someone Starting From Scratch
If I were building a deck lighting plan from scratch today, here’s what I’d do:
Start with post cap lights on every post. That’s your baseline — it defines the perimeter and gives you ambient light from above. These are the easiest to install and the most reliable because the panels get full sun.
Add stair lights next. Use fixtures with the panel and LED on different faces. Screw-mount them with 1.5-inch exterior screws into pilot holes. One per step minimum, two if the stairs are wide.
Skip under-rail lighting unless you’re willing to run cables for separate panels. It looks great when done right, but it’s the most failure-prone part of a solar deck setup. If you really want the under-rail look, consider low-voltage wired lights for that section and solar for everything else.
Don’t mix color temperatures. If your post caps are warm white (2700K), your stair lights should be warm white too. Mixing warm and cool lights on the same deck looks jarring and amateurish. Check the color temperature spec on every light before you buy, and keep them consistent.
And for the love of everything, do the sun mapping first. I cannot stress this enough. Half the solar deck light failures I’ve seen — mine included — came down to putting a light in a spot where the panel couldn’t get enough sun. No amount of good hardware fixes bad placement.

