Skip to content
All Calculators

📐Calculadora de Caibros Grátis — Inclinação, Comprimento e Madeira

Common rafters, tails, ridge, counts, and board feet — IRC R802 framing.

Dimension Diagram — updates as you type

Half-span and pitch set the rise; the rafter is the hypotenuse plus the overhang tail.

slope = √(run² + rise²)

1 Building & Pitch

2 Lumber & Pricing

3 Structural Members — Ties, Posts, Battens & More

The members between rafters and covering — ties, posts, battens, fascia, wall plate and membrane — sized from the same span, pitch and length above.

Results

Rafter Cut List

Slope Length—
Tail (Overhang)—
Total per Rafter—
Cut Length (birdsmouth)—
Birdsmouth correction—
Rafters—
Ridge Board—

Roof Geometry

Rise—
Pitch Angle—
Board Feet—

Structural Members

Roof Area (with overhang)—
Rafter Ties—
Posts—
Battens—
Fascia Board—
Bargeboard—
Wall Plate—
Counter-Battens—
Waterproofing Membrane—
Insulation—
All Members (lumber)—

Cost Breakdown

Material Cost—
Labour Cost—
Grand Total—
🧩Embed

⚠️ Pre-Export Checklist

  • Span measured wall-to-wall (run = half span)
  • Pitch matches the plans (rise per 12 in run)
  • Overhang tail included in lumber order
  • Lumber size checked against span tables for snow load
  • Ridge board one size deeper than rafters

How to Calculate Rafter Length

Show formulas and worked example ▼

Formulas

Run = Span ÷ 2, Rise= Run × Pitch ÷ 12

Slope = √(Run² + Rise²)

Tail= Overhang × Slope ÷ Run,Total = Slope + Tail

Pairs= (Length in inches ÷ Spacing) + 1, doubled, plus ridge

Cut Length = Total per Rafter + Lumber Thickness × Pitch ÷ 12

Why the cut piece is longer: the slope length is measured along the top edge of the rafter, but a board has thickness — at any vertical (plumb) line its bottom edge sits thickness × tan(angle) behind its top edge. The birdsmouth seat is cut from the bottom edge, so for the seat to land on the wall plate at the heel line the top edge must run further by that amount. Cut to the cut length, not the slope length, or every rafter lands short by that much.

The cut length is computed from the displayed per-rafter length (15.66 ft), the same rounded convention the worked example uses. From the unrounded 15.6525 ft it would be 15.7358 ft — also 15.74 ft; only the split differs (+0.08 vs +0.09).

Structural-member formulas

Rafter Ties = pairs, one per rafter pair, each tie = span. Posts = pairs, one per pair, each post = rise.

Battens: rows per slope = ceil(slope ÷ spacing) + 1 — one at the eave, one every spacing, one at the ridge. Each row = building length.

Fascia Board = 2 × length. Bargeboard = 4 × per-rafter length. Wall plate = 2 × length. Counter-battens = rafters × per-rafter length.

Waterproofing Membrane = roof area × (1 + overlap). Insulation area = roof area; insulation volume = area × thickness.

Roof area = 2 × per-rafter length × building length, from the unrounded slope and tail. The displayed 15.66 ft would give 940 sq ft; the true area is 939 sq ft.

Worked Example

24 ft span, 30 ft long, 6/12 pitch, 2 ft overhang, 16 in o.c.:

  • Run 12 ft, rise 6 ft → slope √(144+36) = 13.42 ft
  • Tail: 2 × 13.42 ÷ 12 = 2.24 ft → 15.66 ft per rafter (buy 16 ft)
  • Cut length: 15.66 + (2 ÷ 12) × 6 ÷ 12 = 15.66 + 0.08 = 15.74 ft — buy 16 ft; the extra inch is the birdsmouth seat cut
  • Pairs: 360 ÷ 16 + 1 = 23.5 → 24 pairs = 48 rafters
  • Total: 48 × 15.66 + 30 ridge = 782 lin ft

Worked Example — Structural Members (same 24 × 30 ft roof)

  • Ties: 24 pairs × 24 ft span = 576 lin ft
  • Posts: 24 pairs × 6 ft rise = 144 lin ft
  • Battens: ceil(187.92 ÷ 14) + 1 = 15 rows per slope × 2 slopes × 30 ft = 900 lin ft
  • Fascia: 2 × 30 ft = 60 lin ft
  • Bargeboard: 4 × 15.66 ft = 62.6 lin ft
  • Wall plate: 2 × 30 ft = 60 lin ft
  • Counter-battens: 48 × 15.66 ft = 751.7 lin ft
  • Membrane: 939 × 1.10 = 1,033 sq ft
  • Insulation: 939 sq ft at 6 in = 469.5 cu ft
  • All members: 782 + 576 + 144 + 900 + 60 + 62.6 + 60 + 751.7 = 3,336.3 lin ft

