Ridge Height Calculator
Building and roof
- On a gable roof the ridge height above the top plate comes straight from the pitch: the rafter climbs pitch inches for every 12 inches of horizontal run, and each side spans half the building width.
- Half the 24 ft width is a 12.0 ft run; at a 6/12 pitch the rise is 12.0 x 6 / 12 = 6.00 ft - that rise is the ridge height above the top plate.
- Adding the wall plate height gives a total height to the ridge of 9.0 + 6.00 = 15.00 ft, the number height-restriction checks and scaffold plans actually use.
- Each common rafter runs the hypotenuse of that triangle, 13.42 ft before any overhang or ridge-board deduction, at a roof angle of 26.57 degrees.
The Ridge Height Calculator tells you how high the ridge of a gable roof will sit above the ground, based on three inputs: building width, roof pitch, and wall height. The method is simple: the ridge height above the top plate is half the building width multiplied by pitch/12. So a 24 ft wide building at 6/12 pitch rises 6.00 ft above the plate, and with 9 ft walls the ridge tops out at 15.00 ft. A 30 ft building at 8/12 with 10 ft walls reaches 20.00 ft in total, while a 20 ft building at 4/12 with 8 ft walls rises only 3.33 ft, for 11.33 ft total. The calculator applies the same relationship to your own numbers and returns the ridge height, so you can check a design, size materials, or plan a build without doing the arithmetic by hand.
This half-width times pitch/12 relationship is the accepted standard for gable roof layout because it follows directly from the geometry of the roof: pitch is defined as rise per 12 units of horizontal run, and the ridge sits at the midpoint of the span, so the horizontal run from the wall to the ridge is half the building width. That is why the worked examples line up so cleanly, and why the same geometry gives the common rafter length — on the 24 ft, 6/12 example, 13.42 ft per side before overhang, at a roof angle of 26.57 degrees. This page shows the formula, step-by-step workings, worked examples and sources, so you can follow every step and confirm the result yourself rather than taking a number on trust.
Worked examples
24 ft wide, 6/12 pitch, 9 ft walls
(24 ft · 6 · 9 ft)
| Ridge height above the top plate | 6.00 ft |
| Total height to the ridge | 15.00 ft |
| Common rafter length per side (no overhang) | 13.42 ft |
| Roof angle | 26.57 degrees |
30 ft wide, 8/12 pitch, 10 ft walls
(30 ft · 8 · 10 ft)
| Ridge height above the top plate | 10.00 ft |
| Total height to the ridge | 20.00 ft |
| Common rafter length per side (no overhang) | 18.03 ft |
| Roof angle | 33.69 degrees |
20 ft wide, 4/12 pitch, 8 ft walls
(20 ft · 4 · 8 ft)
| Ridge height above the top plate | 3.33 ft |
| Total height to the ridge | 11.33 ft |
| Common rafter length per side (no overhang) | 10.54 ft |
| Roof angle | 18.43 degrees |
Where ridge height comes from
Ridge height is not a single measurement pulled from a table — it is the result of three inputs working together: the building width, the roof pitch, and the height of the walls. Picture a cross-section of the roof as a triangle sitting on top of a rectangle. The rectangle is the wall assembly, and its top edge is the top plate. The triangle is the roof, and its peak is the ridge. Every ridge height calculation is really a matter of stacking those two pieces: the height of the plate above grade, plus the rise of the roof above the plate.
The run of that triangle is half the building width. Because a gable roof is symmetrical, the ridge sits at the centerline, so each rafter travels from the outer wall to the middle of the building — a horizontal distance of half the span. That half-span is the number you feed into the rise calculation, not the full width. Pitch is expressed as rise over 12, meaning the inches the roof climbs for every 12 inches of horizontal run. Combining the two gives the core relationship behind any ridge height calculator: the ridge height above the top plate equals half the building width multiplied by pitch divided by 12.
The plate is the baseline for all of this. Ridge height above the plate tells you how tall the roof triangle is on its own; total ridge height above grade adds the wall height underneath. Keeping the two separate is what makes the arithmetic easy to check. A 24 ft wide building at 6/12 pitch rises 6.00 ft above the plate, and with 9 ft walls the ridge tops out at 15.00 ft. A 30 ft building at 8/12 with 10 ft walls reaches 20.00 ft in total. A 20 ft building at 4/12 with 8 ft walls rises only 3.33 ft, for 11.33 ft total.
The rafter length follows from the same triangle. On the 24 ft, 6/12 example, the common rafter runs 13.42 ft per side before overhang, at a roof angle of 26.57 degrees. That figure is the diagonal of the half-span and the rise, which is why a steeper pitch lengthens the rafter even when the building width stays the same. Overhangs are added after this point and do not change the ridge height, since they extend past the wall rather than upward.
Worked buildings
The ridge height calculator's most useful check is a set of real numbers worked all the way through. Below are three houses, each with its width, pitch and wall height given, and each taken from the top plate up to the ridge. In every case the rise above the plate is half the building width multiplied by pitch divided by 12. That single rule does all the arithmetic; the rest is adding the wall height back on to get the total.
Start with the 24 ft wide building at 6/12 pitch. Half of 24 ft is 12 ft, and 12 ft times 6/12 gives a rise of 6.00 ft above the top plate. With 9 ft walls, the ridge tops out at 15.00 ft. The common rafter on this same example runs 13.42 ft per side before overhang, at a roof angle of 26.57 degrees. Those two figures are worth keeping beside the height: the rafter length tells you what stock to buy, and the angle tells you what to set your saw to.
The second house is wider and steeper. A 30 ft building at 8/12 pitch with 10 ft walls reaches 20.00 ft in total. Half of 30 ft is 15 ft, and 15 ft times 8/12 gives 10.00 ft of rise, which the 10 ft walls lift to the 20.00 ft total. Notice that the wider building and the steeper pitch pull in the same direction: more width means a longer run to the ridge, and a higher pitch means more height for every foot of that run.
The third house shows the opposite case. A 20 ft building at 4/12 pitch with 8 ft walls rises only 3.33 ft, for 11.33 ft total. Half of 20 ft is 10 ft, and 10 ft times 4/12 gives 3.33 ft. A shallow pitch on a narrow building keeps the ridge low, which is often what you want when a structure sits close to a property line or under an existing tree canopy.
Read together, the three examples cover the range most residential work falls into. The rise above the plate runs from 3.33 ft to 10.00 ft, and the total heights land at 15.00 ft, 20.00 ft and 11.33 ft. If you are checking your own numbers, compute the rise first from half the width and the pitch, then add the wall height. If your total does not match one of these patterns, the pitch or the width is the place to look first.
| Building width | Pitch | Wall height | Rise above plate | Total ridge height |
|---|---|---|---|---|
| 24 ft | 6/12 | 9 ft | 6.00 ft | 15.00 ft |
| 30 ft | 8/12 | 10 ft | 10.00 ft | 20.00 ft |
| 20 ft | 4/12 | 8 ft | 3.33 ft | 11.33 ft |
Why total height matters
A ridge height calculator gives you more than a number to write on a plan. The total height from grade to the top of the ridge is the figure that zoning officials, scaffold crews, and chimney installers all care about, and it is the figure most often estimated by eye when it should be computed. Getting it wrong can mean a rejected permit, a rented scaffold that reaches the wrong level, or a chimney that fails inspection.
Start with the arithmetic the tool performs. The ridge height above the top plate is half the building width multiplied by the pitch divided by 12. A 24 ft wide building at 6/12 pitch rises 6.00 ft above the plate, and with 9 ft walls the ridge tops out at 15.00 ft. A 30 ft building at 8/12 with 10 ft walls reaches 20.00 ft in total. A 20 ft building at 4/12 with 8 ft walls rises only 3.33 ft, for 11.33 ft total. Those three totals look modest on paper, but each one is measured from the ground, not from the top of the wall, and that distinction drives everything below.
Zoning height limits are almost always written as a maximum height above grade, and they frequently include the roof in that measurement. A lot capped at 15 ft may pass a 24 ft wide, 6/12 design at exactly 15.00 ft, while the same lot fails a 30 ft wide, 8/12 design at 20.00 ft. Because the ridge is the highest point of the structure, it is the point a zoning officer will check, and the total height from the ridge height calculator is the number that goes on the application. Confirm whether your local code measures to the ridge or to the mean roof height, since the two differ on a pitched roof.
Scaffold and ladder planning depend on the same total. Crews need to reach the ridge line to set trusses, install ridge vent, and finish the cap, and equipment is rented by working height. A building whose ridge sits at 11.33 ft calls for a different scaffold tower and ladder length than one at 20.00 ft, and the roof slope affects how the equipment is set back from the wall. The common rafter on the 24 ft, 6/12 example runs 13.42 ft per side before overhang, at a roof angle of 26.57 degrees, which tells a crew how far the work zone extends along the slope as well as how high it climbs.
Chimney clearance rules are also measured from the ridge. Codes typically require a chimney to extend a specified distance above the highest point of the roof within a set horizontal distance, so the ridge is the reference point for the entire rule. A chimney that clears the roof surface near the penetration but not the ridge can still fail. Run the ridge height calculator before you order materials, file paperwork, or schedule an inspection, and use the total height as the single figure everyone on the project works from.
Ridge height vs rafter length
The ridge height and the rafter length are two different measurements, and mixing them up is one of the most common sources of error in roof framing. Ridge height is the vertical distance from the top of the wall plate to the peak of the roof. Rafter length is the sloping distance along the rafter from the plate to the ridge. They describe the same triangle, but one is a vertical leg and the other is the hypotenuse, so they are never equal. A ridge height calculator that returns a rise figure is not telling you how long to cut your rafters.
The rise itself comes from simple geometry: the ridge height above the top plate is half the building width multiplied by the pitch divided by 12. On a 24 ft wide building at 6/12 pitch, that gives a rise of 6.00 ft above the plate, and with 9 ft walls the ridge tops out at 15.00 ft. A 30 ft building at 8/12 with 10 ft walls reaches 20.00 ft in total, while a 20 ft building at 4/12 with 8 ft walls rises only 3.33 ft, for 11.33 ft total. Notice that the wall height is added after the rise is calculated; the pitch only governs the part above the plate.
The rafter is longer than the rise because it travels across as well as up. On the same 24 ft, 6/12 example, the common rafter runs 13.42 ft per side before overhang, at a roof angle of 26.57 degrees. That 13.42 ft is the sloping run from plate to ridge, not the vertical height of 6.00 ft and not the half-width of 12 ft. If you ordered lumber from the ridge height alone, you would come up short. The rafter length is the number you need at the saw, and it is derived from the same pitch and half-width that produced the rise.
The simple geometry also leaves out details that matter on a real roof. The calculated rise measures to the theoretical peak, but the ridge board itself occupies depth at the top, so the actual top of the framing and the finished ridge line depend on how that board is sized and set. Overhangs add length to the rafter beyond the wall line without changing the ridge height at all, which is why a rafter takeoff and a height takeoff should be done as separate steps. Use the ridge height for wall and peak planning, and treat the rafter length as its own calculation before you cut.
FAQs
How do I calculate ridge height?
Take half the building width to get the run, then multiply by the pitch and divide by 12. For a 24 ft wide building with a 6/12 roof, the run is 12 ft, so 12 ft x 6 / 12 = 6.00 ft of rise. That rise is the ridge height above the top plate.
Is ridge height measured from the ground?
It can be either, so this calculator gives both. The rise above the top plate for the 24 ft, 6/12 example is 6.00 ft. The total from the ground, which includes the wall height, is 15.00 ft. Check which figure your project needs before ordering materials.
What does pitch do to ridge height?
Pitch scales the ridge height directly. Doubling the pitch doubles the rise for the same building width. As an example, a 30 ft building rises 10.00 ft at 8/12. Because the relationship is proportional, small pitch changes can make a noticeable difference on wide buildings.
How long is the rafter?
The rafter length is the hypotenuse of the run and the rise. For the 24 ft wide, 6/12 example, that is 13.42 ft. This figure is before adding any overhang or deducting half the ridge board, so adjust it for those details when you cut actual rafters.
What roof angle is 6/12?
A 6/12 roof equals 26.57 degrees, which is the arctangent of 6/12. That angle describes the slope of the roof plane relative to horizontal. It is useful when you need the angle for cutting rafters or checking the roof against a design specification.
Does the ridge board change the height?
Slightly. In real framing, the depth of the ridge board adds a small amount at the peak, so the actual top of the ridge sits a bit higher than the simple geometry shows. This calculator ignores that detail and uses clean geometry, so treat its result as the basic calculated height.