# Water Heater Size & Cost Calculator (Tank, Tankless) (`jumblemog/water-heater-calculator`) Actor

What size water heater a home needs, from plain text: the busiest hour's hot water and the first-hour rating for gas, electric and heat pump tanks, tankless flow and BTU or kW for the fixtures running at once, tank recovery, and the yearly running cost of every kind of heater.

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

## Water Heater Size & Cost Calculator (Tank, Tankless)

**Size a tank or tankless water heater for a home, check a tank's recovery, or compare what gas, electric, propane and heat pump heaters cost to run, from one line of text.** Ask `what size water heater for 4 people and 2.5 baths` or `tankless for 2 showers and the kitchen sink, cold climate` and you get back:

- **Tank size by first-hour rating (FHR)**: the hot water your busiest hour takes (showers, washing up, food prep, laundry, the dishwasher) and which common tanks rate at least that much.
- **Tankless size**: the flow of the fixtures running at once, the temperature rise from your cold water to the heater setting, and the gas input (BTU/h) or electric power (kW, amps and breaker) that takes, with the flow each standard unit gives.
- **A tank's recovery**: gallons an hour, the hours to heat a full tank and its estimated first-hour rating, from its size and burner or element.
- **Yearly running cost** of seven kinds of heater at your prices, with the energy each uses.
- **Charts** and a **Markdown report** with every assumption.

It's made for:

- Homeowners and buyers choosing a replacement heater.
- Plumbers, HVAC contractors and home inspectors who want a quick, explained sizing.
- AI agents, home-improvement apps and quoting tools that need water heater numbers they can show their work for.

