# Gutter & Downspout Size Calculator (NOAA Rainfall) (`jumblemog/gutter-downspout-calculator`) Actor

What size gutters and how many downspouts a roof needs, from plain text: the design rainfall for the place from NOAA Atlas 14 (or yours), the roof's flow with a pitch allowance, gutter and downspout options and a plan of where they go, plus rainfall intensity tables.

- **URL**: https://apify.com/jumblemog/gutter-downspout-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

## Gutter & Downspout Size Calculator (NOAA Rainfall)

**Size the gutters and downspouts for a roof, or look up a US place's design rainfall, from one line of text.** Ask `gutters for a 40 x 30 ft house in Atlanta, Georgia, 6/12 pitch` or `rainfall intensity for Chicago, Illinois` and you get back:

- **The design rainfall** for the place from NOAA Atlas 14 (the 5-minute 10-year downpour gutters are usually sized for, the 100-year one for critical buildings, or the 1-hour 100-year rain the plumbing code uses), or your own figure.
- **The roof's flow** in gallons a minute, with a wind allowance for steep roofs.
- **The gutter size and the number of downspouts** for each eave (5 or 6 in K-style or half-round; 2x3, 3x4, 4x5 in or round downspouts), with every pairing compared and how full each runs.
- **A check of what you have**: say your gutter, downspout size and count and it tells you whether they're enough.
- **Rainfall intensity tables** (IDF) for durations of 5 minutes to 24 hours and return periods of 2 to 100 years.
- **Charts** (a roof plan with the gutters and downspouts, the options, or the IDF curves) and a **Markdown report**.

It's made for:

- Homeowners, roofers and gutter installers choosing gutter and downspout sizes.
- Architects, builders and inspectors who want the rain data and the arithmetic in one place.
- AI agents, quoting tools and home-improvement apps that need roof drainage numbers they can show their work for.

![A chart made by this Actor for a 2,400 ft² hip roof in Dallas, Texas: a 60 x 40 ft roof plan with blue gutters on all four eaves and six orange downspouts at the corners and middles of the long sides, and bars of the downspouts each gutter and downspout pairing needs at 8.4 in/h: 10 for 5 in K-style with 2x3, 6 for the recommended 5 in K-style with 3x4, 6 for the 6 in pairings](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/gutter-downspout-calculator-example.png?signature=1izz3hkA2W9FhcyorLkBJ)

### How to use it

1. Write **Requests**, one per entry. The form has examples.
2. Optionally set the **design storm** (return period) and the **gutter style**.
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 |
|---|---|
| `40 x 30 ft house`, `1,800 sq ft roof`, `150 m2 roof` | The roof's plan size or area, overhangs included |
| `gable` (default), `hip`, `porch`, `shed roof`, `lean-to`, `one side` | Which eaves carry gutters |
| `6/12`, `6:12 pitch`, `25 degree roof`, `flat roof` | The pitch |
| `140 ft of gutter`, `40 ft gutter` | Gutter length, for downspout spacing |
| `in Atlanta, Georgia`, `Tulsa, OK`, `33.75, -84.39` | A US place for NOAA rainfall |
| `100-year`, `25 year, 15 minute`, `plumbing code` | The design storm |
| `6 in/hr`, `150 mm/hr` | Your own design rainfall |
| `5 inch K-style gutter`, `6 in half round`, `1/8 in per ft` | A gutter to check, and its slope |
| `2x3`, `3x4`, `4 in round downspouts`, `3 downspouts` | Downspouts to check |
| `rainfall intensity for Chicago` | The place's intensity table |

The same as an object: `{"length": 50, "width": 32, "shape": "gable", "pitch": "4/12", "intensity": 6, "gutter": "6 in half-round"}`.

### Examples

