How many solar panels will fit on your roof?

Looking up at your roof and wondering how many panels you can fit up there? Here’s a method that doesn’t require a ladder.

Google Maps

If you used The Solar Nerd calculator, you’ll have an estimate of how many solar panels you need to generate all of your electricity. But then the question is: will that many panels actually fit on your roof?

You might know the square footage of your house, but that doesn’t tell you the area of roof that’s available to fit solar panels. What you want is a big rectangular area without any shade. A south or west facing roof is usually best, but east can be viable in some cases.

But not all rooftops are simple rectangles. Hip, gabel, and mansard roofs, for example, are designs common on American homes, and they each have a different geometry that changes the amount of usable area. So do features like dormers, ventilation pipes, and chimneys.

Another possible situation is that you have a good amount of roof area, but it’s shaded by trees or neighboring buildings.

Finally, you may have local fire setback codes that require you to leave a free pathway on the edge of your roof for access to firefighters.

All these considerations will affect what the final layout of your solar panels will be, which is why you want to work with a professional installer to give you a design proposal. But with the method I’ll describe in this article, you can make a decent estimate of your solar panel layout in just a few minutes.

How do solar installers design system layouts?

Here’s a secret: most solar installers use a method similar to the one described in this article to prepare system layouts for customer quotes. While they use professional software, solar companies almost always make use of satellite images from Google Earth or other sources as a starting point.

A responsible company will always come to your house to ground-truth the design by verifying measurements and looking for issues that aren’t always visible in satellite photos like vent stacks, shading, and roofing issues. (Never work with an installer company that makes you sign a contract without first visiting your house.)

But pretty much all solar installers start the design process by using satellite images. Here’s how you can do a rough draft yourself.

Online tools for estimating your roof area

There are websites that will let you use satellite maps to draw an area on your roof to get the square footage. You can find a few of these on the internet, but one I like is on

