# Well Pump & Pressure Tank Size Calculator (`jumblemog/well-pump-calculator`) Actor

Well pump and pressure tank sizing for a home, from plain text: peak demand, total dynamic head, pump gpm and horsepower, pipe size and friction, the pressure tank for a minimum run time, and a low-yield well check.

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

## Well Pump & Pressure Tank Size Calculator

**Size a private well's pump and pressure tank from one line of text.** Ask `well pump for a 3 bathroom house, static water level 80 ft, 200 ft well, house 30 ft above the well, 150 ft from the well` and you get back:

- **The peak demand** in gpm from the bathrooms or fixtures, plus any irrigation.
- **The total dynamic head**: the lift to the pumping level, the rise to the house, the pressure switch's cut-out and the pipe friction.
- **The pump**: flow, water and brake horsepower, the motor size to buy, and submersible or jet.
- **The pipe size** that keeps the water under 5 ft/s, and its friction loss.
- **The pressure tank** for the pump's minimum run time, by Boyle's law for your switch and precharge, with the run time and the most starts an hour.
- **Checks**: a low-yield well (with a storage tank and booster pump), a pump that's too small, a tank that short-cycles.
- **Charts** (head by part, and the drawdown of each tank size against what's needed) and a **Markdown report**.

It's made for:

- Homeowners replacing a well pump or a waterlogged pressure tank.
- Well drillers, pump installers, plumbers and home inspectors.
- AI agents, quoting tools and rural property apps that need well numbers they can show their work for.

![A chart made by this Actor for a well with a 100 ft pumping level and a house 30 ft above it: 280 ft of total head (100 ft lift, 30 ft rise, 139 ft for a 60 psi cut-out, 11 ft of friction) for a 2 hp pump, and the drawdown of 26 to 86 gal pressure tanks on a 40/60 switch against the 15 gal needed, with the 62 gal tank picked](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/well-pump-calculator-example.png?signature=1ffxVSLqCCEdclxhWDB8m)

### How to use it

1. Write **Requests**, one per entry. The form has examples.
2. Optionally set the **pressure switch** and the **pipe run** to use when a request doesn't say.
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 bathrooms`, `2.5 baths`, `12 fixtures`, `15 gpm`, `irrigation 6 gpm` | The peak demand |
| `static water level 80 ft`, `drawdown 30 ft`, `pumping level 140 ft` | The water level |
| `pump set at 150 ft`, `200 ft well`, `well yields 4 gpm` | The well |
| `house 30 ft above the well`, `20 ft below`, `150 ft from the well`, `1-1/4 inch pipe` | The run to the house |
| `40/60` (default), `30/50 psi`, `50/70 pressure switch`, `precharge 38 psi` | The pressure switch and tank |
| `submersible`, `jet pump`, `shallow well` | The pump type |
| `1 hp pump`, `20 gallon tank` | What you have, to check |
| `pressure tank for a 10 gpm pump, 40/60 switch` | A tank alone |

The same as an object: `{"bathrooms": 4, "staticLevel": 150, "drawdown": 40, "elevation": -10, "run": 400, "switch": "50/70", "hp": 1}`.

### Examples

- `well pump for a 3 bathroom house, static water level 80 ft, 200 ft well, house 30 ft above the well, 150 ft from the well` → 15 gpm at 280 ft of head: a 2 hp submersible on 1¼ in pipe and a 62 gal pressure tank.
- `submersible pump set at 300 ft, 2 bathrooms, 1-1/4 inch pipe` → 13 gpm at 450 ft: a 3 hp pump and a 119 gal tank (2-minute runs for a motor over 2 hp).
- `well yields 4 gpm, 2.5 baths, water level 120 ft, 250 ft deep well, irrigation 6 gpm` → pump the well at 4 gpm (½ hp) into a 1,950 gal storage tank with a booster pump.
- `shallow well jet pump, water level 18 ft, 1 bath, 30/50 psi` → a ¾ hp shallow-well jet pump and a 32 gal tank.
- `pressure tank for a 10 gpm pump, 40/60 switch` → 38.8 gal of tank, so a 44 gal tank (11.3 gal drawdown).
- `20 gallon tank with a 12 gpm 1.5 hp pump, 30/50 pressure switch` → only 5.9 gal of drawdown, half a minute of pumping: use a 44 gal tank.

### How-to examples

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

#### How to size a submersible well pump

```json
{"requests": ["well pump for a 3 bathroom house, static water level 80 ft, 200 ft well, house 30 ft above the well, 150 ft from the well"]}
```

Result: 15 gpm at 280 ft of head: a 2 hp submersible on 1¼ in pipe and a 62 gal pressure tank.

#### How to size a pressure tank

```json
{"requests": ["pressure tank for a 10 gpm pump, 40/60 switch"]}
```

Result: 38.8 gal of tank, so a 44 gal tank (11.3 gal drawdown).

#### How to plan for a low-yield well

```json
{"requests": ["well yields 4 gpm, 2.5 baths, water level 120 ft, 250 ft deep well, irrigation 6 gpm"]}
```

Result: Pump the well at 4 gpm (½ hp) into a 1,950 gal storage tank with a booster pump.

#### How to let an AI agent size a well pump and tank

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/well-pump-calculator`. The agent writes the well and the house ("3 bathrooms, static water level 80 ft, 200 ft well") and passes on the flow, total head, pump horsepower and tank size instead of guessing them.

### FAQ

**What does it size?** The flow a house needs, total dynamic head, a submersible or jet pump's horsepower, the drop pipe and the pressure tank.

**Which pressure switch does it assume?** 40/60 psi unless the request or `switch` says otherwise.

**What if my well yields less than the house needs?** It pumps at the well's yield into a storage tank with a booster pump, as in the 4 gpm example.

**Is the horsepower final?** No. Pick the pump whose curve passes your flow at the total head; this gives the duty point to start from.

**How many can I run at once?** Up to 200 wells or pumps 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` | Wells or pumps as lines of text or objects (up to 200 per run) |
| `switch` | The pressure switch when a request doesn't say (40/60 by default) |
| `run` | Feet of pipe from the well head to the pressure tank when a request doesn't say (50 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": "system", "title": "Well pump for a 100 ft pumping level",
  "summary": "15 gpm at 280 ft of total head (100 ft lift, 139 ft for 60 psi, 11 ft friction, 30 ft rise): a 2 hp submersible pump on 1.25 in pipe, and a 62 gal pressure tank on a 40/60 switch.",
  "demand": {"gpm": 15, "source": "3 bathrooms", "bathrooms": 3, "fixtures": null, "irrigation": null},
  "well": {"depth": 200, "staticLevel": 80, "drawdown": 20, "pumpingLevel": 100, "pumpDepth": 120},
  "head": {"lift": 100, "elevation": 30, "pressure": 138.6, "friction": 11.4, "total": 280},
  "pipe": {"size": 1.25, "length": 270, "velocity": 3.2, "frictionPer100": 3.51, "friction": 11.4},
  "pump": {"gpm": 15, "tdh": 280, "waterHp": 1.06, "brakeHp": 1.77, "hp": 2, "efficiency": 0.6, "type": "submersible"},
  "tank": {"switch": "40/60", "precharge": 38, "drawdownFactor": 0.258, "minRunMinutes": 1, "drawdownNeeded": 15, "totalNeeded": 58.2, "recommended": 62, "drawdown": 16, "runMinutes": 1.07, "maxCyclesPerHour": 14.1},
  "units": {"flow": "gpm", "length": "ft", "head": "ft", "pressure": "psi", "volume": "gal", "pipe": "in", "power": "hp", "velocity": "ft/s", "time": "min"}
}
```

A tank request has only `pump` and `tank`; a low-yield well adds `storage`. 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. **Demand**: about 9 gpm for 1 bathroom, 11 for 1½, 13 for 2, 14 for 2½, 15 for 3, 17 for 4 (or 1 gpm a fixture), plus irrigation.
2. **Lift**: to the pumping level, the static level plus the drawdown (a quarter of the static level, 5-20 ft, when not given); with no water level, to the pump itself. The pump hangs 20 ft below the pumping level and at least 10 ft above the bottom.
3. **Head**: lift + rise to the house + cut-out psi × 2.31 + friction in the drop pipe and the run (Hazen-Williams, C 140 plastic pipe, plus 20% for fittings). The pipe is the smallest that keeps the flow under 5 ft/s.
4. **Pump**: water hp = gpm × head ÷ 3,960, ÷ 60% pump efficiency, up to the next standard motor. Jet pumps lift up to 25 ft (shallow well) or about 90 ft (deep well); past that, a submersible.
5. **Pressure tank**: the pump should run at least 1 minute a start (2 minutes over 2 hp). A diaphragm tank delivers (Pp + 14.7)/(Pin + 14.7) − (Pp + 14.7)/(Pout + 14.7) of its volume between cut-out and cut-in, with the precharge 2 psi below the cut-in; tank = gpm × minutes ÷ that factor, up to a common size. The most starts an hour, at half the pump's flow, is 60 × gpm ÷ (4 × drawdown).
6. **Low yield**: a pump bigger than the well's yield pumps it dry; pump at the yield into storage holding two hours of the shortfall, with a booster pump.

### Pricing

You pay one low price per request, at the price shown on this page, whether it's a whole system or a tank. 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 pump curve decides**: pick the pump whose curve passes your flow at the total head; this gives the duty point and a motor size to start from.
- **The driller's log** has the real static level, pumping level and yield; use them over the defaults.
- **A constant-pressure drive or cycle-stop valve** lets a smaller tank work; this tool sizes a conventional tank.
- **Limits**: 200 requests per run; single homes and small farms, clean water, plastic pipe.

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

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~well-pump-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["well pump for a 2 bathroom house, water level 60 ft, 180 ft well, 30/50 switch"]}'
```

`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/well-pump-calculator").call(run_input={
    "requests": [{"bathrooms": 3, "staticLevel": 90, "wellDepth": 220, "run": 120, "switch": "40/60"}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Methods: Hazen-Williams pipe friction, water horsepower (gpm × ft ÷ 3,960), Boyle's law for diaphragm tank drawdown, and the well industry's demand and minimum run-time rules of thumb.
- 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: bathrooms ('3 bathrooms'), fixtures, or the peak flow ('12 gpm'), 'irrigation 6 gpm'. The well: 'static water level 80 ft', 'drawdown 20 ft' or 'pumping level 100 ft', 'pump set at 150 ft', '200 ft well', 'well yields 4 gpm'. The run: 'house 30 ft above the well', '150 ft from the well', '1-1/4 inch pipe'. The switch: '40/60' (default), '30/50 psi', 'precharge 38 psi'. Checks: '1 hp pump', '20 gallon tank'. A tank alone: 'pressure tank for a 10 gpm pump, 40/60 switch'. Object fields: bathrooms, fixtures, gpm, irrigation, yield, pumpGpm, hp, staticLevel, drawdown, pumpingLevel, pumpDepth, wellDepth, elevation, run, pipe, switch, cutIn, cutOut, precharge, tank, minRun, pumpType, efficiency, type (system, tank), title, text.

## `switch` (type: `string`):

Cut-in/cut-out pressures when a request doesn't say (40/60 by default).

## `run` (type: `integer`):

Feet of pipe from the well head to the pressure tank when a request doesn't say (50 by default).

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

The total dynamic head by part and the drawdown of pressure tank sizes.

## Actor input object example

```json
{
  "requests": [
    "well pump for a 3 bathroom house, static water level 80 ft, 200 ft well, house 30 ft above the well, 150 ft from the well",
    "submersible pump set at 300 ft, 2 bathrooms, 1-1/4 inch pipe",
    "well yields 4 gpm, 2.5 baths, water level 120 ft, 250 ft deep well, irrigation 6 gpm",
    "shallow well jet pump, water level 18 ft, 1 bath, 30/50 psi",
    "pressure tank for a 10 gpm pump, 40/60 switch",
    "20 gallon tank with a 12 gpm 1.5 hp pump, 30/50 pressure switch",
    {
      "bathrooms": 4,
      "staticLevel": 150,
      "drawdown": 40,
      "elevation": -10,
      "run": 400,
      "switch": "50/70",
      "hp": 1
    }
  ],
  "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": [
        "well pump for a 3 bathroom house, static water level 80 ft, 200 ft well, house 30 ft above the well, 150 ft from the well",
        "submersible pump set at 300 ft, 2 bathrooms, 1-1/4 inch pipe",
        "well yields 4 gpm, 2.5 baths, water level 120 ft, 250 ft deep well, irrigation 6 gpm",
        "shallow well jet pump, water level 18 ft, 1 bath, 30/50 psi",
        "pressure tank for a 10 gpm pump, 40/60 switch",
        "20 gallon tank with a 12 gpm 1.5 hp pump, 30/50 pressure switch",
        {
            "bathrooms": 4,
            "staticLevel": 150,
            "drawdown": 40,
            "elevation": -10,
            "run": 400,
            "switch": "50/70",
            "hp": 1
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/well-pump-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": [
        "well pump for a 3 bathroom house, static water level 80 ft, 200 ft well, house 30 ft above the well, 150 ft from the well",
        "submersible pump set at 300 ft, 2 bathrooms, 1-1/4 inch pipe",
        "well yields 4 gpm, 2.5 baths, water level 120 ft, 250 ft deep well, irrigation 6 gpm",
        "shallow well jet pump, water level 18 ft, 1 bath, 30/50 psi",
        "pressure tank for a 10 gpm pump, 40/60 switch",
        "20 gallon tank with a 12 gpm 1.5 hp pump, 30/50 pressure switch",
        {
            "bathrooms": 4,
            "staticLevel": 150,
            "drawdown": 40,
            "elevation": -10,
            "run": 400,
            "switch": "50/70",
            "hp": 1,
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/well-pump-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": [
    "well pump for a 3 bathroom house, static water level 80 ft, 200 ft well, house 30 ft above the well, 150 ft from the well",
    "submersible pump set at 300 ft, 2 bathrooms, 1-1/4 inch pipe",
    "well yields 4 gpm, 2.5 baths, water level 120 ft, 250 ft deep well, irrigation 6 gpm",
    "shallow well jet pump, water level 18 ft, 1 bath, 30/50 psi",
    "pressure tank for a 10 gpm pump, 40/60 switch",
    "20 gallon tank with a 12 gpm 1.5 hp pump, 30/50 pressure switch",
    {
      "bathrooms": 4,
      "staticLevel": 150,
      "drawdown": 40,
      "elevation": -10,
      "run": 400,
      "switch": "50/70",
      "hp": 1
    }
  ]
}' |
apify call jumblemog/well-pump-calculator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jumblemog/well-pump-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/IuweQLHkCTWG4cyH1/builds/8evWdA2djlP9Lfl5Y/openapi.json