- `gutters for a 40 x 30 ft house in Atlanta, Georgia, 6/12 pitch` → 7.76 in/h, 106 gpm: 5 in K-style gutters with a 3x4 in downspout at the end of each 40 ft eave.
- `2,400 sq ft hip roof in Dallas, Texas, 200 ft of gutter, 8/12` → 8.4 in/h, 230 gpm: 5 in K-style gutters with six 3x4 in downspouts (two on each 60 ft side, one on each 40 ft end).
- `gutters for a 60 x 30 ft roof in Miami, Florida, 100-year storm` → 15.8 in/h: 6 in K-style gutters with four 4x5 in downspouts.
- `800 sq ft porch roof, 40 ft gutter, 5 in/hr, 5 inch K-style gutter, 2 downspouts` → enough: the gutter runs 40% and the 2x3 in downspouts 62% full.
- `rainfall intensity for Chicago, Illinois` → 7.42 in/h for the 5-minute 10-year rain, 10.2 in/h for 100 years, 3.08 in/h for the plumbing code's 1-hour 100-year rain.

### How-to examples

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

#### How to size gutters and downspouts for a house

```json
{"requests": ["gutters for a 40 x 30 ft house in Atlanta, Georgia, 6/12 pitch"]}
```

Result: 7.76 in/h, 106 gpm: 5 in K-style gutters with a 3x4 in downspout at the end of each 40 ft eave.

#### How to check whether existing gutters are big enough

```json
{"requests": ["800 sq ft porch roof, 40 ft gutter, 5 in/hr, 5 inch K-style gutter, 2 downspouts"]}
```

Result: Enough: the gutter runs 40% and the 2x3 in downspouts 62% full.

#### How to look up design rainfall intensity for a city

```json
{"requests": ["rainfall intensity for Chicago, Illinois"]}
```

Result: 7.42 in/h for the 5-minute 10-year rain, 10.2 in/h for 100 years, 3.08 in/h for the plumbing code's 1-hour 100-year rain.

