The calculator determines the geometry of a gable roof and the estimated quantity of the main materials for two roof slopes. The calculation includes the rafter length, roof pitch angle, roof area, rafters, collar ties, posts, battens, fascia boards, bargeboards, wall plates, waterproofing membrane, counter-battens, and insulation.
The calculation is intended for preliminary assessment and comparison of roof options. All input dimensions are entered in centimeters. Areas are shown in square meters, timber and insulation volumes are shown in cubic meters, and some total lengths are shown in meters.
Calculation model. The roof is treated as two identical rectangular slopes. The transverse house dimension defines the roof span, the height defines the ridge position, and the overhang is added to the calculated slope length and to the longitudinal roof width.
Roof pitch angle. The slope angle is calculated from a right triangle. The vertical side is the roof height, and the horizontal side is half of the span:
α = arctan(H / (X / 2))
Here H is the roof height in cm, and X is the house width in the transverse section in cm. The greater the height at the same span, the greater the roof pitch angle.
Slope length. The inclined slope length is calculated from the ridge to the outer edge of the overhang:
Lr = (X / 2 + C) / cos(α)
Here C is the roof overhang in cm. This value is used for the roof area, bargeboards, counter-battens, and part of the roof layer calculations.
Slope width. The longitudinal roof slope width is increased by two overhangs:
Br = B + 2C
Here B is the house length in cm. Adding two overhangs accounts for the roof projection on both sides along the slope width.
Roof area. The area of two slopes is calculated as the slope length multiplied by the slope width, with a coefficient of 2:
A = 2 × Lr × Br / 10 000
Division by 10 000 converts square centimeters to square meters.
Rafter length. The calculated rafter length is based on the slope length with an additional correction for the rafter board width:
Ls = Lr + S1 × tan(α)
Here S1 is the rafter width in cm. The correction increases as the roof pitch angle increases.
Installation working zone. If the outer rafters are shifted inward from the roof edge by an offset E, the calculated width for rafter layout is reduced:
Bw = Br - 2E
If the offset is 0, the rafters are distributed from the roof edge. If the offset is greater, the outer rafters are shifted inward symmetrically on both sides.
Installation module. The rafter count uses not only the specified spacing between rafters, but also the rafter board thickness:
M = S + S2
Here S is the spacing between rafters in cm, and S2 is the rafter thickness in cm. This module describes the repeating pattern: gap plus board.
Number of rafters. The number of positions on one slope is rounded upward:
n = ceil(Bw / M + 1)
The total number of rafters for two slopes is 2 × n. Rounding upward is used because structural elements cannot be counted as fractions.
Rafter volume. Timber volume is calculated from the rafter length, section size, and number of rafters:
Vs = 2 × n × Ls × S1 × S2 / 1 000 000
Division by 1 000 000 converts cubic centimeters to cubic meters.
Number of collar ties. The number of collar ties is taken as equal to the number of rafter positions on one slope: n. One collar tie corresponds to one pair of rafters.
Installation height. The calculated collar tie height is limited by the roof geometry. If the specified height is greater than the roof height, the roof height is used for the calculation so that the element does not go beyond the roof triangle.
Collar tie length. The length is determined from the roof triangle proportion. The higher the collar tie is placed, the shorter its calculated length:
Lz = (X + 2C) × (H + Ks - Hz) / (H + C × 2H / X)
Here Hz is the collar tie installation height in cm, and Ks is the rafter section correction. The collar tie volume is calculated from the length, section size, and number of elements.
Post position. Posts are calculated inside the roof triangle. If the offset from the center is 0, one central post is used for each rafter position. If the offset is greater than 0, two posts are used for each position, symmetrically from the center.
Post height. The height is determined by the slope line at the installation point. The closer the post is to the roof center, the greater its height. The closer it is to the edge, the smaller the calculated height.
Quantity and volume. With the central layout, the number of posts is n. With the paired layout, the number is 2 × n. The volume is calculated as the product of quantity, height, width, and thickness, converted to cubic meters.
Number of rows. Batten rows are calculated along the slope length. The calculation module includes the batten board width and the distance between boards:
no = 2 × ceil(Lr / (O1 + O3) + 1)
Here O1 is the batten board width in cm, and O3 is the distance between boards in cm. The coefficient 2 accounts for the two slopes.
Length of one row. One batten row is taken along the full slope width:
Lo = Br
Total consumption. The total batten length is equal to the length of one row multiplied by the number of rows. The volume is calculated from the total length, board width, and board thickness.
Calculation logic. Counter-battens are calculated along the rafters. The length of one counter-batten is taken as equal to the slope length Lr, and the number of counter-battens corresponds to the total number of rafters.
Total length. The calculated total counter-batten length is converted from centimeters to meters:
Lc,total = 2 × n × Lr / 100
Volume. Counter-batten volume is calculated from the number of battens, the length of one batten, and the width and thickness of the section:
Vc = 2 × n × Lr × C1 × C2 / 1 000 000
Here C1 and C2 are the counter-batten section dimensions in cm.
Wall plates. Wall plates are calculated along the two longitudinal sides of the house, without adding roof overhangs:
Lm = 2 × B / 100
The wall plate volume is determined from the total length, width, and thickness of the section.
Fascia board. Fascia board is calculated along the two eaves lines, including overhangs:
Lf = 2 × Br / 100
The volume includes the total board length, its width, and its thickness.
Bargeboard. Bargeboard is calculated along the four inclined gable edge lines:
Lw = 4 × Lr / 100
The coefficient 4 accounts for two gable sides and two roof slopes.
Calculated area. The base waterproofing membrane area is taken as equal to the roof area. An additional allowance is included for membrane overlaps:
Ah = A + Rl × Ro × (Lr / Rw) / 10 000
Here Rl is the roll length in cm, Rw is the roll width in cm, and Ro is the overlap in cm. The additional part represents the material area used for overlapping the sheets.
Number of rolls. The number of rolls is calculated by dividing the total waterproofing membrane area by the area of one roll:
Nh = Ah / (Rl × Rw / 10 000)
Calculated zone. Insulation is calculated for the main roof slope area above the house outline. Overhangs are not included in the insulation volume.
Insulated slope length. For insulation, the slope length without the overhang is used:
Li = (X / 2) / cos(α)
Insulation volume. The volume is calculated from two slopes, the house width, and the insulation layer thickness:
Vi = 2 × Li × B × T / 1 000 000
Here T is the insulation thickness in cm.
Rafter spacing. In private construction, spacing of about 60-100 cm is often used. For an insulated roof, the spacing is often matched to the width of insulation boards to reduce cutting and gaps.
Roof pitch. Gable roofs often use pitch angles of about 15-45°. A lower pitch requires careful checking of the minimum pitch allowed for the selected roofing material, while a higher pitch increases the roof area and material consumption.
Roof overhang. Common overhang values are about 30-60 cm. The overhang affects the roof area, slope length, fascia board length, and bargeboard length.
Material allowance. For purchasing, an allowance is usually added on top of the calculated value. For timber and sheet materials, a common guideline is 5-15%, but the exact allowance depends on timber grade, joint layout, cutting, and the selected roofing material.
Eurocode. For design checks in EU countries, the Eurocode system and national annexes are used. The calculator does not replace load-bearing capacity design, but its results can be used as a geometric basis for further verification.
Loads. EN 1991-1-3 is used for snow loads, and EN 1991-1-4 is used for wind loads. These documents are important when selecting rafter section size, installation spacing, and fasteners.
Timber structures. Timber elements are checked according to EN 1995-1-1. Basis of design and load combinations are defined by EN 1990. National annexes specify coefficients, snow zones, wind zones, and local conditions.
For preliminary purchasing, an allowance of about 5-15% is commonly added. A smaller allowance is suitable for simple geometry and high-quality material, while a larger one is used for complex joints, frequent cutting, or inconsistent timber quality.
Rafter spacing is selected not only for layout convenience, but also according to loads, timber section size, and span length. If the roof is insulated with boards, the spacing is often matched to the insulation width so that the boards fit between the rafters without large gaps.
Roofing materials have different minimum pitch requirements. At a low angle, water and snow remain on the roof more easily, so the manufacturer recommendations and project requirements must be checked.
The available board length, permitted joints, timber moisture, grade, section size, and cutting options should be checked. It is also useful to compare the calculated length of rafters, collar ties, and posts with the standard timber lengths available from the supplier.
Waterproofing membrane is used not only for the clean slope area. Some material is spent on overlaps, eaves projection, junctions, cutting, and bypassing details. Therefore, a practical allowance is usually added to the calculated number of rolls.