How to Calculate Roof Pitch
Ways to find a roof's pitch without walking on it, each with the arithmetic worked through.
By Marko Visic, BSc Physics · Updated November 25, 2026
Roof pitch is the rise in inches over 12 in of level run.[1] From the attic, hold a level under a rafter with the bubble centered and measure straight up to the rafter at the 12 in mark: a rise of 7 in is a 7:12 pitch.[1] Over any other run, divide the rise by the run and multiply by 12: 10 ÷ 24 × 12 = 5, a 5:12 pitch.

Drawing: CalculateMyRoof · CC BY 4.0 · How to reuse
The roof pitch formula
Pitch compares the rise to the run, written as the rise per 12 in of run.[1] Measure both in the same unit and the formulas are:
- pitch = rise ÷ run × 12
- angle = atan(rise ÷ run)
- grade % = rise ÷ run × 100
For the attic reading above, the angle is atan(7 ÷ 12) = 30.26° and the grade 7 ÷ 12 × 100 = 58.33%. The roof pitch chart lists every pitch with its angle and grade.
From the attic with a level and tape
- Find a rafter you can reach. In a truss roof the top chord works the same way, since it follows the roof slope.
- Hold a level against the underside of the rafter with one end touching it, and tilt the level until the bubble is centered.
- Mark 12 in along the level from the point where it touches the rafter.[1]
- Measure straight up from that mark to the underside of the rafter. That many inches is the rise, so the pitch is rise:12.
Measure square to the level, not along the rafter: the run is horizontal. A rise of 7 in at the mark is a 7:12 roof.
With a longer level: any run, scaled to 12
A longer level averages out a wavy rafter. Measure the rise at the end of whatever run you use and scale it: a rise of 10 in over a 24 in level is 10 ÷ 24 × 12 = 5, a 5:12 pitch.
From the ridge height and the span
If you know how far the ridge sits above the wall plates and how wide the building is, the run of a gable roof with a centered ridge is half the span. With the ridge 8 ft above the plates on a 32 ft span, the run is 32 ÷ 2 = 16 ft and the pitch 8 ÷ 16 × 12 = 6, a 6:12 roof. If you have the house plans, look for both numbers there.
With your phone
The roof pitch calculator has a phone mode that reads your phone's tilt in the browser. Lay the phone along a rafter in the attic and it turns the angle into a pitch; check the result with a level when you can.
Stay off the roof to measure
Each method above works from the attic or from a set of plans. On construction sites, OSHA requires fall protection for residential construction work 6 ft (1.8 m) or more above a lower level.[2] It counts a roof as steep when its slope is more than 4 in 12.[3]
What throws the number off
A run measured along the sloped rafter instead of along the level throws the pitch off, and so does a level read with the bubble off center: both make the rise wrong for the run.
Common questions
What is the formula for roof pitch?
Pitch is the rise divided by the run, times 12, so it reads as inches of rise per 12 in of run.[1] A 9 in rise over 18 in gives 9 ÷ 18 × 12 = 6, a 6:12 pitch.
How do I measure roof pitch without going on the roof?
Measure it from the attic with a level and tape, work it out from the ridge height and the span, or lay your phone along a rafter in the phone mode of the roof pitch calculator.
How do I convert roof pitch to degrees?
Take the arctangent of the rise over the run: a 7:12 roof is atan(7 ÷ 12) = 30.26°.
What does a 6/12 roof pitch mean?
The roof rises 6 in for every 12 in of level run.[1] The roof pitch page draws each pitch to scale.
Methodology & sources
Every calculated number above comes from the pitch engine the calculator uses, with the run set to 12 in; the worked examples are inputs chosen for round numbers.[1] OSHA's rules come from 29 CFR 1926, linked below.[2][3]
Sources
- [1] U.S. Navy, Naval Education and Training Professional Development and Technology Center. Builder Basic, NAVEDTRA 14043A (October 2010), Chapter 10: Rough Carpentry. p. 10-51. Retrieved Nov 20, 2026. media.defense.gov
- [2] U.S. Occupational Safety and Health Administration (eCFR). 29 CFR 1926.501, Duty to have fall protection. 1926.501(b)(13). Retrieved Oct 14, 2026. ecfr.gov
- [3] U.S. Occupational Safety and Health Administration (eCFR). 29 CFR 1926.500, Scope, application, and definitions. 1926.500(b). Retrieved Oct 28, 2026. ecfr.gov
Change log: first published November 25, 2026.
Related
- Roof pitch calculator
- Roof pitch
- Roof pitch chart
- Minimum roof pitch
- Rafter length calculator
- How to measure a roof
By Marko Visic, BSc Physics. Updated November 25, 2026.