How I Measured My Roof Pitch With My Phone Before Planning Solar

When I started planning solar panels for our house, every calculator I opened asked the same first question: what is your roof pitch? I didn't have the building drawings, and I was not going to walk around on the tiles to find out. My phone already has a sensor that knows which way is down, so I wrote a small web page to read it. That page grew into this inclinometer. Here is how I measured the roof, and the mistake I nearly made.

Open the inclinometer →

Why the roof pitch matters for solar

The pitch decides how directly the panels face the sun, so it goes straight into any yield estimate. When I entered the roof into PV Freund, the planning tool I also build, the pitch and the direction of the roof were the two numbers that moved the result the most. Mounting hooks and rails are also chosen for a range of pitches, so the installer wants the number too.

You don't need it to a tenth of a degree. You do need to be in the right range, and you need to know you measured the roof and not something else.

What you need

How I measured it

  1. We set the ladder at the eaves and my partner footed it. I stayed on the ladder the whole time and never stepped onto the roof.
  2. I opened the inclinometer and pressed Start Measuring. On an iPhone the browser asks for permission to use motion sensors first; you have to allow it.
  3. I laid the straight edge up the slope, across three rows of tiles, and put the phone flat on it with the top of the phone pointing up the roof. Lined up like that, the roof angle shows as Pitch (X).
  4. I waited for the number to stop moving. It read 35°.
  5. Without moving the straight edge, I turned the phone around so it pointed down the roof. The reading was now 36° (with a minus sign, because the phone was facing the other way). I ignored the sign and averaged the two numbers: 35.5°.

The tool shows whole degrees, so that half degree only comes from averaging two readings. Turning the phone around cancels most of the phone's own built-in offset, which is why I do it for anything that matters.

Turning degrees into a roof pitch

Roofers in some countries describe pitch as rise over 12, like "6 in 12". To convert, multiply the tangent of the angle by 12. For my roof, 12 × tan(35.5°) ≈ 8.6, so a little steeper than 8 in 12. As a percentage it is 100 × tan(35.5°) ≈ 71%.

AngleRise in 12Percent
18.4°4 in 1233%
26.6°6 in 1250%
33.7°8 in 1267%
45°12 in 12100%

The mistake I nearly made

My very first reading was with the phone lying straight on a single tile. It said 32°, and I almost wrote that down. Tiles overlap, so each one sits at a slightly shallower angle than the rafters underneath. A straight edge that rests on the bottom edges of several rows follows the line of the rafters instead, and that is the angle a solar planner or an installer means by roof pitch. On my roof the difference was three and a half degrees.

A phone is not a certified instrument, and I used this reading for planning, not for ordering parts. The installer measured again before fitting anything, and their number agreed with mine to within a degree.

TipDo the turn-around on every reading you plan to use. The two numbers will usually differ by a degree or so, and the average is closer to the truth than either one.

From RaghulA phone is only about 15 cm long, so laid straight on a roof it measures one tile, not the roof. On the 1 m straight edge the readings were much steadier, because it spans several rows and smooths out the bumps. I also measured on both sides of the ladder, and the two spots differed by about a degree, which is normal on an older roof. I used the average.

Ready to measure?

The inclinometer runs in your phone's browser. Nothing to install, and your readings never leave your device.

Open the inclinometer →

This is a phone-based tool, not a certified instrument. Don't rely on it for structural, safety-critical or professional work.