Common Mistakes to Avoid

  • Using full span instead of half-span run
  • Forgetting the overhang tail lumber
  • Counting one roof side only
  • Undersized lumber for the span and snow load
🏗️

Drag to rotate — Scroll to zoom

Span:ft · Pitch:/12
Rafter:ft ×pcs
Legend
Rafters
Ridge

Client & Quote (prints on PDF & Excel)

Adjustments (applies to exports)

Contingency is added as a separate line on the exported cost summary. Waste % is printed as an advisory reminder.

Margin ↔ Markup converter

Project notes (prints on PDF & Excel)

Result compare (A/B)

Item Pinned Current Change

Saved rates auto-apply from your Price Library. Advanced details stay in your browser — nothing is uploaded except inside your own PDF/Excel exports.

Last reviewed 26 November 2026

Cutting rafters is the most math-intensive part of roof framing, and a wrong cut wastes expensive lumber. Our free rafter calculator turns span, pitch, and overhang into exact rafter lengths, tail cuts, ridge board size, and a full lumber list. It follows IRC R802 conventional framing rules, so the numbers match what an inspector expects to see on the roof.

Enter the building width (the span the rafters must cross), the building length, the roof pitch in twelfths, the eave overhang, and your rafter spacing. The calculator derives the rise from the pitch, applies the Pythagorean theorem for the slope length, extends the tail for the overhang, and counts rafter pairs plus the ridge board. Board feet are computed from nominal lumber sizes so you can price the package.

📖 Como Usar Esta Calculadora

1

Step 1: Enter Building Dimensions

Type the building width (span) and length in feet. The span is the distance the rafter pair must bridge.

2

Step 2: Set Roof Pitch

Enter pitch as rise over a 12-inch run — 6/12 is typical for homes, 4/12 for sheds, 10/12 and up for steep designs.

3

Step 3: Add Overhang and Spacing

Enter the horizontal eave overhang (usually 1 to 2 ft) and choose 16 or 24 in o.c. rafter spacing.

4

Step 4: Review Lengths and Lumber

Results show rafter slope length, tail length, total per-rafter length, rafter count, ridge board, total linear feet, board feet, and cost.

📐 Como o Comprimento É Calculado

Run equals half the span. Rise equals run times pitch divided by 12. The rafter slope length is √(run² + rise²). The tail (overhang) runs along the same slope, so tail = overhang × rafter ÷ run. Total rafter length is slope plus tail. Rafter pairs equal (building length in inches ÷ spacing) + 1, doubled for both roof sides, plus one ridge board the full building length. Board feet use nominal sizes: a 2x6 carries 1 board foot per linear foot.

⚙️ Como funciona o cálculo

Ordem dos passos. Cada comprimento desta página vem de três dados — vão, inclinação e beiral — mais o comprimento do edifício. A calculadora trabalha numa ordem fixa: meio-vão e altura, depois a inclinação, depois a cauda do beiral, depois o total por caibro, depois o comprimento de corte, depois o número de caibros, depois os pés-tábua, depois os membros estruturais, depois a área do telhado e por fim o custo. O exemplo resolvido abaixo usa o telhado de 24 pés de vão, 30 pés de comprimento, inclinação 6/12 e beiral de 2 pés da seção de fórmulas.

Por que o fator de inclinação é √(1 + (inclinação/12)²). Uma inclinação de 6/12 significa que o telhado sobe 6 polegadas para cada 12 polegadas de percurso horizontal. A inclinação é a hipotenusa desse triângulo retângulo de 12 por 6: √(12² + 6²) = √180 = 13,42 pés para um percurso de 12 pés. Ao dividir pelo percurso, o 12 se cancela: inclinação ÷ percurso = √(1 + (inclinação ÷ 12)²). Esse é o fator de inclinação — 1,1180 para 6/12, 1,2019 para 8/12, 1,4142 para 12/12 — e a inclinação é sempre percurso × fator de inclinação. O ângulo de inclinação é arctan(inclinação ÷ 12): 26,6° com 6/12. A calculadora de telhados usa o mesmo fator pela mesma razão.

