Insulation calculator
calculate_insulationUse this when someone asks how much insulation an attic, walls or a floor needs, which R-value, or how many batts or bags of blown-in insulation. Calculates the insulation for an attic, outside walls or a floor. The area is length × width, or for walls length × height less the doors (36 × 80 in) and windows (36 × 60 in) unless given. The target is the US R-value of the climate zone from the 2021 IECC Table R402.1.3, as ENERGY STAR repeats it: attic R-30 (zone 1), R-49 (2, 3), R-60 (4 to 8); floor R-13 (1, 2), R-19 (3, 4), R-30 (5 and 4C, 6), R-38 (7, 8); wall cavity R-13 (1, 2), R-20 (3), R-20 plus R-5 continuous insulation (4 to 8, returned as ci). In an attic the R-value to add is the target less the existing R-value. Batts (Owens Corning EcoTouch sizes and packages): the batt area is the area × batt width ÷ framing spacing, because batts fill only the bays between studs or joists; one layer for walls and floors, and in an attic as many layers as the R-value to add needs, the bottom one between the joists on a bare floor and the others over the whole floor; the result gives pieces and packages, rounded up. Blown-in (attic only): the chart row of the bag at or above the R-value to add, with the least installed thickness and the bags (area ÷ coverage a bag, rounded up); fiberglass is Owens Corning AttiCat (R-13 to R-60), cellulose Greenfiber Sanctuary (R-11 to R-60). It also returns the R-value when done and whether it reaches the target. Lengths are in millimeters, areas in square meters, R-values in US units (RSI = R × 0.1761102, NIST SP 811).
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": {
"place": "<place>",
"kind": "<kind>"
},
"name": "calculate_insulation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bag | No | Attic floor one bag covers at the R-value to add, in square meters, instead of the chart's. | |
| area | No | Area in square meters, used instead of the sizes; for walls, before the doors and windows. | |
| batt | No | Owens Corning EcoTouch batt or roll: r13, r15, r19, r21, r30, r38, r19roll, r30roll; the thinnest that reaches the target when left out. | |
| fill | No | fiberglass: Owens Corning AttiCat 27.5 lb bag; cellulose: Greenfiber Sanctuary 25 lb bag. fiberglass when left out. | |
| kind | Yes | batts: batts or rolls between the framing; blown: loose fill blown onto an attic floor (attic only). | |
| zone | No | US IECC climate zone whose R-value is the target: 1, 2, 3, 4 (4A and 4B), 5 (5 and marine 4C), 6, 7 (7 and 8). | |
| doors | No | Number of doors to leave out; none when left out. | |
| place | Yes | attic: the attic floor; walls: the outside walls; floor: a floor over a crawl space, garage or open air. | |
| width | No | Attic or floor width, in millimeters. | |
| height | No | Wall height, in millimeters. | |
| length | No | Attic or floor length, or the length of all walls, in millimeters. | |
| target | No | Target US R-value (°F·ft²·h/Btu), instead of the zone's; RSI = R × 0.1761. | |
| spacing | No | Studs or joists on center: 400 for 16 in, 600 for 24 in; 400 when left out. | |
| windows | No | Number of windows to leave out; none when left out. | |
| coverage | No | Area of batt one package holds, in square meters, as printed on it, instead of the batt's. | |
| existing | No | US R-value already in the attic; none when left out. | |
| doorWidth | No | Width of one door; 914.4 (36 in) when left out, in millimeters. | |
| doorHeight | No | Height of one door; 2032 (80 in) when left out, in millimeters. | |
| windowWidth | No | Width of one window; 914.4 (36 in) when left out, in millimeters. | |
| windowHeight | No | Height of one window; 1524 (60 in) when left out, in millimeters. |