Updated November 2026

The best way to mount solar panels on roof surfaces is to attach the racking directly to the structural rafters, seal every penetration with proper flashing, and leave room for airflow beneath the modules. Done this way, the array carries its own weight and wind loads, and the roof stays watertight for the life of the system. This guide walks through the steps in the order most installers use.

Step 1: Confirm Roof Condition and Structure

Before buying hardware, check that the roof can carry the added load. Most residential arrays add roughly three to four pounds per square foot, but your rafter size, spacing and age matter more than that average. Look for soft spots, sagging ridges and previous leaks. If the shingles are near the end of their life, replacing them before mounting saves you from pulling the array off later. For a deeper look at materials, see Best Roof Material for Solar Panels: What Works and Why (2026).

Shopping for one? See our guide: Top 3 Solar Panels as Roof Shingles Compared for Homeowners.

Step 2: Locate and Mark the Rafters

Attach every mount to a rafter, never to decking alone. Use a stud finder rated for wood or a magnetic rafter finder, then confirm by driving a small pilot bit into the spot. Mark the center line of each rafter with chalk, and check the spacing with a tape measure. Rafters are usually 16 or 24 inches on center, and your racking rail layout must match that spacing.

Step 3: Install Flashed Attachments

Each lag bolt creates a hole, so each one needs flashing. Follow this sequence for every attachment point:

  1. Slide the flashing base under the upper shingles and over the lower ones, so water runs down and off.
  2. Drive a lag bolt through the flashing and into the rafter, using a pilot hole sized to the bolt.
  3. Seal the bolt head and flashing edges with a compatible roof sealant.
  4. Set the mount or standoff on top, then tighten the bolt to the torque the manufacturer specifies.

Stagger the attachments across rows rather than lining them up, so no single line of shingles carries all the stress. You may also like 4 Best DIY Solar Panel Metal Roof Mounts for Standing Seam and Corrugated Roofs.

Step 4: Set the Rails and Level the Array

Attach the rails to the mounts and check them with a long level before final tightening. Rails should be level along the length of the array and parallel to the roof edge. Leave the expansion gaps that the racking manufacturer calls for, since metal expands and contracts with temperature. Then clamp the modules to the rails with the supplied end and mid clamps, tightening to spec.

Step 5: Plan Airflow and Wiring Paths

Leave a gap of several inches between the module and the roof surface. Panels run cooler with air moving underneath, which helps output on hot days. Route module leads through the rails with UV-rated clips, keep cable runs off the roof surface where possible, and avoid sharp bends. Final electrical connections and inverter work should be done by a licensed electrician, and your local permitting office may require an inspection before the system is energized.

Common Mistakes

  • Mounting into the decking only, which pulls loose under wind load.
  • Skipping flashing or using silicone alone as a seal.
  • Over-tightening lag bolts, which can crack rafters or crush the flashing.
  • Ignoring the roof’s remaining life and mounting onto aging shingles.
  • Forgetting to plan for roof access, since you will need to reach the array for repairs. See Removal of Solar Panels for Roof Repair: Top 3 Tools and Kits Compared (2026).
  • Magnetic rafter finder: locates framing quickly so you can plan attachment points before drilling. View on Amazon
  • Roof sealant for flashing: a polyurethane or butyl-based sealant rated for exterior roofing use seals bolt heads and flashing edges. View on Amazon
  • Torque wrench with socket set: helps you tighten lag bolts and clamps to the manufacturer’s specified torque without guessing. View on Amazon

FAQ

Can I mount solar panels without drilling into the roof?

Ballasted systems sit on the roof weight-held rather than fastened, and they are mainly used on flat or low-slope roofs. They still need structural review, and most pitched roofs require penetrating attachments for wind safety.

How far apart should roof attachments be?

Spacing depends on the racking system, wind zone and module size, so follow the manufacturer’s span table and your local engineering requirements. Attachments are typically placed on each rafter at the spacing the racking specifies.

Do I need a permit to mount solar panels on my roof?

Most jurisdictions require a building or electrical permit for rooftop solar. Check with your local building department for current rules and inspection requirements.

Conclusion

The best way to mount solar panels on roof structures is to anchor into rafters, flash every penetration, and plan for airflow and wiring from the start. Work through the steps in order, and verify the roof’s condition and local code before you begin. When in doubt, consult a licensed solar installer or structural engineer.

Claire Whitaker

About Claire Whitaker

Claire Whitaker is part of our editorial team and reviews and edits our home solar guides, checking product details against manufacturer specifications and owner feedback.