# Attic Ventilation & Insulation Calculator (IRC, IECC) (`jumblemog/attic-ventilation-calculator`) Actor

How much attic ventilation and insulation a house needs, from plain text: the IRC net free vent area, how many ridge, box, turbine or soffit vents (or a power fan's cfm), and the R-value for the climate zone with the depth and bags of insulation to add.

- **URL**: https://apify.com/jumblemog/attic-ventilation-calculator.md
- **Developed by:** [Jumble Mog](https://apify.com/jumblemog) (community)
- **Categories:** AI, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Attic Ventilation & Insulation Calculator (IRC, IECC)

**Work out how much attic ventilation and insulation a house needs, or check what's there, from one line of text.** Ask `attic 40 x 30 ft in Columbus, Ohio, ridge vent and soffit vents, 4 inches of old fiberglass` and you get back:

- **The vent area** the International Residential Code asks for (1 ft² of net free area per 150 ft² of attic floor, or 1/300 with balanced high and low vents), split between intake and exhaust.
- **How many vents that takes**: feet of ridge vent or continuous soffit vent, or the number of box vents, turbines, gable vents or 16x8, 16x4 or round soffit vents, checked against the ridge and eave lengths; or a power fan's airflow and the intake it needs.
- **A check of what you have**: say `3 box vents` or `40 ft of ridge vent` and it tells you whether it's enough.
- **The insulation R-value** for the attic floor in your IECC climate zone (from the zone or a US place), what your existing insulation gives, and the depth, pounds and bags of blown cellulose, fiberglass or rock wool, or the batts, to add.
- **Charts** (vent area needed and given, insulation now and after) and a **Markdown report**.

It's made for:

- Homeowners planning an attic upgrade or a reroof.
- Roofers, insulation contractors, home inspectors and energy auditors.
- AI agents, quoting tools and home-improvement apps that need attic numbers they can show their work for.

![A chart made by this Actor for a 1,200 ft² attic in Columbus, Ohio: 576 in² of intake needed and given by 64 ft of continuous soffit vent, 576 in² of exhaust given by 32 ft of ridge vent, and the insulation going from R-10 now to R-60 with blown cellulose added, against the zone 5 target](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/attic-ventilation-calculator-example.png?signature=1eViOPb5k11Fxmf1qc7DY)

### How to use it

1. Write **Requests**, one per entry. The form has examples.
2. Optionally set the **vent ratio**, the **climate zone** and the **insulation to add**.
3. Click **Start**. Each request is a row in the results, with its summary, chart and report.

#### What you can write

| You write | It means |
|---|---|
| `1,500 sq ft attic`, `40 x 30 ft`, `110 m2`, `hip roof` | The attic floor (and the roof shape for the ridge and eave lengths) |
| `1/150` (default), `1/300`, `vapor barrier` | The vent rule |
| `ridge vent`, `box vents`, `turbines`, `14 in turbine`, `gable vents`, `power fan`, `solar attic fan` | The exhaust |
| `soffit vents`, `vented soffit`, `16x8 soffit vents`, `round soffit vents`, `drip edge vents` | The intake |
| `3 box vents`, `40 ft of ridge vent`, `12 16x8 soffit vents`, `60 ft of soffit vent` | What you have, to check |
| `ridge vent 12.5 sq in per ft`, `box vents 61 sq in` | Your product's net free area |
| `zone 5`, `in Columbus, Ohio`, `lat 41.08 lon -81.52` | The climate zone for insulation |
| `4 inches of old fiberglass`, `6 in of cellulose`, `R-19 batts now`, `no insulation` | What's there |
| `blown cellulose` (default), `blown fiberglass`, `batts`, `to R-49`, `25 lb bags` | What to add |

The same as an object: `{"length": 50, "width": 28, "exhaust": "ridge", "intake": "soffit", "zone": 4, "existingDepth": 6, "existingMaterial": "cellulose"}`.

### Examples

- `attic 40 x 30 ft in Columbus, Ohio, ridge vent and soffit vents, 4 inches of old fiberglass` → 1,152 in² of vent area: 32 ft of ridge vent and 64 ft of continuous soffit vent; zone 5 wants R-60, so add 14.3 in of blown cellulose (about 92 bags of 25 lb).
- `attic ventilation for a 1,500 sq ft attic, 3 box vents, 6 16x8 soffit vents` → 1,440 in² needed: 15 box vents and 13 soffit vents; your 150 in² of exhaust and 336 in² of intake aren't enough.
- `how much blown fiberglass for a 1,200 sq ft attic in zone 6, R-19 batts now` → add R-41: 16.4 in, about 36 bags.
- `attic fan for a 2,000 sq ft attic, dark shingles` → a 1,610 cfm fan with 960 in² of intake.
- `insulation for a 1,000 sq ft attic in Miami, no insulation, batts` → zone 1, R-30 batts.

### How-to examples

These are examples from **Examples** above, written as complete inputs; the result lines are from their runs.

#### How to calculate attic vent area

```json
{"requests": ["attic 40 x 30 ft in Columbus, Ohio, ridge vent and soffit vents, 4 inches of old fiberglass"]}
```

Result: 1,152 in² of vent area: 32 ft of ridge vent and 64 ft of continuous soffit vent; zone 5 wants R-60, so add 14.3 in of blown cellulose (about 92 bags of 25 lb).

#### How to check whether existing attic vents are enough

```json
{"requests": ["attic ventilation for a 1,500 sq ft attic, 3 box vents, 6 16x8 soffit vents"]}
```

Result: 1,440 in² needed: 15 box vents and 13 soffit vents; your 150 in² of exhaust and 336 in² of intake aren't enough.

#### How to calculate blown insulation for an attic

```json
{"requests": ["how much blown fiberglass for a 1,200 sq ft attic in zone 6, R-19 batts now"]}
```

Result: Add R-41: 16.4 in, about 36 bags.

#### How to let an AI agent size attic vents and insulation

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/attic-ventilation-calculator`. The agent writes the attic and where it is ("40 x 30 ft in Columbus, Ohio, 4 inches of old fiberglass") and passes on the vent counts, target R-value and bags of insulation instead of guessing them.

### FAQ

**What does it calculate?** Net free vent area split between intake and exhaust, vent counts, attic fan size, and the insulation to add for your climate zone.

**Which ventilation ratio does it use?** 1/150 by default; set `ratio` to 1/300 where your code allows it.

**How does it know my climate zone?** From the state or city in the request, or the `zone` field. Give your county's zone if it differs.

**Can I mix a ridge vent with box vents?** Don't: different exhaust types on one attic short-circuit each other.

**How many can I run at once?** Up to 200 attics per run, each as a line of text or an object. A request that can't be computed isn't billed.

**Does it work with Zapier, Make or n8n?** Yes. Call the Actor with its Apify app or an HTTP request and pass the results on.

### Input

| Field | What it is |
|---|---|
| `requests` | Attics as lines of text or objects (up to 200 per run) |
| `ratio` | 1/150 or 1/300 when a request doesn't say (1/150 by default) |
| `zone` | The IECC climate zone when a request gives no zone or place |
| `addMaterial` | Insulation to add when a request doesn't say (blown cellulose by default) |
| `charts` | Draw a chart for each request (default on) |

### Output

One dataset item per request, also saved together in the run's `OUTPUT` record:

```json
{
  "request": 1, "status": "ok", "type": "attic", "title": "Ventilation and insulation for a 1,200 ft² attic in Columbus, OH",
  "summary": "1,200 ft² attic in Columbus, OH (zone 5): 1,152 in² of vent area (1/150): 32 ft of ridge vent for 576 in² of exhaust and 64 ft of continuous soffit vent for 576 in² of intake; add 14.3 in of blown cellulose (R-50, about 92 bags) to reach R-60.",
  "attic": {"floorArea": 1200, "length": 40, "width": 30, "shape": "gable", "climateZone": 5, "zoneSource": "OH (state)"},
  "ventilation": {"ratio": "1/150", "totalNfa": 1152, "totalNfaFt2": 8, "intakeNfa": 576, "exhaustNfa": 576, "ridgeLength": 40, "eaveLength": 80},
  "exhaust": {"product": "ridge vent", "nfaEach": 18, "perFoot": true, "needed": 32, "unit": "ft", "available": 39, "nfa": 576},
  "intake": {"product": "continuous soffit vent", "nfaEach": 9, "perFoot": true, "needed": 64, "unit": "ft", "available": 80, "nfa": 576},
  "insulation": {"zone": 5, "targetR": 60, "existing": {"r": 10, "depth": 4, "material": "fiberglass"}, "addR": 50, "material": "blown cellulose", "depth": 14.3, "totalDepth": 18.3, "pounds": 2286, "bagWeight": 25, "bags": 92},
  "units": {"area": "ft²", "ventArea": "in²", "length": "ft", "depth": "in", "weight": "lb", "airflow": "cfm"}
}
```

A request about only ventilation or only insulation leaves the other part `null`. Every item has `place`, `warnings`, `notes` (every assumption and default), a Markdown `report` and links to the chart and report. A request that can't be computed has `"status": "failed"` and the reason in `error`, and isn't billed.

### How it works

1. **Vent area** (IRC R806.2): attic floor ÷ 150 ft² of net free area, or ÷ 300 when 40-50% of it is high (within 3 ft of the ridge) and the rest at the eaves, or with a vapor retarder in climate zones 6-8. Half intake, half exhaust; intake should never be less than exhaust.
2. **Vents**: area ÷ the product's net free area. Typical values: ridge vent 18 in²/ft, continuous soffit vent 9 in²/ft, vented soffit panel 6 in²/ft, box vent 50 in², 12 in turbine 112 in², 14 in turbine 154 in², gable vent 72 in², 16x8 soffit vent 56 in², 16x4 26 in², 4 in round 7 in². The ridge vent stops 6 in short of each end; a hip roof's ridge is its length less its width.
3. **Power fan**: 0.7 cfm per ft² of attic floor, 15% more under a dark roof, with 1 ft² of intake per 300 cfm.
4. **Insulation**: IECC 2021 Table R402.1.3 ceiling R-values (zone 1 R-30, zones 2-3 R-49, zones 4-8 R-60). Zones come from the dominant zone of the place's state. Existing insulation at R-2.5 per inch for loose fiberglass, 3.5 for cellulose, 3.2 for batts, 3.0 for rock wool. Blown insulation at its settled density (cellulose 1.6 lb/ft³, fiberglass 0.6, rock wool 1.7); batts in one or two standard layers.

### Pricing

You pay one low price per attic, at the price shown on this page, whether it's ventilation, insulation or both. The charts and report are included. Requests that can't be computed are never charged. If you set a maximum cost per run, the Actor stops before a request that wouldn't fit.

### Speed

A request takes milliseconds. A run through the API answers in about 10 seconds, including the cloud container starting.

### Tips and limits

- **Product ratings win**: net free areas vary by brand; use the one printed on yours.
- **Don't mix exhaust types** (a ridge vent with box vents, gable vents or a power fan) on one attic: they short-circuit each other.
- **Bag coverage charts** are the final word on blown insulation; blow a little deeper for settling, and keep it off soffit vents with baffles.
- **Vermiculite** may contain asbestos: have it tested before disturbing it.
- **Limits**: 200 requests per run; zones by state, so give your county's zone if it differs.

### For AI agents and developers

This Actor works with the [Apify MCP server](https://mcp.apify.com), so AI agents can call it as a tool. Pass `requests` as plain text and read `summary`, `exhaust`, `intake`, `insulation` and `warnings`. A direct API call that waits for the answer:

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~attic-ventilation-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["attic 48 x 26 ft in Raleigh, North Carolina, ridge vent and soffit vents, 3 inches of fiberglass"]}'
```

`run-sync` instead returns the run's `OUTPUT`: the status, the counts and every result as JSON.

In Python, with the `apify-client` package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("jumblemog/attic-ventilation-calculator").call(run_input={
    "requests": [{"floorArea": 1600, "exhaust": "box", "exhaustCount": 4, "intake": "16x8", "intakeCount": 8}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Rules: the International Residential Code (R806.2) and International Energy Conservation Code 2021 (Table R402.1.3), as published by the ICC.
- Places: [GeoNames](https://www.geonames.org/) (CC BY 4.0) through geonamescache.
- Charts: [Vega-Lite](https://vega.github.io/vega-lite/) and [vl-convert](https://github.com/vega/vl-convert) (BSD-3-Clause), with the [Inter](https://rsms.me/inter/) font (SIL Open Font License).

# Actor input Schema

## `requests` (type: `array`):

One request per entry, as a line of text or an object. The attic: floor area or size ('1,500 sq ft attic', '40 x 30 ft'), gable or hip. Ventilation: '1/150' (default) or '1/300', the exhaust (ridge vent, box vents, turbines, gable vents, a power fan) and intake (continuous soffit vent, vented soffit, 16x8 or round soffit vents, drip edge vents); to check what you have: '3 box vents', '40 ft of ridge vent', '12 soffit vents'; your product's rating: 'ridge vent 12.5 sq in per ft'. Insulation: the climate zone ('zone 5') or a US place ('in Columbus, Ohio'), what's there ('4 inches of fiberglass', 'R-19 batts now', 'no insulation'), what to add (blown cellulose by default, blown fiberglass, batts), 'to R-49', '25 lb bags'. Object fields: floorArea, length, width, shape, ratio, vaporRetarder, exhaust, intake, exhaustCount, intakeCount, ridgeVentLength, intakeLength, exhaustNfa, intakeNfa, darkRoof, zone, place, lat, lon, existingDepth, existingMaterial, existingR, addMaterial, targetR, bagWeight, type (vent, insulation, attic), title, text.

## `ratio` (type: `string`):

Net free vent area per attic floor area when a request doesn't say (1/150 by default).

## `zone` (type: `integer`):

IECC climate zone for insulation when a request gives no zone or place.

## `addMaterial` (type: `string`):

What to add when a request doesn't say (blown cellulose by default).

## `charts` (type: `boolean`):

Vent area needed against what the vents give, and the insulation against the target R-value.

## Actor input object example

```json
{
  "requests": [
    "attic 40 x 30 ft in Columbus, Ohio, ridge vent and soffit vents, 4 inches of old fiberglass",
    "attic ventilation for a 1,500 sq ft attic, 3 box vents, 6 16x8 soffit vents",
    "how much blown fiberglass for a 1,200 sq ft attic in zone 6, R-19 batts now",
    "attic fan for a 2,000 sq ft attic, dark shingles",
    "1,800 sq ft attic, 1/300, 40 ft of ridge vent, 60 ft of soffit vent",
    "insulation for a 1,000 sq ft attic in Miami, no insulation, batts",
    {
      "length": 50,
      "width": 28,
      "shape": "gable",
      "exhaust": "ridge",
      "intake": "soffit",
      "zone": 4,
      "existingDepth": 6,
      "existingMaterial": "cellulose"
    }
  ],
  "charts": true
}
```

# Actor output Schema

## `results` (type: `string`):

One row per request: the summary and chart.

## `output` (type: `string`):

The OUTPUT record: every result in one JSON object.

## `files` (type: `string`):

Charts (PNG and SVG) and Markdown reports in the run's key-value store.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "requests": [
        "attic 40 x 30 ft in Columbus, Ohio, ridge vent and soffit vents, 4 inches of old fiberglass",
        "attic ventilation for a 1,500 sq ft attic, 3 box vents, 6 16x8 soffit vents",
        "how much blown fiberglass for a 1,200 sq ft attic in zone 6, R-19 batts now",
        "attic fan for a 2,000 sq ft attic, dark shingles",
        "1,800 sq ft attic, 1/300, 40 ft of ridge vent, 60 ft of soffit vent",
        "insulation for a 1,000 sq ft attic in Miami, no insulation, batts",
        {
            "length": 50,
            "width": 28,
            "shape": "gable",
            "exhaust": "ridge",
            "intake": "soffit",
            "zone": 4,
            "existingDepth": 6,
            "existingMaterial": "cellulose"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/attic-ventilation-calculator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "requests": [
        "attic 40 x 30 ft in Columbus, Ohio, ridge vent and soffit vents, 4 inches of old fiberglass",
        "attic ventilation for a 1,500 sq ft attic, 3 box vents, 6 16x8 soffit vents",
        "how much blown fiberglass for a 1,200 sq ft attic in zone 6, R-19 batts now",
        "attic fan for a 2,000 sq ft attic, dark shingles",
        "1,800 sq ft attic, 1/300, 40 ft of ridge vent, 60 ft of soffit vent",
        "insulation for a 1,000 sq ft attic in Miami, no insulation, batts",
        {
            "length": 50,
            "width": 28,
            "shape": "gable",
            "exhaust": "ridge",
            "intake": "soffit",
            "zone": 4,
            "existingDepth": 6,
            "existingMaterial": "cellulose",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/attic-ventilation-calculator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "requests": [
    "attic 40 x 30 ft in Columbus, Ohio, ridge vent and soffit vents, 4 inches of old fiberglass",
    "attic ventilation for a 1,500 sq ft attic, 3 box vents, 6 16x8 soffit vents",
    "how much blown fiberglass for a 1,200 sq ft attic in zone 6, R-19 batts now",
    "attic fan for a 2,000 sq ft attic, dark shingles",
    "1,800 sq ft attic, 1/300, 40 ft of ridge vent, 60 ft of soffit vent",
    "insulation for a 1,000 sq ft attic in Miami, no insulation, batts",
    {
      "length": 50,
      "width": 28,
      "shape": "gable",
      "exhaust": "ridge",
      "intake": "soffit",
      "zone": 4,
      "existingDepth": 6,
      "existingMaterial": "cellulose"
    }
  ]
}' |
apify call jumblemog/attic-ventilation-calculator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jumblemog/attic-ventilation-calculator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/l0xdeh0enYGXjgepG/builds/rBMlUuZJUFRohwRYZ/openapi.json
