ONELINE STUDIO
Home Blog Solar roof attachments and flashing

Solar roof attachments and flashing

The attachment is where a solar array meets the roof — and where two things must both be true: it has to carry the loads into the framing, and it must not leak. Getting attachments and flashing right is one of the most inspected parts of a residential install. Here is how they work.

Anatomy of an attachment

A typical pitched-roof, composition-shingle attachment has three jobs stacked together:

Different roof types use different hardware. Tile and standing-seam metal roofs have their own attachment and flashing methods, so always follow the racking and roofing manufacturer's details for the specific roof.

Waterproofing: the flashing

A roof penetration is a potential leak. Flashing solves it by layering: the flashing plate tucks under the upper shingle course and over the lower one, so gravity carries water on top of the flashing rather than into the hole. Many systems add a sealant or a compression gasket around the fastener as a second line of defense. The order of operations matters — flashing installed on top of shingles instead of under them will leak. Inspectors look closely at this.

Hitting the rafter

The fastener must anchor into structural framing. Roof sheathing (plywood or OSB) alone cannot hold against the uplift wind creates or the gravity and snow loads pressing down. Installers locate rafters and drive the lag to the required embedment depth into solid wood. A missed rafter — a lag biting only sheathing — is a structural failure waiting for a windstorm, and it is a common rejection point.

Spacing carries the load

There is no universal spacing number. Attachment spacing comes from an engineering calculation that balances:

Closer spacing carries more load per area. On a high-wind or heavy-snow roof, or near roof edges and corners where wind pressures spike, attachments come closer together. This is why the layout must follow a stamped structural plan, not a rule of thumb.

FactorEffect on attachments
Higher wind/snow loadCloser spacing, more attachments
Roof edges & cornersHigher uplift, often tighter spacing
Longer racking span ratingFewer attachments allowed
Shallower embedmentLower capacity per attachment

On the permit set

The plan set should show the attachment type, the fastener and its embedment, the flashing method, and the spacing tied to the load calc. The racking manufacturer's installation manual and structural tables usually back it up, and the structural sheet ties everything into the roof framing. Racking style — rail vs rail-less — sits on top of these attachments; see solar racking systems explained.

OneLine Studio generates attachment details and load notes. Describe the roof and it produces the mounting detail and spacing tied to your loads. Open the studio or grade a design first.

Attachments are structural and waterproofing work at once. Confirm methods and capacities against the manufacturer manuals, and have a licensed engineer or PE review the structural design before you build.

FAQ

How are solar panels attached to a roof?

Most pitched-roof systems use attachments that penetrate the roofing and fasten with lag screws into the rafters or trusses. Flashing seals the penetration against water, and the racking mounts to the attachment above the roof surface.

Do solar lag screws have to hit the rafter?

Generally yes. Attachment lags must anchor into structural framing — a rafter or truss — not just the roof sheathing, because sheathing alone cannot carry the uplift and gravity loads. Locating framing accurately is critical.

How far apart are solar roof attachments spaced?

Spacing comes from an engineering calculation of wind and snow loads, the racking's rated span, and the fastener capacity — not a fixed number. Closer spacing carries higher loads. Follow the racking manual and the stamped structural plan.

Related: Equipment & components

Educational reference, reviewed 2026-07. A design aid, not a substitute for a licensed electrician or PE. Confirm the enforced NEC edition and local amendments with your AHJ.

Draft this design in minutes — free

Describe a residential solar + storage system in plain English. OneLine Studio drafts the one-line diagram, sizes the conductors, runs these NEC checks live, and builds a permit-ready package.

Start free →