![A chart made by this Actor for 4 people and 2.5 baths: the busiest hour's hot water (4 showers 48.5 gal, hands and face 16, food prep 5, clothes washer 7) and the first-hour rating of eleven common tanks against the 77 gal needed, with the 50 and 75 gal gas tanks and the 65 and 80 gal heat pump tanks in green](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/water-heater-calculator-example.png?signature=sYO3mqNsYybvpuvah1k5)

### How to use it

1. Write **Requests**, one per entry. The form has examples.
2. Optionally set the **fuel**, **cold water** and **heater setting** temperatures, and your **electricity** and **gas prices**.
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 |
|---|---|
| `4 people`, `family of 3`, `2.5 baths` | The household (a tank sizing) |
| `gas`, `electric`, `propane`, `heat pump` | The fuel |
| `tankless`, `on demand`, `2 showers and the kitchen sink`, `1 bathroom sink` | A tankless sizing and the fixtures running at once |
| `with laundry and the dishwasher`, `2.5 gpm shower`, `10 minute showers`, `low flow` | More in the busiest hour, and the shower |
| `inlet 45 F`, `40 F inlet`, `cold climate`, `warm climate`, `140 F setpoint`, `70 F rise` | Temperatures (°C works too) |
| `50 gallon electric 4500 W recovery`, `75 gallon gas tank 75000 btu` | One tank's recovery |
| `running cost for 4 people`, `80 gal per day`, `$0.15/kWh`, `$1.30/therm`, `propane $2.75/gal` | Running cost |

The same as an object: `{"type": "tank", "people": 5, "bathrooms": 3, "fuel": "gas", "showerFlow": 2.5}`.

### Examples

- `what size water heater for 4 people and 2.5 baths` → about 77 gal in the busiest hour: a 50 gal gas tank (FHR about 77) or a 65 gal heat pump tank (FHR about 79).
- `family of 2, 1 bathroom, electric` → 38 gal FHR: a 40 gal electric tank.
- `tankless for 2 showers and the kitchen sink, cold climate` → 5.5 gpm with a 78 °F rise needs about 226,000 BTU/h: two 199,000 BTU/h units, or fewer fixtures at once.
- `electric tankless for 1 shower and 1 bathroom sink, inlet 60 F` → 3 gpm, 26.6 kW (111 A at 240 V): a 27 kW unit.
- `50 gallon electric 4500 W recovery` → 29.1 gallons an hour at a 62 °F rise, about 1.5 hours to heat a full tank, FHR about 55.
- `water heater running cost for 4 people, $0.15/kWh, $1.30/therm` → a heat pump about $142 a year, gas tankless $169, gas tank $245, electric tank $571.

### How-to examples

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

#### How to size a water heater for a family

```json
{"requests": ["what size water heater for 4 people and 2.5 baths"]}
```

Result: About 77 gal in the busiest hour: a 50 gal gas tank (FHR about 77) or a 65 gal heat pump tank (FHR about 79).

#### How to size a tankless water heater

```json
{"requests": ["tankless for 2 showers and the kitchen sink, cold climate"]}
```

Result: 5.5 gpm with a 78 °F rise needs about 226,000 BTU/h: two 199,000 BTU/h units, or fewer fixtures at once.

#### How to compare water heater running costs

```json
{"requests": ["water heater running cost for 4 people, $0.15/kWh, $1.30/therm"]}
```

Result: A heat pump about $142 a year, gas tankless $169, gas tank $245, electric tank $571.

#### How to let an AI agent size a water heater

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/water-heater-calculator`. The agent writes the household ("4 people and 2.5 baths") and passes on the tank or tankless size and running cost instead of guessing them.

### FAQ

**What can it do?** Size a tank by first-hour rating, size gas or electric tankless units by flow and temperature rise, work out a tank's recovery, and compare yearly running costs.

**Which fuels does it cover?** Gas, electric, heat pump and tankless models of each.

**Why does tankless need two units in cold climates?** Colder inlet water means a bigger temperature rise, so the same flow needs more BTU than one unit delivers.

**How large a building?** Homes of 1-20 people and 0.5-10 bathrooms; larger buildings need a commercial sizing.

**How many can I run at once?** Up to 200 requests 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` | Tank sizings, tankless sizings, tank recoveries or running costs, as lines of text or objects (up to 200 per run) |
| `fuel` | Fuel when a request doesn't say |
| `inlet`, `setpoint` | Cold water and heater setting in °F when a request doesn't say |
| `electricPrice`, `gasPrice` | Your prices per kWh and per therm |
| `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": "tank", "title": "Water heater size for 4 people, 2.5 baths",
  "summary": "4 people, 2.5 baths: about 77 gal of hot water in the busiest hour, so a first-hour rating of 77 gal or more: 50 gal gas (FHR about 77), 65 gal heat pump (FHR about 79).",
  "household": {"people": 4, "bathrooms": 2.5, "showers": 4, "showerFlow": 2.0, "showerMinutes": 8, "inlet": 58, "setpoint": 120},
  "sizing": {"peakHourDemand": 76.5, "firstHourRatingNeeded": 77, "recommended": ["50 gal gas", "65 gal heat pump"]},
  "demand": [{"use": "shower", "count": 4, "gallonsEach": 12.1, "gallons": 48.5}],
  "options": [{"tank": "50 gal gas", "kind": "gas", "gallons": 50, "firstHourRating": 77.0, "meets": true}],
  "units": {"volume": "gal", "flow": "gpm", "temperature": "°F", "gas": "BTU/h", "power": "kW", "cost": "USD"}
}
```

A tankless sizing has `tankless`, `fixtures` and `models`; a recovery has `tank`; a running cost has `use` and `heaters`. 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. **Busiest hour**: each shower takes flow × minutes of mixed 105 °F water (2 gpm, 8 minutes by default), of which the hot share is (105 − cold) ÷ (setting − cold); one shower per person, plus hands and face, food prep and the clothes washer, and the dishwasher or a bath when you say.
2. **First-hour rating**: 70% of the tank plus an hour of recovery at a 90 °F rise, the way label values come out; heat pump tanks use typical label values. The tank must rate at least the busiest hour.
3. **Recovery** = input × efficiency ÷ (8.34 × rise) gallons an hour (gas 78-80%, electric elements 98%).
4. **Tankless** input = gpm × 500 × rise ÷ efficiency BTU/h (95% condensing gas, 82% non-condensing), or gpm × 500 × rise ÷ 3412 ÷ 0.99 kW for electric; the breaker is 125% of the current.
5. **Cold water**: 58 °F (the DOE test value) for tanks and costs, 50 °F for tankless unless you give yours or a climate or place (very cold 37, cold or northern 42, mild or central 50, warm or southern 58, Florida or tropical 68 °F).
6. **Running cost** = gallons a day × 365 × 8.34 × rise ÷ the uniform energy factor (gas tank 0.64, gas tankless 0.93, electric tank 0.93, electric tankless 0.98, heat pump 3.75), at 16 gal a person a day unless you give it, and $0.17/kWh, $1.45/therm and $2.75 a gallon of propane by default.

### Pricing

You pay one low price per request, at the price shown on this page: a tank sizing or recovery, a tankless sizing and a running cost comparison 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 milliseconds. A run through the API answers in about 10 seconds, including the cloud container starting.

### Tips and limits

- **Check the label.** The first-hour rating is on the yellow EnergyGuide label; compare models by it, not by tank gallons.
- **Tankless in cold climates** often needs two units or fewer fixtures at once; electric tankless can need 100-150 A of service.
- **Follow local code and the manufacturer** for venting, gas line size and wiring.
- **Limits**: homes of 1-20 people and 0.5-10 bathrooms (larger buildings need a commercial sizing); 200 requests per run.

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

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~water-heater-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["what size water heater for 3 people and 2 baths, gas", "tankless for 2 showers, cold climate"]}'
```

`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/water-heater-calculator").call(run_input={
    "requests": [{"type": "tank", "people": 5, "bathrooms": 3, "fuel": "gas"}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Method: the DOE uniform energy factor test (10 CFR 430 Appendix E) and common plumbing sizing practice.
- 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. Tank size: people and bathrooms ('4 people, 2.5 baths'), the fuel (gas, propane, electric, heat pump), 'with laundry and the dishwasher', shower flow and length ('2.5 gpm showers', '10 minute showers'), cold water ('inlet 50 F', 'cold climate', 'Florida'). One tank's recovery: '50 gallon electric 4500 W', '40 gal gas 40,000 BTU'. Tankless: 'tankless for 2 showers and the kitchen sink', 'electric tankless', '199,000 BTU tankless', 'non-condensing'. Running cost: 'cost for 4 people', '60 gallons a day', '$0.15/kWh', '$1.30/therm', 'propane $3/gal'. Object fields: type (tank, tankless, cost), people, bathrooms, fuel, tank, btu, kw, inlet, setpoint, rise, showers, showerFlow, showerMinutes, fixtures ({"shower": 2, "dishwasher": 1}), daily, efficiency, electricPrice, gasPrice, propanePrice, title, text.

## `fuel` (type: `string`):

Fuel when a request doesn't say (tank sizing lists every kind; tankless is gas).

## `inlet` (type: `integer`):

Cold water when a request doesn't say (58 °F for tanks and costs, 50 °F for tankless sizing).

## `setpoint` (type: `integer`):

Hot water temperature (120 °F by default).

## `electricPrice` (type: `string`):

For running costs (0.17 by default).

## `gasPrice` (type: `string`):

For running costs (1.45 by default).

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

Busiest-hour demand against tank ratings, tankless flow against unit sizes, a recovery curve or yearly costs.

## Actor input object example

```json
{
  "requests": [
    "what size water heater for 4 people and 2.5 baths",
    "family of 2, 1 bathroom, electric",
    "tankless for 2 showers and the kitchen sink, cold climate",
    "electric tankless for 1 shower and 1 bathroom sink, inlet 60 F",
    "50 gallon electric 4500 W recovery",
    "water heater running cost for 4 people, $0.15/kWh, $1.30/therm",
    {
      "type": "tank",
      "people": 5,
      "bathrooms": 3,
      "fuel": "gas",
      "showerFlow": 2.5
    }
  ],
  "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": [
        "what size water heater for 4 people and 2.5 baths",
        "family of 2, 1 bathroom, electric",
        "tankless for 2 showers and the kitchen sink, cold climate",
        "electric tankless for 1 shower and 1 bathroom sink, inlet 60 F",
        "50 gallon electric 4500 W recovery",
        "water heater running cost for 4 people, $0.15/kWh, $1.30/therm",
        {
            "type": "tank",
            "people": 5,
            "bathrooms": 3,
            "fuel": "gas",
            "showerFlow": 2.5
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/water-heater-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": [
        "what size water heater for 4 people and 2.5 baths",
        "family of 2, 1 bathroom, electric",
        "tankless for 2 showers and the kitchen sink, cold climate",
        "electric tankless for 1 shower and 1 bathroom sink, inlet 60 F",
        "50 gallon electric 4500 W recovery",
        "water heater running cost for 4 people, $0.15/kWh, $1.30/therm",
        {
            "type": "tank",
            "people": 5,
            "bathrooms": 3,
            "fuel": "gas",
            "showerFlow": 2.5,
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/water-heater-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": [
    "what size water heater for 4 people and 2.5 baths",
    "family of 2, 1 bathroom, electric",
    "tankless for 2 showers and the kitchen sink, cold climate",
    "electric tankless for 1 shower and 1 bathroom sink, inlet 60 F",
    "50 gallon electric 4500 W recovery",
    "water heater running cost for 4 people, $0.15/kWh, $1.30/therm",
    {
      "type": "tank",
      "people": 5,
      "bathrooms": 3,
      "fuel": "gas",
      "showerFlow": 2.5
    }
  ]
}' |
apify call jumblemog/water-heater-calculator --silent --output-dataset

```

## MCP server setup

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