Roofing calculator
calculate_roofingUse this when someone asks how many squares or bundles of shingles, underlayment rolls or roofing nails a roof needs. Calculates asphalt shingle roofing for a gable, hip or shed roof over a rectangular building, or for a roof surface given by its area. Roof area: the plan with overhangs, (length + 2 × rake overhang) × (width + 2 × eaves overhang), times the slope factor √(1 + (rise/run)²); a hip roof has the eaves overhang all around and the same area as a gable roof of the same pitch. It returns the area, the area with waste (10 % gable and shed, 15 % hip unless given; GAF adds 10 %, Owens Corning and IKO 10 to 15 %), squares of 100 sq ft, bundles (33.33 sq ft each unless given, GAF), underlayment rolls (synthetic 10 squares, No. 15 felt 4, No. 30 felt 2; two layers below 4/12, IRC R905.2), the starter strip for the eaves and rakes (120 ft a bundle, GAF Pro-Start), the ridge and hip cap (ridge = longer side − shorter side on a hip roof; hips √(rafter² + run²) each; 25 ft a bundle, GAF Seal-A-Ridge), the drip edge for eaves and rakes in 10 ft pieces lapped 2 in (IRC R905.2.8.5), nails (320 a square with 4 nails a shingle, 480 with 6, Owens Corning), and whether the pitch reaches the 2/12 least for shingles (IRC R905.2). Give in12 or degrees. Lengths are in millimeters and areas in square meters (1 sq ft = 0.09290304 m²).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shape": "<shape>"
},
"name": "calculate_roofing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | Ridge and hip one bundle of cap shingles covers; 7620 (25 ft) when left out, in millimeters. | |
| area | No | Roof surface measured on the roof, in square meters, used instead of length and width. | |
| in12 | No | Pitch as rise per 12 of run, such as 6 for 6/12; give this or degrees. | |
| rake | No | Overhang at the gable ends or the sloping sides of a shed roof, in millimeters; the eaves overhang when left out. | |
| roll | No | Roof area one roll of underlayment covers, in square meters, instead of the chosen roll's. | |
| eaves | No | With area: length of all eaves, in millimeters; none when left out. | |
| nails | No | Nails in each shingle: 4, or 6 for high wind and mansards; 4 when left out. | |
| rakes | No | With area: length of all rakes, in millimeters; none when left out. | |
| shape | Yes | gable: two slopes from a ridge; hip: four slopes, the ridge along the longer side; shed: one slope across the width. | |
| waste | No | Percent added to shingles and underlayment; 10 for gable and shed, 15 for hip when left out. | |
| width | No | Width of the building across the slope, in millimeters. | |
| bundle | No | Roof area one bundle of shingles covers, in square meters; 3.0966 (33.33 sq ft, 3 bundles a square) when left out. | |
| length | No | Length of the building along the ridge, outside of wall to outside of wall, in millimeters. | |
| ridges | No | With area: length of all ridges and hips, in millimeters; none when left out. | |
| degrees | No | Pitch in degrees; give this or in12. | |
| starter | No | Eave and rake one bundle of starter strip covers; 36576 (120 ft) when left out, in millimeters. | |
| dripEdge | No | Length of one piece of drip edge; 3048 (10 ft) when left out, in millimeters. | |
| overhang | No | Overhang at the eaves, measured level from the wall, in millimeters; none when left out. | |
| starterRakes | No | Starter strip along the rakes as well as the eaves; true when left out. | |
| underlayment | No | synthetic: 10 squares a roll; felt15: No. 15 felt, 4 squares; felt30: No. 30 felt, 2 squares. synthetic when left out. |