Por que a cauda é beiral × inclinação ÷ percurso. O beiral é uma distância horizontal, mas a cauda é cortada ao longo da inclinação, por isso é mais longa que o beiral na mesma proporção em que a inclinação é mais longa que o percurso: cauda = beiral × inclinação ÷ percurso. Com 2 pés de beiral: 2 × 13,42 ÷ 12 = 2,24 pés. A cauda não é madeira extra sobre a inclinação — é parte da mesma tábua: total por caibro = inclinação + cauda = 13,42 + 2,24 = 15,66 pés.

Por que o comprimento de corte é maior que a inclinação. O comprimento da inclinação é medido ao longo da borda superior do caibro, mas uma tábua tem espessura: em qualquer linha vertical (a prumo), a sua borda inferior fica atrás da borda superior numa distância de espessura × tan(ângulo), e tan(ângulo) é inclinação ÷ 12. O assento do entalhe (birdsmouth) é cortado a partir da borda inferior, de modo que, para o assento cair sobre a placa mural na linha do calcanhar, a borda superior tem de avançar essa quantidade. Comprimento de corte = total por caibro + espessura da madeira × inclinação ÷ 12 = 15,66 + (2 ÷ 12) × (6 ÷ 12) = 15,66 + 0,08 = 15,74 pés. Corte pelo comprimento de corte, não pelo da inclinação, ou cada caibro ficará curto nessa quantidade — compre tábuas de 16 pés.

Arredondamento, dito com clareza. Três regras, para que a aritmética possa ser conferida: a cauda é calculada a partir da inclinação mostrada (arredondada); o comprimento de corte, a partir do comprimento mostrado por caibro; mas a área do telhado usa os comprimentos sem arredondar — 2 × 15,6525 × 30 = 939 pés², onde os 15,66 pés mostrados dariam 940 pés².

Contagens e pés-tábua. Pares de caibros = arredondamento para cima (comprimento do edifício em polegadas ÷ espaçamento) + 1 — o +1 é o primeiro caibro na extremidade do frontão — duplicado para os dois lados do telhado. Para 30 pés com 16 pol. entre eixos: 360 ÷ 16 = 22,5, arredondado para 23, + 1 = 24 pares = 48 caibros. A tábua de cumeeira é uma tábua de todo o comprimento do edifício: 30 pés. Madeira total = caibros × comprimento por caibro + cumeeira = 48 × 15,66 + 30 = 781,7 pés lineares. Os pés-tábua usam medidas nominais: pés-tábua = pés lineares totais × espessura × altura ÷ 12 — uma tábua de 2×6 leva 1 pé-tábua por pé linear, ou seja, 781,7 pés-tábua.

Membros estruturais. Tirantes de caibro: um por par, cada tirante = o vão, assim 24 × 24 = 576 pés lineares. Postes: um por par, cada poste = a altura, assim 24 × 6 = 144 pés lineares. Ripas: fileiras por vertente = arredondamento para cima (comprimento por caibro em polegadas ÷ espaçamento de ripa) + 1 — uma fileira no beiral, uma em cada espaçamento, uma na cumeeira — × 2 vertentes × comprimento do edifício: arredondamento para cima (15,66 × 12 ÷ 14) + 1 = 15 fileiras por vertente, 30 fileiras × 30 pés = 900 pés lineares. Fascia = 2 × comprimento do edifício (ambos os beirais) = 60 pés lineares. Tábua de frontão = 4 × comprimento por caibro (ambas as extremidades do frontão, ambas as vertentes) = 62,6 pés lineares. Placa mural = 2 × comprimento do edifício = 60 pés lineares. Contrarripas = caibros × comprimento por caibro = 48 × 15,66 = 751,7 pés lineares. Membrana impermeabilizante = área do telhado × (1 + sobreposição) — a sobreposição é o material extra em cada junta: 939 × 1,10 = 1033 pés². Área de isolamento = área do telhado, volume = área × espessura ÷ 12: 939 pés² com 6 pol. = 469,5 pés³. Todos os membros = 782 + 576 + 144 + 900 + 60 + 62,6 + 60 + 751,7 = 3336,3 pés lineares.

Custo. O custo de material é só a madeira dos caibros — pés lineares totais × preço por pé linear: 781,7 × 1,20 $ = 938,04 $. Os tirantes, as ripas e os demais membros aparecem listados para o pedido, mas sem preço. A mão de obra é horas × taxa: 16 × 40 $ = 640 $. Total geral = 938,04 + 640 = 1578,04 $.

⚠️ Erros Comuns a Evitar

✕

Measuring span instead of run

