Skip to content

How the calculator works

Every formula, assumption and source behind our numbers, so you can check the work yourself.

Units

All the math runs in SI units: R-values in m²·K/W, lengths in millimeters, areas in square meters. US inputs are converted on the way in and results are converted back for display:

R-values are shown rounded to the nearest whole number. Depths are shown to up to two decimal places below 10 in and one decimal place above that.

Targets

US targets are the levels DOE and ENERGY STAR recommend for existing homes. ENERGY STAR's table is based on Table R402.1.3 of the 2021 International Energy Conservation Code (IECC).

Climate zone Attic Walls Floors Basement walls
0–1 R-30 R-13 R-13 none
2 R-49 R-13 R-13 none
3 R-49 R-20 R-19 R-13
4 (except 4C) R-60 R-30 R-19 R-13
4C R-60 R-30 R-30 R-19
5–6 R-60 R-30 R-30 R-19
7–8 R-60 R-30 R-38 R-19

The same table, with a calculator, is on insulation R-values by climate zone.

ZIP code to climate zone

Climate zones are assigned by county in PNNL-33270, PNNL's guide to 2021 IECC zones. We match each ZIP code to its county using the Census Bureau's 2020 ZIP Code Tabulation Area (ZCTA) to county relationship file. The lookup is precomputed and served as small static files, so your browser asks our site only for the file covering the first three digits of your ZIP.

Existing insulation

If you enter a depth, we multiply it by ENERGY STAR's per-inch values for older insulation:

Material R per inch
Fiberglass batts 3.2
Loose fiberglass 2.5
Cellulose 3.7
Rock wool (loose) 2.8
Vermiculite 2.7

Choosing vermiculite triggers a warning: the EPA advises that it may contain asbestos and shouldn't be disturbed. You can also enter a known R-value directly. If what you have already meets the target, the calculator says so and stops.

The core formula

The waste allowance defaults to 10%. That's an editorial choice: it covers offcuts, uneven floors and spillage, and GreenFiber notes that actual coverage can vary by up to 10%. You can set anything from 0% to 50%.

For walls measured as a perimeter, the net area is perimeter × wall height minus 21 sq ft per door and 12 sq ft per window, the same deductions Benjamin Moore's paint calculator uses.

Batts and boards

Each product has a list of standard thicknesses, each with its labeled R-value, coverage per package and price. The calculator tries every combination of up to three layers and keeps those that reach the target. From those it picks:

  1. the fewest layers, then
  2. the thinnest total stack, then
  3. the fewest packages, then
  4. the lowest price.

Packages per layer = area to cover ÷ coverage per package, rounded up. If no combination reaches the target, for example because it won't fit in a wall cavity, the calculator shows the highest-R stack that fits and warns you.

Loose-fill

Blown cellulose and blown fiberglass use the manufacturers' coverage charts: GreenFiber SANCTUARY (Rev K, 25 lb bags) and Knauf EcoFill Wx (28.6 lb bags). Each chart row gives, for one R-value, the square feet per bag, the installed depth and the settled depth.

Show the math on every result says which method was used. The blown-in insulation calculator has a worked example of each.

Spray foam

Spray foam is sprayed to whatever depth is needed:

The installed prices come from HomeGuide's 2026 figures: $1.50–$3.50 per sq ft for open-cell at a typical 3.5 in, which works out to $0.43–$1.00 per board foot, and $3–$5 per sq ft for closed-cell at a typical 2 in, or $1.50–$2.50 per board foot. Because these are installed prices, no waste allowance is added. Minimum job fees of $1,000–$2,000 are common and aren't included.

Cavity depth limits

In walls, basement walls and sloped roofs, insulation that goes between the framing (batts and spray foam) can't be deeper than the cavity. You choose the framing size: 2×4 (3.5 in), 2×6 (5.5 in), 2×8 (7.25 in), 2×10 (9.25 in) or 2×12 (11.25 in). If you enter existing insulation by depth, the room left is the cavity depth minus that depth. Foam boards are treated as continuous insulation outside the cavity and aren't limited. When the target won't fit, the result shows what you'd reach and suggests adding continuous boards. The wall insulation calculator walks through an example.

Prices

Material prices are typical retail prices from Home Depot, Lowe's and Menards listings in October 2026, shown as a low–high range where they vary (for example, Menards loose-fill before and after rebate). They don't include tools, labor, delivery, sales tax or blower rental. You can enter your own price per package under More options.

Product data

Limitations

How the European sections differ

Our UK and German sections work from building regulations written as maximum U-values for the whole roof, wall or floor. There, the engine works out the insulation R needed as 1 ÷ target U, minus the surface resistances on each side and the R of the rest of the build-up. Where insulation sits between timber joists or rafters, it allows for heat flowing through the timber with a parallel-path method: the effective conductivity of that layer is (1 − f) × λ of the insulation + f × λ of timber, where f is the timber fraction and timber is taken as 0.13 W/m·K.

Checking our numbers

The engine is covered by automated tests. The worked examples on our pages are produced by the same engine through a command-line tool, so every quoted depth, bag count and price matches what the calculator shows. If you spot an error, email info@loftinsulationcalc.com.

Sources

Updated October 14, 2026