Calculate roof ridge height from building span, wall height and roof pitch, or solve for the pitch, wall height or span needed for a target peak height.

The primary answer uses ideal roof-line geometry from the wall top. Framing and roof-plane elevations are separate estimates; verify structure, cuts, roof details and official height definitions independently.

For a shed roof, use the lower wall. Enter 0 to use the wall top as datum.

For 6/12, enter 6. Off-center geometry uses the left slope.

Framing and height comparison

Blank means no thickness deduction. Not used for a shed roof.

Blank omits rafter-depth/HAP framing offsets.

Blank means an unnotched zero-length seat. Enter the actual modeled cut, not a presumed wall width.

Thickness perpendicular to the roof plane. Blank means no added layer.

Blank means no overhang; affects rafter length, not peak elevation.

Blank skips comparison. Use the same datum; this is not a zoning-compliance determination.

Calculator Functions

FunctionWhat it doesWhat it requires
Geometric ridge heightFinds the height of the roof peak above a reference levelRequires the roof geometry, the wall-to-wall span, the wall-top height and the roof pitch
Required roof pitchFinds the pitch that puts the peak at a target heightRequires the roof geometry, the span, the wall-top height and the target peak height
Required wall heightFinds the wall-top height that puts the peak at a target heightRequires the roof geometry, the span, the roof pitch and the target peak height
Span for target heightFinds the span that reaches a target peak height at a fixed pitchRequires a centered gable or shed roof, the wall-top height, the roof pitch and the target peak height

The roof is a centered gable, an off-center gable or a shed roof with a single slope. An off-center gable also needs the horizontal run from the left wall to the ridge. Lengths go in as feet, inches, meters or centimeters, and pitch as rise per 12, degrees or slope percent. Optional framing inputs add the ridge board thickness, rafter depth, birdsmouth seat, roofing thickness, eave overhang and a height to compare against.

Ridge Height Formulas

RH = H + R × s
RHRidge height: the roof peak above the reference level
HHeight of the wall top above the same level
RHorizontal run from the wall to the ridge
sSlope of the roof: rise divided by run

The run of a centered gable is half the span [1]. A shed roof uses the full span, and an off-center gable uses the run entered for the left side. The slope comes from the pitch: s = rise per 12 ÷ 12 = slope percent ÷ 100 = tan(angle). A 6/12 roof rises 6 inches for each foot of run [1], so s is 0.5.

Geometric ridge height

A centered gable on a 30 ft span with 10 ft walls and a 6/12 pitch has a run of 15 ft and a rise of 15 × 0.5 = 7.5 ft, so the ridge is 17.5 ft up. The same building with a 30° roof reaches 10 + 15 × tan(30°) = 18.66 ft. Enter a wall height of 0 to get the rise alone:

PitchAngleRise, 24 ft spanRise, 30 ft spanRise, 40 ft span
3/1214.04°3.00 ft3.75 ft5.00 ft
4/1218.43°4.00 ft5.00 ft6.67 ft
5/1222.62°5.00 ft6.25 ft8.33 ft
6/1226.57°6.00 ft7.50 ft10.00 ft
8/1233.69°8.00 ft10.00 ft13.33 ft
10/1239.81°10.00 ft12.50 ft16.67 ft
12/1245.00°12.00 ft15.00 ft20.00 ft

Required roof pitch

s = (RH − H) ÷ R

Multiply s by 12 for the rise per 12. To reach 17.5 ft from 10 ft walls over a 15 ft run, the roof needs (17.5 − 10) ÷ 15 = 0.5, a 6/12 pitch.

Required wall height

H = RH − R × s

For a 17.5 ft ridge on a 30 ft span at 6/12, the walls must be 17.5 − 7.5 = 10 ft high.

Span for target height

Span = 2 × (RH − H) ÷ s

A shed roof leaves out the 2, because its run is the whole span. An off-center gable has no single answer, so this function accepts only a centered gable or a shed roof.

Framing and height comparison

Rafter line = R × √(1 + s²)

The rafter line is the sloped distance from the outside of the wall plate to the center of the ridge, the long side of the triangle formed by the run and the rise [1]. With a rafter depth entered, the height above the plate is depth × √(1 + s²) − seat length × s, and a ridge board shortens the run by half its thickness. Rafter depth and roofing thickness raise the finished roof surface above the ideal line, and the comparison height shows whether that surface clears a limit.

What Is Ridge Height?

Ridge height is how high the ridge, the top edge of the roof where the slopes meet, sits above a reference level such as the ground or the floor. Eave height is measured the same way to the lower edge of the roof at the wall. The difference between the two is the total rise of the roof, the vertical distance from the top of the wall plate to the top of the ridge [1].

Limits of This Estimate

  • The main answer is the ideal roof line from the wall top. Ridge caps, vents, truss heels and other finish details are not included.
  • The framing figures are geometry only. They do not check the structure, the size of the ridge or rafters or whether a birdsmouth cut is allowed.
  • An off-center gable is modeled with both wall tops level, and its framing figures describe the left slope only.
  • Planning rules define building height in their own ways. The comparison height does not show that a roof complies.

Sources