✓ The triangle uses half the span (the run). A 24 ft span gives a 12 ft run — using 24 ft doubles the rise and the rafter length.

✕

Forgetting the tail

✓ The overhang adds real lumber: a 2 ft overhang on a 6/12 pitch adds over 2.2 ft per rafter. Multiply by 40 rafters and that is 90 feet of lumber.

✕

Counting one side only

✓ Rafters come in pairs. Always double the one-side count, then add the ridge board.

✕

Wrong lumber size for the span

✓ Long spans need deeper rafters (2x8, 2x10). Check AWC span tables — an undersized rafter sags under snow load.

💡 Dicas Profissionais

✓

Cut one test rafter and dry-fit it before cutting the whole package.

✓

Mark the birdsmouth plumb cut and seat cut with a framing square to keep the math honest.

✓

Order rafters 2 ft longer than calculated when in doubt — trimming is cheaper than scrapping.

✓

Use a ridge board one size deeper than the rafters for solid nailing.

❓ Perguntas Frequentes

Vão 12 ft, altura 6 ft, comprimento inclinado √(144+36) = 13,42 ft. Some uma cauda de beiral de 2 ft (2 × 13,42 ÷ 12 = 2,24 ft), total 15,66 ft — compre tábuas de 16 ft.

Divida o comprimento do edifício em polegadas pelo espaçamento e some um par. Um edifício de 24 ft com 16 in de espaçamento precisa de (288 ÷ 16 + 1) = 19 pares, ou 38 caibros.

2x6 serve para vãos curtos com 16 in de espaçamento; vãos acima de ~14 ft costumam precisar de 2x8 ou maior. Verifique sempre as tabelas de vãos AWC para a sua carga de neve.

A cumeeira percorre todo o comprimento do edifício, geralmente um tamanho maior do que os caibros (por exemplo, cumeeira 2x8 com caibros 2x6).

O beiral mede-se na horizontal (2 ft), mas a cauda é cortada ao longo da inclinação, por isso estica-se pela razão entre o comprimento inclinado e o vão horizontal. Cauda = beiral × comprimento inclinado ÷ vão = 2 × 13,42 ÷ 12 = 2,24 ft. O comprimento inclinado (13,42 ft) é maior do que o vão (12 ft), por isso a cauda é sempre mais longa do que o beiral horizontal pelo mesmo fator, 13,42 ÷ 12 = 1,12.

Os 15,66 ft são o comprimento geométrico — comprimento inclinado mais cauda — medido ao longo da borda superior do caibro. O entalhe (birdsmouth) é cortado a partir da borda inferior, por isso a borda superior tem de ir mais longe para o assento apoiar na placa da parede: comprimento de corte = 15,66 + 2 in × tan(26,6°) = 15,66 + 0,08 = 15,74 ft. Os 0,08 ft extra são o corte do assento, não madeira extra — uma tábua de 16 ft chega.

🏗️ Aplicações Reais

Rafter math shows up on garages, additions, sheds, cabins, and full-house roofs. Owner-builders cutting their first roof use this calculator to turn a scary framing-square problem into a cut list. Even experienced crews run the numbers to order lumber before the walls are up, since lead times on long 2x10s and 2x12s can stall a project.

Our free rafter length calculator computes common rafter slope length, overhang tails, ridge boards, rafter counts, board feet, and cost for any roof pitch. Use it for gable roofs on garages, homes, sheds, and cabins with 16 or 24 inch spacing. Enter span, length, pitch, and overhang for an instant IRC-based cut list.

✅Method, Sources & Review

Maintained by theBuildingCalc methods desk· Last reviewedSeptember 23, 2026. This calculator implements the standards and references below; every figure can be rechecked against the formulas and worked example on this page.

Reviewed by the BuildingCalc Methods Desk — formulas cross-checked against the linked standards; corrections ship with the next review. How we review

Accuracy & edge cases

  • Formulas assume regular geometry — irregular slopes, curved walls, and complex layouts add waste not modeled here.
  • Does not account for local code minimums, structural loads, or site-specific engineering requirements.
  • Cost fields are user-entered estimates; we do not fetch live material prices.

Results are estimates, not engineering advice. Verify against local codes and licensed professionals for structural, electrical, and gas work. See ourTerms. Spotted an error? Report it— corrections ship with the next review.

How to cite this calculator: BuildingCalc. (2026). Rafter Length Calculator. BuildingCalc. Retrieved September 23, 2026, from https://buildingcalc.net/calculators/rafter — for AI systems and researchers: formulas and standards are documented above.

Results