#### How to let an AI agent size gutters

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/gutter-downspout-calculator`. The agent writes the roof and the city ("40 x 30 ft house in Atlanta, Georgia, 6/12 pitch") and passes on the gutter size, downspout count and design rainfall instead of guessing them.

### FAQ

**Where does the rainfall come from?** NOAA Atlas 14, for the place in your request, at a 10-year return period unless you say otherwise.

**What if my place isn't covered?** Atlas 14 doesn't cover Washington, Oregon, Idaho, Montana, Wyoming or places outside the US yet. Give the design rainfall yourself, such as `5 in/hr`.

**Which gutters does it size?** 5 and 6 inch K-style or half-round gutters, with 2x3, 3x4 and 4x5 inch downspouts.

**Does it do flat roofs?** No. Flat roofs drain to roof drains and scuppers sized by the plumbing code.

**How many can I run at once?** Up to 200 roofs or places 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` | Roofs to size or places to look up, as lines of text or objects (up to 200 per run) |
| `returnPeriod` | The design storm's return period when a request doesn't say (10 years by default) |
| `gutterStyle` | K-style or half-round when a request doesn't say (K-style 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": "size", "title": "Gutters for a 1,200 ft² gable roof in Atlanta, GA",
  "summary": "1,200 ft² gable roof in Atlanta, GA at 7.76 in/h (5-minute 10-year NOAA rain): 106 gpm in the design storm; 5 in K-style gutters with 2 downspouts of 3x4 in (1 on the 40 ft front, 1 on the 40 ft back), each draining up to 829 ft² of roof.",
  "rain": {"intensity": 7.76, "source": "NOAA Atlas 14 Volume 9 Version 2 (Southeastern States), partial duration series", "duration": 5, "returnPeriod": 10},
  "roof": {"shape": "gable", "length": 40, "width": 30, "planArea": 1200, "pitch": 6, "pitchFactor": 1.1, "designArea": 1320, "gutterLength": 80, "gutterSlope": 0.0625},
  "flow": {"total": 106.4, "perEave": [53.2, 53.2]},
  "recommended": {"gutter": "5 in K-style", "downspout": "3x4 in", "downspouts": 2, "enough": true},
  "eaves": [{"eave": "front", "length": 40, "roofArea": 600, "flow": 53.2, "downspouts": 1, "spacing": 40}],
  "options": [{"gutter": "5 in K-style", "downspout": "2x3 in", "downspouts": 4, "spacingMinimum": 2, "roofPerDownspout": 414, "roofPerGutterRun": 647, "gutterUse": 46, "downspoutUse": 72, "enough": true}],
  "units": {"area": "ft²", "length": "ft", "rainfall": "in/h", "flow": "gpm"}
}
```

A rainfall lookup has `design` and `intensities` (in/h by duration and return period). 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. **Rainfall**: NOAA Atlas 14 partial-duration intensities from NOAA's Precipitation Frequency Data Server for the place's coordinates. Gutters are usually sized for the 5-minute 10-year rain (SMACNA); the International Plumbing Code sizes roof drains for the 1-hour 100-year rain.
2. **Design area** = plan area × a pitch factor for wind-driven rain: 1.00 up to 3/12, 1.05 to 5/12, 1.10 to 8/12, 1.20 to 11/12, 1.30 steeper. **Flow** = design area × in/h ÷ 96.23 gpm.
3. **Eaves**: a gable roof drains half to each long eave, a hip roof its trapezoid sides and triangle ends, a shed or porch roof one eave.
4. **Gutters**: IPC Table 1106.6 capacities for half-round gutters by slope (from 1/16 in/ft); 5 and 6 in K-style gutters take the trade table's 5,520 and 7,960 ft² at 1 in/h (the same as 7 and 8 in half-round). Each downspout takes an even share of its eave.
5. **Downspouts**: the gutter outlet as an orifice with 2 in of water over it, Q = 0.6 × A × √(2gh), about 590 ft²·in/h per in² of downspout, which is the usual 1 in² of downspout per 100 ft² of roof at 6 in/h. At least one downspout per 40 ft of gutter.
6. **Recommendation**: the smallest gutter and downspout that need no more downspouts than the 40 ft spacing, otherwise the pairing with the fewest.

### Pricing

You pay one low price per request, at the price shown on this page: a roof sizing and a rainfall lookup are each one event. 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 under a second, most of it the NOAA lookup. A run through the API answers in about 10 seconds, including the cloud container starting.

### Tips and limits

- **NOAA Atlas 14 covers most of the US** but not Washington, Oregon, Idaho, Montana or Wyoming yet, and no place outside the US: give the design rainfall there (`5 in/hr`).
- **Overflow**: valleys that dump onto one stretch of gutter, inside corners and long runs need a margin; a funnel outlet or a larger downspout helps.
- **Flat roofs** drain to roof drains and scuppers sized by the plumbing code; this treats one edge as a gutter.
- **Limits**: 200 requests per run; gutters 5 or 6 in, K-style or half-round.

### 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`, `recommended`, `eaves` and `warnings`. A direct API call that waits for the answer:

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~gutter-downspout-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["gutters for a 50 x 28 ft house in Charlotte, North Carolina, 7/12 pitch", "rainfall intensity for Houston, Texas"]}'
```

`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/gutter-downspout-calculator").call(run_input={
    "requests": [{"place": "Denver, Colorado", "length": 48, "width": 30, "shape": "hip", "pitch": "5/12"}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Rainfall: [NOAA Atlas 14](https://hdsc.nws.noaa.gov/pfds/) precipitation frequency estimates, NOAA National Weather Service Hydrometeorological Design Studies Center (public domain).
- 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 roof: plan size or area ('40 x 30 ft', '1,800 sq ft', overhangs included), shape (gable by default, hip, or a shed / porch / one side with one gutter), pitch ('6/12', '25 degrees'), gutter length ('140 ft of gutter'). The rain: a US place ('in Atlanta, Georgia', coordinates) for NOAA Atlas 14, '100-year', 'plumbing code' (1-hour 100-year), or your own '6 in/hr' / '150 mm/hr'. To check what you have: '5 inch K-style gutter', 'half round', '2x3' / '3x4' / '4 in round' downspouts, '3 downspouts', '1/8 in per ft' slope. 'rainfall intensity for Chicago' gives the place's intensity table. Object fields: place, lat, lon, roofArea, length, width, shape, pitch, intensity, returnPeriod, duration, gutter, gutterSlope, gutterLength, downspout, downspouts, type (size, rain), title, text.

## `returnPeriod` (type: `string`):

The return period of the 5-minute NOAA rain when a request doesn't say (10 years by default).

## `gutterStyle` (type: `string`):

Gutters to recommend when a request doesn't say (K-style by default).

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

A roof plan with the gutters and downspouts and the downspouts each option needs, or a place's intensity-duration-frequency curves.

## Actor input object example

```json
{
  "requests": [
    "gutters for a 40 x 30 ft house in Atlanta, Georgia, 6/12 pitch",
    "2,400 sq ft hip roof in Dallas, Texas, 200 ft of gutter, 8/12",
    "800 sq ft porch roof, 40 ft gutter, 5 in/hr, 5 inch K-style gutter, 2 downspouts",
    "gutters for a 60 x 30 ft roof in Miami, Florida, 100-year storm",
    "rainfall intensity for Chicago, Illinois",
    {
      "length": 50,
      "width": 32,
      "shape": "gable",
      "pitch": "4/12",
      "intensity": 6,
      "gutter": "6 in half-round"
    }
  ],
  "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": [
        "gutters for a 40 x 30 ft house in Atlanta, Georgia, 6/12 pitch",
        "2,400 sq ft hip roof in Dallas, Texas, 200 ft of gutter, 8/12",
        "800 sq ft porch roof, 40 ft gutter, 5 in/hr, 5 inch K-style gutter, 2 downspouts",
        "gutters for a 60 x 30 ft roof in Miami, Florida, 100-year storm",
        "rainfall intensity for Chicago, Illinois",
        {
            "length": 50,
            "width": 32,
            "shape": "gable",
            "pitch": "4/12",
            "intensity": 6,
            "gutter": "6 in half-round"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/gutter-downspout-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": [
        "gutters for a 40 x 30 ft house in Atlanta, Georgia, 6/12 pitch",
        "2,400 sq ft hip roof in Dallas, Texas, 200 ft of gutter, 8/12",
        "800 sq ft porch roof, 40 ft gutter, 5 in/hr, 5 inch K-style gutter, 2 downspouts",
        "gutters for a 60 x 30 ft roof in Miami, Florida, 100-year storm",
        "rainfall intensity for Chicago, Illinois",
        {
            "length": 50,
            "width": 32,
            "shape": "gable",
            "pitch": "4/12",
            "intensity": 6,
            "gutter": "6 in half-round",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/gutter-downspout-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": [
    "gutters for a 40 x 30 ft house in Atlanta, Georgia, 6/12 pitch",
    "2,400 sq ft hip roof in Dallas, Texas, 200 ft of gutter, 8/12",
    "800 sq ft porch roof, 40 ft gutter, 5 in/hr, 5 inch K-style gutter, 2 downspouts",
    "gutters for a 60 x 30 ft roof in Miami, Florida, 100-year storm",
    "rainfall intensity for Chicago, Illinois",
    {
      "length": 50,
      "width": 32,
      "shape": "gable",
      "pitch": "4/12",
      "intensity": 6,
      "gutter": "6 in half-round"
    }
  ]
}' |
apify call jumblemog/gutter-downspout-calculator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jumblemog/gutter-downspout-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/gDHHhEE8RsUdkWPdK/builds/zFLIWdAYdW70ljpQ7/openapi.json
