Updated November 2026
Fitting solar panels to a roof means attaching a mounting system to your roof framing, laying out the panels so they catch sun efficiently, sealing every penetration against water, and wiring the array into your home. Done carefully, this is a manageable weekend-to-several-weekend project for a handy homeowner. Done poorly, it can damage your roof, void your shingle warranty and create a fire or leak hazard. This guide walks through the process in the order you should actually do it.
Roof work carries real fall risk and electrical risk. Where you are unsure about structural loads, roof pitch, or the wiring connection to your main panel, consult a licensed roofer, structural engineer or electrician before you begin.
Shopping for one? See our guide: Top 3 Solar Panels as Roof Shingles Compared for Homeowners.
Step 1: Confirm Your Roof Can Carry the Load
A typical residential solar panel weighs roughly 40 to 50 pounds, and the full array adds mounts, rails and hardware. Manufacturers usually specify a total system weight per square foot, and the number you need to compare against is your roof’s dead load capacity plus any snow and wind loads for your area. Most standard framed roofs built to modern code have room for a residential array, but older homes, roofs with sagging rafters or roofs already carrying heavy materials may not.
To check, look at the framing from your attic. Measure rafter or truss spacing (commonly 16 or 24 inches on center), note the lumber size and look for cracks, sagging ridges or water staining. If you are unsure, have a structural engineer review the layout.
Check the roof covering
Your roof covering determines how the mounts attach. Asphalt shingles are the most common and usually use lag bolts or flashed standoffs driven into rafters. Standing seam metal roofs typically use clamps that grip the seam without penetrating the panel. Tile roofs need hook-style mounts that slide under the tiles. Flat roofs use ballasted racks or penetrating mounts. Each system has its own manufacturer instructions, and following them is what keeps your warranty intact.
Step 2: Plan the Array Layout
Once you know your roof can handle the weight, plan where the panels go. Orientation matters most. In the Northern Hemisphere, south-facing roof planes generally produce the most energy, followed by west and east. North-facing planes rarely make economic sense. Pitch matters too, and you can read more about tilt in our roof angle comparison; a roof pitch between about 15 and 40 degrees works well for most installations without adding racking.
Stay clear of shading from chimneys, vents, dormers and nearby trees. Even a small shadow across one cell string can drop output for the whole string, so leave setbacks from ridges, valleys and roof edges. Fire code in many jurisdictions requires pathways of around three feet along ridges and edges so firefighters can access the roof. Check your local requirements before you finalize the layout.
Sketch the roof to scale on graph paper or with a free design tool. Mark each rafter position, each planned panel, and each mount location. Keep the mounts aligned with rafters wherever possible.
Step 3: Gather Tools and Materials
Most residential installs use the following:
- Mounting rails, standoffs or clamps matched to your panel model and roof type
- Flashed roof attachments with rubber or butyl seals
- Stainless steel lag bolts or structural screws, sized to your rafters
- Impact driver with the correct socket, torque wrench or torque-indicating driver
- Chalk line, tape measure, level and stud finder
- Roofing sealant rated for exterior use
- Fall protection: harness, anchor, lifeline and roof brackets
- Wire management clips, conduit and listed PV wire
- Grounding lugs and copper grounding conductor
Step 4: Mark and Locate Rafters
Snap chalk lines on the roof at each row of mounts, then locate the rafters beneath. A stud finder works on shingles, though a small pilot hole in the attic can confirm position. Mounts should land within the rafter, not between them. Mark the center of each rafter and measure the offset from your chalk line so the rails will sit square.
Step 5: Install Flashed Attachments
This is the step where most leaks begin, so take it slowly.
- Remove shingles around each mount location only as needed. Do not tear up a large section at once.
- Drive the pilot hole into the rafter center. Use a bit slightly smaller than the lag bolt shank.
- Set the flashing so it slides under the upper shingles and over the lower shingles, the way roofers lay a shingle.
- Apply sealant around the penetration and bolt the standoff down. Do not overtighten, since a crushed gasket will leak.
- Torque the lag bolts to the manufacturer’s specification.
- Replace the shingles and seal their edges so water sheds over the flashing.
Check for leaks after the first rain
Inspect the attic beneath each mount after your first significant rain. A dry attic after the first storm is the best sign the flashing is working.
Step 6: Mount the Rails and Panels
Attach the rails to the standoffs, using a level to confirm they are flat and parallel. Leave the expansion gaps the manufacturer specifies between rail sections. Then lift each panel onto the rails with at least two people and clamp it at the mid clamps and end clamps. Panel frames should be torqued to spec, and clamps should not contact the glass.
Work panel by panel from one end of the array. Keep the module leads organized and avoid stepping on panels, since microcracks in cells reduce output and can cause hot spots later.
Step 7: Wire the Array
Wiring is where electrical risk lives. Panels produce DC voltage even in moderate light, and open-circuit voltage can exceed 40 volts per panel. Treat every connection as live.
| Wiring stage | What happens | Key requirement |
|---|---|---|
| Panel-to-panel | Modules connect in series strings via MC4 connectors | Keep string voltage within the inverter’s input range |
| String to combiner | Strings run to a DC combiner or inverter | Use UV-resistant, listed PV wire and conduit where required |
| Inverter to home | AC output connects to your main service panel | Usually requires a licensed electrician and utility approval |
| Grounding | Frames and rails bond to a grounding electrode | Follow local electrical code and use listed lugs |
Many jurisdictions require a permit and inspection for any grid-tied system, and utilities require an interconnection agreement before the array can be energized. If you plan to connect to the grid, read our overview of net metering before you wire the inverter, since your utility may have specific equipment or disconnect requirements.
Step 8: Inspect and Commission
Before energizing, check that every mount is torqued, every penetration is sealed, all grounding is bonded and no wires are pinched under clamps. Measure open-circuit voltage on each string with a multimeter and compare it to the panel data sheet adjusted for temperature. Then have the system inspected and commissioned by the appropriate authority.
Common Mistakes
- Mounting between rafters. Mounts need solid wood to hold. Use a stud finder and attic checks.
- Overtightening flashings. Crushing the gasket invites leaks later.
- Ignoring the shingle warranty. Some manufacturers void coverage if you penetrate the roof without an approved method.
- Skipping the fire setback. Blocked access routes can cause permit problems and safety issues.
- Stepping on panels. Hidden microcracks can reduce output for years.
- Working alone at height. Always use fall protection and have someone on the ground.
Tips for a Cleaner Install
- Dry-fit the rails on the ground first to catch measurement errors.
- Photograph every flashing and wiring stage. These photos help with inspections and future repairs.
- Bring the array out of shade as early as possible in the day to avoid working on hot panels.
- Keep a log of torque values and serial numbers for the warranty file.
Recommended gear
- Impact driver with torque control helps you drive lag bolts straight and to spec, which matters for flashed mounts. View on Amazon
- Roof-rated fall protection harness is the single most important safety purchase for this project. View on Amazon
- Butyl roofing sealant gives a durable seal around penetrations and flashing edges. View on Amazon
- Multimeter lets you verify string voltage before energizing the array. View on Amazon
FAQ
Can I fit solar panels to my roof myself?
Many homeowners do the mounting and panel placement themselves, but wiring to the home and grid interconnection usually require a licensed electrician and a permit. Check your local rules first.
Will solar panels void my roof warranty?
They can, if the installation does not follow the roofing manufacturer’s approved methods. Use flashed mounts and read the warranty terms before you start.
How much roof space do I need?
A typical residential panel is around 65 to 70 inches by 39 inches. Plan for the array size you want, then add setbacks for fire access and any shading obstacles.
What roof pitch works best?
Pitches between roughly 15 and 40 degrees work well with standard mounts. Flat roofs use tilted racks instead.
Do I need a permit?
Most jurisdictions require a permit for structural and electrical work on a grid-tied system. Your local building department can confirm requirements.
How do I prevent leaks?
Use manufacturer-approved flashings, seal the penetrations correctly, avoid overtightening and inspect the attic after the first heavy rain.
Can I fit panels to an older roof?
Possibly, but older roofs may need repair or replacement first. Having the roof assessed before mounting is wise, since removing the array later is costly.
Conclusion
Fitting solar panels to a roof comes down to four things: confirming the structure can carry the load, choosing a mount system that matches your roof covering, sealing every penetration properly and wiring the array with care. Plan the layout around orientation, shade and fire access, then work through each stage in order. For the electrical connection and utility approval, bring in a licensed professional.