When you go to the area calculator, you’ll see a screen like this: Zoom to a satellite view of your rooftop. (Screenshot from
Zoom to a satellite view of your rooftop. (

In the address field, enter your street address, city and state, separated by commas (step 1). Then click the ‘zoom to address’ button, which will place a red pin on your house (step 2).

Then, switch to the satellite view so that you can see your actual house (step 3). Draw a polygon to calculate the area of your rooftop. (Screenshot from
Draw a polygon to calculate the area of your rooftop. (

You’ll need to click the + icon on the lower right corner to zoom all the way in (step 4).

After that, click on the map to draw a polygon around the area of the roof where you think your panels should go. You will click on each corner of the polygon, and then click back to the first point to close the polygon (step 5).

If you’ve done it correctly, the calculated area of your polygon will be displayed above the map (step 6).

Other ways to measure your roof

If you have a proper safety harness, you could go up on the roof and take a direct measurement with a tape measure. That’s risky for personal safety, and walking with a heavy foot on your roof can damage your shingles. So I don’t recommend that.

Instead, if you have a rectangular section of roof, you could take the measurement from the ground. This should be more accurate than using a tool based on satellite photos.

Take your measurements from the corners of the roof where they meet the ground: Illustration of how to measure your roof area
Vector art courtesy macrovector_official/

Once you have X and Y, multiply them to get the area on the ground. So, if your X = 25 feet and Y = 12 feet, your area on the ground would be 300 feet². But that’s not the area of the roof, because it is sloping. We need to do a little trigonometry.

You need to measure the angle of the roof, and you can do that with a smartphone app like Measure for iOS or Bubble Level for Android. Measure comes pre-installed on iPhones, so you should have it already.

Of course, this isn’t as accurate as going up on a ladder to take a measurement, but it sure is a lot easier, and good enough because we’re just doing this exercise to get a rough estimate of our panel count.

To take a measurement, stand underneath the roof section you want to measure, and hold up the edge of your phone so that it’s parallel with the roof. Here’s what it looks like using Measure: Measuring your roof slope from the ground
Measuring your roof slope from the ground

Let’s round it off and call it 35°. To get the area of the roof, you then need to divide the area you calculated on the ground by the cosine of your angle in degrees. An easy way to do this to enter this equation into Google.

For our example, we’re dividing 300 square feet by the cosine of 35 degrees. Type it into Google like this:

300/cos(35 degrees)

The result will appear in Google with a handy visual calculator:

Using the Google calculator to get the area of your roof

Our roof area is 366 square feet. You can follow this link for a direct example.

Pretty handy! While this works well for rectangular sections, triangular sections of roof are trickier.

Dealing with complicated roofs

That’s my house in the photos above, by the way. I’m lucky to have a simple roof to work with, but yours might not be a straight rectangle. If you have triangular sections of your roof, you’re probably better off using the online tool rather than trying to estimate it from the ground.

Example of solar panels on triagular sections of roof.
Photo credit

Multiple roof sections

It’s pretty common to use multiple sections of your roof for solar panels.

For example, having some panels facing south and others facing west could be really useful when you have a time-of-use plan with your utility company. Your south panels will capture the most energy in total throughout the day, but your west panels will generate more during the critical peak load time in the early evening when the grid is strained.

In any case, calculating your panel count is still easy. Whether you’re using the online area calculator or measuring from the ground, just measure the roof sections individually and use the calculator at the bottom of this article to see how many panels you can fit on each section.

Inverters for multiple strings

If you have panels set up in multiple groups (called strings), you will either need an inverter that can support multiple strings, or use microinverters. Microinverters give you maximum flexibility but cost more. To learn more, you can read my article that explains how solar inverters work.

Obstructions on your roof

Just be aware of things on your roof where panels can’t go, such as vent stacks, chimneys, and heavily shaded areas. Also, some cities may have local fire setback codes that prevent you from placing panels right up the edge of the roof.

Fire setback codes

Many state and local jurisdictions have building codes that require solar panel installations to leave an unobstructed pathway around the edge of the rooftop. These are called fire setbacks, and they’re there to give firefighters better access to the roof in an emergency.

These requirements don’t exist everywhere, so check with your local authorities. But they are required in California. The exact size of the fire setback depends on the size of the building, but for an average sized home, each roof section that has solar panels requires two clear 36-inch wide pathways running along the edge of the roof. Here’s what that looks like: Example of a fire setback code in California. (CALSSA)
Example of a fire setback code in California. (CALSSA)

This is an example for a simple roof, but the requirements differ for other types of buildings. To learn about this in detail, you can refer to the webinar and document linked in this article from CALSSA.

Calculate how many solar panels you can fit on your roof

Once you have an estimate of your available roof area in square feet, enter that number in the calculator below. It will tell you how many average sized solar panels will fit in the space.

Warning: this calculator doesn’t take into account fire code setbacks, because those vary from jurisdiction to jurisdiction. If you know what your setback codes are, you can simple subtract the area of the required pathway from the total roof square footage.

Disclaimer about this tool

Of course, the methods described in this article for making a rough calculation are just to give you a quick way to figure out how many panels you might be able to fit on your roof. It’s no substitute for working with a professional solar installer who will include a site layout with your solar quote and explain in detail which sections of your roof are best suited for solar panels.

They’ll also be able to identify obstructions, shading, and other issues.

When you’re ready to work with a professional contractor for your home solar panel installation, fill out our form to get quotes from up to three qualified solar installers.

#System Design #Roofing

Save 30% or more on home solar with current incentives

Photo of a solar home.

Use our calculator to get a financial payback and solar performance estimate customized to your home, including federal, state, and local incentives.

When you’re ready, fill out our form to get a home solar quote from a local SunPower installer.

Related stories:

Reinforcing a roof for solar panels: needed or not?

Solar panels don't actually weigh that much, but that weight can still be too much for some roofs and require structural support. Here's what to know.

When is a roof too steep for solar panels?

If your house has a steep roof, solar installation crews might have difficulty or not be able to work on your roof at all. This article explains why.

How to install solar panels over plumbing vents

To install solar panels on your house, you need a clear section of roof. Unfortunately, obstructions like plumbing vents can get in the way. You can give up the space, but there are solutions.

Can you put solar panels on a north facing roof?

If your only sunny section of roof is angled toward the north, solar panels still might work for you.

Can I expand my existing solar system by adding more panels?

Homeowners with an exiting solar array sometimes want to add more panels to generate more electricity. Here's the different ways it can be done.

How are solar panels installed on a roof?

Depending on the type of roof you have and aesthetic considerations, there are different ways to mount solar panels on your roof. Here's an overview of the choices.

Do solar panels cause roof leaks?

Installing solar panels on a house usually involves drilling holes into the roof. Done properly, this will stay waterproof for the life of the system, but unfortunately shoddy companies do exist.

How many solar panels are needed to run a 4,000 square foot or larger house?

If you have a very large house, this article will tell you how many solar panels you need to power it.

Can you install solar panels on a detached garage or shed?

Most solar homeowners use the roof of their home for solar panels, but sometimes a detached garage or even a shed is a better choice.