Updated November 2026
To fix solar panels to a roof, you locate the structural rafters, attach a rail-based mounting system with flashed lag bolts, seal every penetration, and then secure the panels to the rails. Done correctly, the array stays put through wind, snow and years of thermal expansion without leaking or loosening. This guide walks through the process as most homeowners would handle it, with the safety points that matter most.
A note before you start: racking loads, wind uplift and roof condition all affect the design. Anything beyond a simple re-fastening job should be reviewed by a licensed installer or structural engineer, and your local building department may require a permit.
Shopping for one? See our guide: Top 3 Solar Panels as Roof Shingles Compared for Homeowners.
Step 1: Confirm the Roof Can Carry the Array
Most residential roofs can support a typical rooftop solar array, but you should confirm that before drilling anything. A panel usually weighs roughly 40 to 50 pounds, and the racking adds more. Check the roof’s age, shingle condition and any soft spots. If the roof needs replacement within the next few years, handle that first, because pulling panels later is far more work. For a deeper look at this, see Roof Reinforcement for Solar Panels: How to Assess and Strengthen Your Roof.
Step 2: Find and Mark the Rafters
Every mount must anchor into structural framing, not just sheathing. Locate rafters from the attic or with a stud finder rated for wood framing, then mark their centers with chalk. Standard rafter spacing in many homes is 16 or 24 inches on center, so your mount positions will follow that grid. Check the layout against the rail spacing your mounting system requires.
Step 3: Install Flashed Mounts and Seal Every Hole
The most common leak comes from a poorly sealed penetration, so take this step slowly. Here is the sequence most installers follow:
- Slide a flashing or mount base under the upper shingles so water runs over it.
- Drill a pilot hole into the center of the rafter, sized for the lag bolt specified by the mounting system manufacturer.
- Apply a bead of roofing sealant around the pilot hole and under the flashing base.
- Drive the lag bolt until it is snug. Do not overtighten, since that can crush the wood or crack the flashing.
- Cover the bolt head with the mount’s sealing washer or cap.
Step 4: Attach Rails and Secure the Panels
Once the mounts are in place, bolt the rails across them and check that they are level and parallel. Leave the expansion gaps the racking manufacturer specifies. Then lift each panel onto the rails and fasten it with the clamps supplied. Clamps should grip the frame edge, not the glass, and torque values should match the manufacturer’s sheet. Verify the bolts with a torque wrench if the instructions list a value.
Quick checklist
- Permit obtained where required
- Rafter locations marked and verified
- Every penetration flashed and sealed
- Rails level, square and correctly spaced
- Clamps torqued to the manufacturer’s value
- Wiring routed and protected from UV and abrasion
Common Mistakes to Avoid
- Anchoring only into roof sheathing, which cannot hold wind uplift.
- Skipping sealant or placing flashing above the shingles instead of under them.
- Overtightening lag bolts and cracking the flashing or rafter.
- Ignoring the manufacturer’s expansion gaps, which can stress the frame in hot weather.
- Working on wet or icy roofs, which is a serious fall risk.
Recommended Gear
- Stud finder for wood framing: helps locate rafters accurately before you drill. View on Amazon
- Roof-rated sealant: a UV-resistant, polyurethane or butyl-based sealant suited to exterior flashing. View on Amazon
- Torque wrench: confirms clamp and bolt tightness against the manufacturer’s specification. View on Amazon
FAQ
Can I screw solar panel mounts into the roof shingles?
No. Mounts must be fastened into rafters through the decking, with flashing that sits beneath the shingles. Fastening only into shingles or sheathing will not handle wind loads and will leak.
Do I need a permit to fix panels to my roof?
Many jurisdictions require a permit and an inspection for rooftop solar. Check with your local building department before starting, since rules vary by location.
How do I know if my roof is strong enough?
Have a structural engineer or licensed installer assess the framing, age and condition of the roof. They can check rafter size, spacing and any signs of sagging or rot.
Conclusion
Fixing solar panels to a roof comes down to three things: anchoring into rafters, sealing every penetration, and fastening the rails and panels to the manufacturer’s specifications. Take your time with the flashing, since that is where most problems start. When the load, permit or roof condition is uncertain, bring in a licensed professional before you proceed.
