# Septic Tank & Drain Field Size Calculator (`jumblemog/septic-system-calculator`) Actor

Septic tank and drain field size for a house, from plain text: the design flow from the bedrooms, the tank, the absorption area from the perc rate or soil laid out as trenches, chambers or a bed, a water table check and how often to pump.

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

## Septic Tank & Drain Field Size Calculator

**Size a home septic system from one line of text.** Ask `septic system for a 3 bedroom house, perc rate 30 min/in` and you get back:

- **The design flow** from the bedrooms (150 gallons a day each, or your state's figure).
- **The septic tank**: the International Private Sewage Disposal Code minimum, two days of flow, half again with a garbage disposal, rounded up to a standard tank.
- **The drain field**: the absorption area from the percolation rate or the soil texture, laid out as gravel trenches, chambers or a bed, with the laterals, their length, the footprint, gravel, pipe and an equal reserve area.
- **Checks**: soil too fast or too slow for a conventional field, too little separation to the water table or rock, a tank that's too small.
- **Pumping**: how often the tank needs pumping for the people in the house, and typical setbacks from wells, water and the house.
- **Charts** (the field layout and the loading-rate curve, or pumping years by household) and a **Markdown report**.

It's made for:

- Homeowners and buyers planning a build, a repair or a pumping schedule.
- Septic installers, designers, home inspectors and real estate agents.
- AI agents, quoting tools and property apps that need septic numbers they can show their work for.

![A chart made by this Actor for a 3-bedroom house at a perc rate of 30 min/in: a 1,000 gal tank feeding 3 laterals of 82.2 ft, 24 in wide and 6 ft apart, and the 5 ÷ √t loading-rate curve with the lot's 0.91 gal/ft²/day marked](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/septic-system-calculator-example.png?signature=1FGM5lotkxVrjLwFpcPUD)

### How to use it

1. Write **Requests**, one per entry. The form has examples.
2. Optionally set the **gallons a day per bedroom** and the **field type**.
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 |
|---|---|
| `3 bedroom house`, `4 br`, `5 people`, `family of four`, `600 gpd` | The house and its flow |
| `120 gpd per bedroom` | Your state's flow a bedroom (150 by default) |
| `perc rate 30 min/in`, `perc 15 mpi`, `sandy loam`, `clay loam` | The soil |
| `trenches` (default), `chambers`, `infiltrator`, `septic bed` | The field type |
| `25% chamber reduction`, `18 in trenches`, `laterals no longer than 80 ft` | Field details |
| `water table at 36 inches`, `rock at 4 ft` | The limiting layer, for the separation check |
| `garbage disposal` | A bigger tank and more frequent pumping |
| `how often to pump a 1,000 gallon tank with 4 people` | Pumping only |

The same as an object: `{"bedrooms": 4, "perc": 20, "system": "trench", "trenchWidth": 3, "maxLateral": 80}`.

### Examples

- `septic system for a 3 bedroom house, perc rate 30 min/in` → 450 gpd, a 1,000 gal tank, 493 ft² of absorption area: 246 ft of 24 in trench in 3 laterals of 82.2 ft.
- `4 bedroom house on clay loam, garbage disposal, chambers` → a 2,000 gal tank and 890 ft²: 75 chambers in 3 lines of 98.9 ft.
- `septic bed for 2 bedrooms on sand` → a 750 gal tank and a 13.4 × 13.4 ft bed.
- `5 bedroom house, perc 15 mpi, water table at 36 inches, 4 people` → a 1,500 gal tank and 581 ft², with a warning: only 12 in of separation under a 24 in trench.
- `how often to pump a 1,000 gallon septic tank with 4 people` → about every 2 years (a third full in 2.8).
- `3 bedroom house on clay` → too slow for a conventional field: plan a mound, drip or aerobic system.

### How-to examples

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

#### How to size a septic tank and drain field

```json
{"requests": ["septic system for a 3 bedroom house, perc rate 30 min/in"]}
```

Result: 450 gpd, a 1,000 gal tank, 493 ft² of absorption area: 246 ft of 24 in trench in 3 laterals of 82.2 ft.

#### How to size a drain field with chambers

```json
{"requests": ["4 bedroom house on clay loam, garbage disposal, chambers"]}
```

Result: A 2,000 gal tank and 890 ft²: 75 chambers in 3 lines of 98.9 ft.

#### How to work out how often to pump a septic tank

```json
{"requests": ["how often to pump a 1,000 gallon septic tank with 4 people"]}
```

Result: About every 2 years (a third full in 2.8).

#### How to let an AI agent size a septic system

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/septic-system-calculator`. The agent writes the house and soil ("3 bedroom house, perc rate 30 min/in") and passes on the tank size, absorption area and trench layout instead of guessing them.

### FAQ

**What does it size?** Daily flow, the tank, and the absorption area as trenches, chambers or a bed, from bedrooms and a perc rate or soil type.

**How much flow per bedroom?** 150 gallons a day unless you set `perBedroom`.

**What if my soil is too slow or the water table is high?** It flags it and points to a mound, drip or aerobic system, which it doesn't design.

**Can I build from these numbers?** No. Your health department's rules and a perc test on the lot decide; use these to plan and compare.

**How many can I run at once?** Up to 200 houses or tanks 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` | Houses or tanks as lines of text or objects (up to 200 per run) |
| `perBedroom` | Gallons a day per bedroom when a request doesn't say (150 by default) |
| `system` | Trenches, chambers or a bed when a request doesn't say (trenches 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": "design", "title": "Septic system for a 3-bedroom house",
  "summary": "3-bedroom house, 450 gpd: a 1,000 gal tank; at 30 min/in the soil takes 0.91 gal/ft²/day, so 493 ft² of absorption area: 246 ft of 24 in trench in 3 laterals of 82.2 ft (about 1,150 ft², plus an equal reserve).",
  "house": {"bedrooms": 3, "people": 4, "designFlow": 450, "garbageDisposal": false},
  "tank": {"recommended": 1000, "codeMinimum": 1000, "needed": 1000, "compartments": 2, "given": null},
  "soil": {"perc": 30, "source": "given", "loadingRate": 0.913},
  "field": {"type": "trenches", "area": 493, "trenchWidth": 2, "trenchDepth": 24, "totalLength": 246, "laterals": 3, "lateralLength": 82.2, "spacing": 6, "footprint": 1150, "gravelCubicYards": 18.3, "gravelTons": 25.6, "perforatedPipe": 246, "reserveArea": 1150},
  "pumping": {"tank": 1000, "people": 4, "years": 2.8},
  "setbacks": [{"from": "Private well", "tank": 50, "field": 100}],
  "units": {"flow": "gpd", "volume": "gal", "area": "ft²", "length": "ft", "depth": "in", "perc": "min/in", "loadingRate": "gal/ft²/day"}
}
```

A pumping request has only `pumping` (with `recommendedYears` and a `byPeople` table). Every item has `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. **Flow**: 150 gallons a day per bedroom, the usual code figure; codes size by bedrooms, not people.
2. **Tank**: the IPSDC table (750 gal up to 2 bedrooms, 1,000 for 3, 1,200 for 4, 1,425 for 5, then 225 more a bedroom) or two days of flow if larger, times 1.5 with a garbage disposal, rounded up to a standard size; two compartments.
3. **Loading rate**: the US Public Health Service relation q = 5 ÷ √t gal/ft²/day for a percolation rate of t min/in. Conventional fields need 1 to 60 min/in. Soil textures map to typical perc rates when no test is given.
4. **Field**: trench bottom area = flow ÷ q; a bed needs 1.5 times as much. Trenches 2 ft wide (chambers 3 ft) and 6 ft apart (7 for chambers), laterals up to 100 ft, 24 in deep with 12 in of gravel under the pipe; chambers at 4 ft each, with any reduction your state allows. A reserve area the size of the field.
5. **Separation**: the trench bottom should stay 24-48 in above the water table or rock.
6. **Pumping**: when sludge and scum fill a third of the tank, at about 30 gallons a person a year (30% sooner with a disposal); EPA advises an inspection every 1-3 years.

### Pricing

You pay one low price per request, at the price shown on this page, whether it's a design or a pumping question. 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

- **The permit decides**: your county or state health department sets the flow, loading rates, field sizes and setbacks, and a perc test or soil evaluation on the lot is what counts. Use these numbers to plan and compare.
- **Don't drive or build over the field**, and keep roof water away from it.
- **Slow soil, high water or shallow rock** mean an engineered system (mound, drip or aerobic treatment); this tool flags them but doesn't design them.
- **Limits**: 200 requests per run; conventional gravity systems for single houses.

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

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~septic-system-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["septic system for a 4 bedroom house on sandy loam, chambers"]}'
```

`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/septic-system-calculator").call(run_input={
    "requests": [{"bedrooms": 3, "perc": 45, "system": "chamber", "limitingDepth": 48}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Rules: the International Private Sewage Disposal Code tank table (ICC), the US Public Health Service *Manual of Septic-Tank Practice* loading relation, typical state code trench, bed and setback rules, and EPA septic maintenance guidance.
- 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 house: bedrooms ('3 bedroom'), or people, or the daily flow ('450 gpd'), '120 gpd per bedroom', 'garbage disposal'. The soil: the perc rate ('perc rate 30 min/in', '15 mpi') or texture (sand, loamy sand, sandy loam, loam, silt loam, clay loam, clay ...). The field: trenches (default), 'chambers' ('chamber reduction 25%'), or a 'bed'; '36 in wide trenches', 'laterals no longer than 80 ft'; 'water table at 36 inches'. Pumping: 'how often to pump a 1,000 gallon tank with 4 people'. Object fields: bedrooms, people, flow, perBedroom, perc, soil, system, chamberReduction, trenchWidth, trenchDepth, spacing, maxLateral, limitingDepth, tank, disposal, type (design, pumping), title, text.

## `perBedroom` (type: `integer`):

Gallons a day per bedroom when a request doesn't say (150 by default; some states use 110-120).

## `system` (type: `string`):

The field when a request doesn't say (gravel trenches by default).

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

The tank and field layout and the soil loading rate, or pumping years by household size.

## Actor input object example

```json
{
  "requests": [
    "septic system for a 3 bedroom house, perc rate 30 min/in",
    "4 bedroom house on clay loam, garbage disposal, chambers",
    "septic bed for 2 bedrooms on sand",
    "5 bedroom house, perc 15 mpi, water table at 36 inches, 4 people",
    "how often to pump a 1,000 gallon septic tank with 4 people",
    "3 bedroom house on clay",
    {
      "bedrooms": 4,
      "perc": 20,
      "system": "trench",
      "trenchWidth": 3,
      "maxLateral": 80
    }
  ],
  "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": [
        "septic system for a 3 bedroom house, perc rate 30 min/in",
        "4 bedroom house on clay loam, garbage disposal, chambers",
        "septic bed for 2 bedrooms on sand",
        "5 bedroom house, perc 15 mpi, water table at 36 inches, 4 people",
        "how often to pump a 1,000 gallon septic tank with 4 people",
        "3 bedroom house on clay",
        {
            "bedrooms": 4,
            "perc": 20,
            "system": "trench",
            "trenchWidth": 3,
            "maxLateral": 80
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/septic-system-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": [
        "septic system for a 3 bedroom house, perc rate 30 min/in",
        "4 bedroom house on clay loam, garbage disposal, chambers",
        "septic bed for 2 bedrooms on sand",
        "5 bedroom house, perc 15 mpi, water table at 36 inches, 4 people",
        "how often to pump a 1,000 gallon septic tank with 4 people",
        "3 bedroom house on clay",
        {
            "bedrooms": 4,
            "perc": 20,
            "system": "trench",
            "trenchWidth": 3,
            "maxLateral": 80,
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/septic-system-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": [
    "septic system for a 3 bedroom house, perc rate 30 min/in",
    "4 bedroom house on clay loam, garbage disposal, chambers",
    "septic bed for 2 bedrooms on sand",
    "5 bedroom house, perc 15 mpi, water table at 36 inches, 4 people",
    "how often to pump a 1,000 gallon septic tank with 4 people",
    "3 bedroom house on clay",
    {
      "bedrooms": 4,
      "perc": 20,
      "system": "trench",
      "trenchWidth": 3,
      "maxLateral": 80
    }
  ]
}' |
apify call jumblemog/septic-system-calculator --silent --output-dataset

```

## MCP server setup

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