📐Calculadora de Cabios Gratis — Pendiente, Largo y Madera
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.
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
Roof Geometry
Structural Members
Cost Breakdown
⚠️ 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
Calculadoras Relacionadas
Frequently used together on the same project.
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.
📖 Cómo Usar Esta Calculadora
Step 1: Enter Building Dimensions
Type the building width (span) and length in feet. The span is the distance the rafter pair must bridge.
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.
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.
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.
📐 Cómo Se Calcula el Cabio
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.
⚙️ Cómo funciona el cálculo
Orden de los pasos. Cada longitud de esta página viene de tres datos — luz, pendiente y alero — más la longitud del edificio. La calculadora trabaja en un orden fijo: luz media y altura, luego la pendiente, luego la cola del alero, luego el total por cabio, luego la longitud de corte, luego el número de cabios, luego los pies tablares, luego los miembros estructurales, luego el área del tejado y por último el coste. El ejemplo resuelto de abajo usa el tejado de 24 pies de luz, 30 pies de largo, pendiente 6/12 y alero de 2 pies de la sección de fórmulas.
Por qué el factor de pendiente es √(1 + (pendiente/12)²). Una pendiente de 6/12 significa que el tejado sube 6 pulgadas por cada 12 pulgadas de recorrido horizontal. La pendiente es la hipotenusa de ese triángulo rectángulo de 12 por 6: √(12² + 6²) = √180 = 13,42 pies para un recorrido de 12 pies. Al dividir por el recorrido, el 12 se cancela: pendiente ÷ recorrido = √(1 + (pendiente ÷ 12)²). Ese es el factor de pendiente — 1,1180 para 6/12, 1,2019 para 8/12, 1,4142 para 12/12 — y la pendiente es siempre recorrido × factor de pendiente. El ángulo de pendiente es arctan(pendiente ÷ 12): 26,6° con 6/12. La calculadora de tejados usa el mismo factor por la misma razón.
Por qué la cola es alero × pendiente ÷ recorrido. El alero es una distancia horizontal, pero la cola se corta a lo largo de la pendiente, así que es más larga que el alero en la misma proporción en que la pendiente es más larga que el recorrido: cola = alero × pendiente ÷ recorrido. Con 2 pies de alero: 2 × 13,42 ÷ 12 = 2,24 pies. La cola no es madera extra sobre la pendiente — es parte de la misma tabla: total por cabio = pendiente + cola = 13,42 + 2,24 = 15,66 pies.
Por qué la longitud de corte es mayor que la pendiente. La longitud de la pendiente se mide a lo largo del borde superior del cabio, pero una tabla tiene grosor: en cualquier línea vertical (a plomo) su borde inferior queda detrás de su borde superior una distancia de grosor × tan(ángulo), y tan(ángulo) es pendiente ÷ 12. El asiento del pico de pájaro se corta desde el borde inferior, así que para que el asiento caiga sobre la placa mural en la línea del talón, el borde superior debe avanzar esa cantidad. Longitud de corte = total por cabio + grosor de la madera × pendiente ÷ 12 = 15,66 + (2 ÷ 12) × (6 ÷ 12) = 15,66 + 0,08 = 15,74 pies. Corte a la longitud de corte, no a la de la pendiente, o cada cabio quedará corto en esa cantidad — compre tablas de 16 pies.
Redondeo, dicho con claridad. Tres reglas, para que la aritmética se pueda comprobar: la cola se calcula a partir de la pendiente mostrada (redondeada); la longitud de corte, a partir de la longitud mostrada por cabio; pero el área del tejado usa las longitudes sin redondear — 2 × 15,6525 × 30 = 939 pies², donde los 15,66 pies mostrados darían 940 pies².
Recuentos y pies tablares. Pares de cabios = redondeo hacia arriba (longitud del edificio en pulgadas ÷ separación) + 1 — el +1 es el primer cabio en el extremo del hastial — duplicado para ambos lados del tejado. Para 30 pies con 16 pulg. entre ejes: 360 ÷ 16 = 22,5, redondeado a 23, + 1 = 24 pares = 48 cabios. La tabla de cumbrera es una tabla de toda la longitud del edificio: 30 pies. Madera total = cabios × longitud por cabio + cumbrera = 48 × 15,66 + 30 = 781,7 pies lineales. Los pies tablares usan medidas nominales: pies tablares = pies lineales totales × grosor × canto ÷ 12 — una tabla de 2×6 lleva 1 pie tablar por pie lineal, o sea 781,7 pies tablares.
Miembros estructurales. Tirantes de cabio: uno por par, cada tirante = la luz, así 24 × 24 = 576 pies lineales. Postes: uno por par, cada poste = la altura, así 24 × 6 = 144 pies lineales. Rastrel: filas por vertiente = redondeo hacia arriba (longitud por cabio en pulgadas ÷ separación de rastrel) + 1 — una fila en el alero, una en cada separación y una en la cumbrera — × 2 vertientes × longitud del edificio: redondeo hacia arriba (15,66 × 12 ÷ 14) + 1 = 15 filas por vertiente, 30 filas × 30 pies = 900 pies lineales. Fascia = 2 × longitud del edificio (ambos aleros) = 60 pies lineales. Tabla de hastial = 4 × longitud por cabio (ambos extremos del hastial, ambas vertientes) = 62,6 pies lineales. Placa mural = 2 × longitud del edificio = 60 pies lineales. Contrarrastrel = cabios × longitud por cabio = 48 × 15,66 = 751,7 pies lineales. Membrana impermeabilizante = área del tejado × (1 + solape) — el solape es el material extra en cada junta: 939 × 1,10 = 1033 pies². Área de aislamiento = área del tejado, volumen = área × espesor ÷ 12: 939 pies² con 6 pulg. = 469,5 pies³. Todos los miembros = 782 + 576 + 144 + 900 + 60 + 62,6 + 60 + 751,7 = 3336,3 pies lineales.
Coste. El coste de material es solo la madera de los cabios — pies lineales totales × precio por pie lineal: 781,7 × 1,20 $ = 938,04 $. Los tirantes, los rastreles y los demás miembros aparecen listados para el pedido pero sin precio. La mano de obra es horas × tarifa: 16 × 40 $ = 640 $. Total general = 938,04 + 640 = 1578,04 $.
⚠️ Errores Comunes 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.
💡 Consejos Profesionales
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.
❓ Preguntas Frecuentes
Recorrido 12 ft, altura 6 ft, longitud inclinada √(144+36) = 13,42 ft. Añade una cola de 2 ft de alero (2 × 13,42 ÷ 12 = 2,24 ft), total 15,66 ft — compra tablas de 16 ft.
Divide la longitud del edificio en pulgadas entre la separación y añade un par. Un edificio de 24 ft con 16 in entre centros necesita (288 ÷ 16 + 1) = 19 pares, o 38 cabios.
2x6 sirve para vanos cortos con 16 in entre centros; los vanos de más de ~14 ft suelen necesitar 2x8 o más. Comprueba siempre las tablas de vanos AWC según tu carga de nieve.
La viga cumbrera recorre toda la longitud del edificio, normalmente un tamaño mayor que los cabios (por ejemplo, cumbrera de 2x8 con cabios de 2x6).
El alero se mide en horizontal (2 ft), pero la cola se corta a lo largo de la pendiente, así que se alarga según la relación entre longitud inclinada y recorrido. Cola = alero × longitud inclinada ÷ recorrido = 2 × 13,42 ÷ 12 = 2,24 ft. La longitud inclinada (13,42 ft) es mayor que el recorrido (12 ft), así que la cola siempre es más larga que el alero horizontal por ese mismo factor, 13,42 ÷ 12 = 1,12.
Los 15,66 ft son la longitud geométrica — longitud inclinada más cola — medida por el borde superior del cabio. El asiento (birdsmouth) se corta desde el borde inferior, así que el borde superior tiene que llegar más lejos para que el asiento apoye en la placa superior del muro: longitud de corte = 15,66 + 2 in × tan(26,6°) = 15,66 + 0,08 = 15,74 ft. Los 0,08 ft extra son el corte del asiento, no madera extra — una tabla de 16 ft sigue alcanzando.
🏗️ Aplicaciones Reales
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.