# Home Heating Cost Calculator (Fuel & Heat Pump Compare) (`jumblemog/heating-cost-calculator`) Actor

Home heating cost by fuel from what a house uses now, its bills, or its size and climate: yearly cost of gas, propane, oil, electric, heat pump, wood and pellets, CO2, savings and payback.

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

## Home Heating Cost Calculator (Fuel & Heat Pump Compare)

**Compare what it costs to heat a house with each fuel, from what it uses now.** Ask `we use 800 gallons of heating oil a year at $3.90/gal, what would a heat pump cost at 15 cents/kWh?` and you get back:

- **The heat the house needs a year** in million BTU, from its fuel use (gallons, therms, kWh, cords, tons), its yearly bill, or its size and climate (square feet with a state, climate zone or heating degree days).
- **The yearly cost of each fuel**, cheapest first: natural gas, propane, heating oil, kerosene, electric resistance, an air-source heat pump, geothermal, wood and pellets, at your prices or typical US ones, and each system's efficiency.
- **Cost per million BTU**, units a year and **CO2** for each.
- **Savings** against what the house uses now, and the **payback** of a switch when you give its cost.
- **Charts** (yearly cost and CO2 of each fuel) and a **Markdown report**.

It's made for:

- Homeowners deciding whether a heat pump, pellet stove or gas line pays off.
- HVAC contractors, energy auditors and fuel dealers showing customers the numbers.
- AI agents, home and energy apps that need a heating cost comparison they can show their work for.

![A chart made by this Actor for an old 1,800 sq ft farmhouse in climate zone 6 heated with oil: 123 million BTU a year, $4,183 on oil against $2,556 with a heat pump and $1,704 with geothermal, a $14,000 heat pump paying back in 8.6 years, and each fuel's CO2](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/heating-cost-calculator-example.png?signature=16hTlEDeTVMSfzUCyXCuO)

### How to use it

1. Write **Requests**, one per house. The form has examples.
2. Optionally set the **electricity price** used when a request doesn't give one.
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 |
|---|---|
| `800 gallons of heating oil a year`, `1,100 therms`, `12,000 kWh`, `4 cords of oak`, `3 tons of pellets` | What the house burns now |
| `we spend $2,400 a year on propane` | The yearly bill (with the price, it works out the units) |
| `2,000 sq ft in Ohio`, `zone 6`, `6,000 HDD`, `old`, `drafty`, `new`, `well insulated` | Size and climate when you don't know the fuel use |
| `60 MMBtu` | The heat load itself |
| `$1.30/therm`, `$2.90/gal`, `15 cents/kWh`, `$280/cord`, `$350/ton` | Prices |
| `80% furnace`, `heat pump hspf 9`, `cop 3` | Efficiencies |
| `compare propane vs heat pump vs pellets` | Only those fuels |
| `heat pump install $14,000` | A switch cost, for the payback |

The same as an object: `{"loadMMBtu": 60, "current": "electric resistance", "prices": {"electricity": 0.2}, "fuels": ["electric resistance", "heat pump", "propane"], "only": true}`.

### Examples

- `we use 800 gallons of heating oil a year at $3.90/gal, what would a heat pump cost at 15 cents/kWh?` → 94.2 MMBtu a year: oil $3,120, heat pump $1,533.
- `we spend $2,400 a year on propane at $2.90/gal, compare propane vs heat pump vs pellets` → 828 gallons; a heat pump $1,327, pellets $1,919.
- `2,000 sq ft house in Ohio, natural gas $1.30/therm, electricity $0.16/kWh` → 72 MMBtu; gas $985, heat pump $1,250.
- `1,100 therms of natural gas a year, 80% furnace` → 88 MMBtu; a heat pump $1,624 against gas $1,650.
- `4 cords of oak a year, wood $280/cord, heat pump hspf 9` → 67.2 MMBtu; wood $1,120, heat pump $1,269.
- `old 1,800 sq ft farmhouse in zone 6, heat pump install $14,000, currently heating with oil` → oil $4,183, heat pump $2,556: pays back in 8.6 years.

### How-to examples

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

#### How to compare heating oil with a heat pump

```json
{"requests": ["we use 800 gallons of heating oil a year at $3.90/gal, what would a heat pump cost at 15 cents/kWh?"]}
```

Result: 94.2 MMBtu a year: oil $3,120, heat pump $1,533.

#### How to compare propane, heat pump and pellet costs

```json
{"requests": ["we spend $2,400 a year on propane at $2.90/gal, compare propane vs heat pump vs pellets"]}
```

Result: 828 gallons; a heat pump $1,327, pellets $1,919.

#### How to calculate heat pump payback

```json
{"requests": ["old 1,800 sq ft farmhouse in zone 6, heat pump install $14,000, currently heating with oil"]}
```

Result: Oil $4,183, heat pump $2,556: pays back in 8.6 years.

#### How to let an AI agent compare home heating costs

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/heating-cost-calculator`. The agent writes what the house burns now ("800 gallons of heating oil a year at $3.90/gal") and passes on the yearly cost of each fuel instead of guessing them.

### FAQ

**Which fuels does it compare?** Heating oil, propane, natural gas, electricity, heat pumps, wood and pellets.

**What if I don't know my fuel use?** Give the house size and place (`2,000 sq ft house in Ohio`) and it estimates the heat load.

**Which electricity price does it use?** $0.17 per kWh unless the request or `electricityPrice` says otherwise. Your own prices matter most.

**Can it work out payback?** Yes, when you give the install cost, as in the farmhouse example.

**How many can I run at once?** Up to 200 houses 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 as lines of text or objects (up to 200 per run) |
| `electricityPrice` | USD per kWh when a request doesn't say ($0.17 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": "heating", "title": "Heating cost for 94 million BTU a year",
  "summary": "94.2 million BTU of heat a year (800 gal of heating oil a year): cheapest is geothermal at $1,150 a year ($12.21/MMBtu); then natural gas $1,487, heat pump $1,533, wood $2,018. Now on heating oil at $3,120: switching to geothermal saves $1,970 a year.",
  "load": {"mmbtu": 94.2, "source": "800 gal of heating oil a year"},
  "options": [{"fuel": "heat pump", "system": "air-source heat pump", "unit": "kWh", "price": 0.15, "efficiency": 2.7, "costPerMMBtu": 16.28, "unitsPerYear": 10223, "annualCost": 1533, "co2Tons": 3.8, "current": false, "savingsVsCurrent": 1587}, "..."],
  "cheapest": "geothermal", "current": "heating oil", "switch": null,
  "units": {"heat": "MMBtu", "money": "USD", "co2": "metric tons"}
}
```

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. **Heat load**: fuel used × its heat content × the efficiency of the system burning it (oil 138,500 BTU/gal, propane 91,500, natural gas 100,000 a therm, electricity 3,412 a kWh, a cord of oak 24 million). From size: ft² × a heat loss of 0.15 (tight), 0.25 (average) or 0.38 (leaky) BTU/h·°F per ft² × heating degree days × 24, with typical degree days by climate zone and state.
2. **Each fuel**: units = load ÷ (heat content × efficiency); cost = units × price. Furnaces and boilers 95% (gas, propane) or 85% (oil), wood stoves 70%, pellet stoves 80%, heat pumps a seasonal COP of 3.0 to 2.1 by how cold the climate is (or HSPF ÷ 3.412), geothermal 3.6.
3. **Prices** default to typical US figures: $1.50 a therm, propane $2.75/gal, oil $4.00/gal, electricity $0.17/kWh, wood $300 a cord, pellets $350 a ton.
4. **CO2**: EPA factors for each fuel and the US grid average for electricity; wood and pellets count as zero (biogenic).
5. **Payback** = switch cost ÷ yearly savings against the current fuel.

### Pricing

You pay one low price per house compared, at the price shown on this page. 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

- **Your own prices matter most**: fuel and electricity prices vary by two to three times between states and seasons.
- **Use a full year of bills**, and take out what hot water, cooking and a dryer use on the same fuel, for the closest heat load.
- **Natural gas** needs a gas line at the street; geothermal and heat pumps cost more to install, so give the install cost for a payback.
- **Limits**: 200 requests per run; homes and small buildings in US units.

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

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~heating-cost-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["we spend $2,400 a year on propane at $2.90/gal, compare propane vs heat pump vs pellets"]}'
```

`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/heating-cost-calculator").call(run_input={
    "requests": [{"currentUnits": 900, "current": "heating oil", "prices": {"heating oil": 3.8, "electricity": 0.14}}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Values: fuel heat contents from the US EIA, emission factors from the US EPA, typical AFUE and heat pump efficiencies from ENERGY STAR and DOE 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. Give what the house uses now ('800 gallons of oil a year', '1,100 therms', '4 cords of oak', '$2,400 a year on propane'), or its size and climate ('2,000 sq ft in Ohio', 'zone 6', '6,000 HDD', 'old' or 'new'), or the heat load ('60 MMBtu'). Add prices ('$1.30/therm', '$2.90/gal', '15 cents/kWh', '$280/cord'), efficiencies ('80% furnace', 'heat pump hspf 9', 'cop 3'), the fuels to compare ('propane vs heat pump vs pellets') and a switch cost ('heat pump install $14,000'). Object fields: loadMMBtu, sqft, hdd, zone, state, tightness, current, currentUnits, currentSpend, prices {fuel or electricity: USD per unit}, efficiency {fuel: share or COP}, fuels, only, switchCost, switchTo, woodType, title, text.

## `electricityPrice` (type: `number`):

Used when a request doesn't give one (US average $0.17/kWh by default).

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

Yearly cost and CO2 of each fuel, with the current one and the cheapest marked.

## Actor input object example

```json
{
  "requests": [
    "we use 800 gallons of heating oil a year at $3.90/gal, what would a heat pump cost at 15 cents/kWh?",
    "we spend $2,400 a year on propane at $2.90/gal, compare propane vs heat pump vs pellets",
    "2,000 sq ft house in Ohio, natural gas $1.30/therm, electricity $0.16/kWh",
    "1,100 therms of natural gas a year, 80% furnace",
    "4 cords of oak a year, wood $280/cord, heat pump hspf 9",
    "old 1,800 sq ft farmhouse in zone 6, heat pump install $14,000, currently heating with oil",
    {
      "loadMMBtu": 60,
      "current": "electric resistance",
      "prices": {
        "electricity": 0.2
      },
      "fuels": [
        "electric resistance",
        "heat pump",
        "propane"
      ],
      "only": true
    }
  ],
  "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": [
        "we use 800 gallons of heating oil a year at $3.90/gal, what would a heat pump cost at 15 cents/kWh?",
        "we spend $2,400 a year on propane at $2.90/gal, compare propane vs heat pump vs pellets",
        "2,000 sq ft house in Ohio, natural gas $1.30/therm, electricity $0.16/kWh",
        "1,100 therms of natural gas a year, 80% furnace",
        "4 cords of oak a year, wood $280/cord, heat pump hspf 9",
        "old 1,800 sq ft farmhouse in zone 6, heat pump install $14,000, currently heating with oil",
        {
            "loadMMBtu": 60,
            "current": "electric resistance",
            "prices": {
                "electricity": 0.2
            },
            "fuels": [
                "electric resistance",
                "heat pump",
                "propane"
            ],
            "only": true
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/heating-cost-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": [
        "we use 800 gallons of heating oil a year at $3.90/gal, what would a heat pump cost at 15 cents/kWh?",
        "we spend $2,400 a year on propane at $2.90/gal, compare propane vs heat pump vs pellets",
        "2,000 sq ft house in Ohio, natural gas $1.30/therm, electricity $0.16/kWh",
        "1,100 therms of natural gas a year, 80% furnace",
        "4 cords of oak a year, wood $280/cord, heat pump hspf 9",
        "old 1,800 sq ft farmhouse in zone 6, heat pump install $14,000, currently heating with oil",
        {
            "loadMMBtu": 60,
            "current": "electric resistance",
            "prices": { "electricity": 0.2 },
            "fuels": [
                "electric resistance",
                "heat pump",
                "propane",
            ],
            "only": True,
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/heating-cost-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": [
    "we use 800 gallons of heating oil a year at $3.90/gal, what would a heat pump cost at 15 cents/kWh?",
    "we spend $2,400 a year on propane at $2.90/gal, compare propane vs heat pump vs pellets",
    "2,000 sq ft house in Ohio, natural gas $1.30/therm, electricity $0.16/kWh",
    "1,100 therms of natural gas a year, 80% furnace",
    "4 cords of oak a year, wood $280/cord, heat pump hspf 9",
    "old 1,800 sq ft farmhouse in zone 6, heat pump install $14,000, currently heating with oil",
    {
      "loadMMBtu": 60,
      "current": "electric resistance",
      "prices": {
        "electricity": 0.2
      },
      "fuels": [
        "electric resistance",
        "heat pump",
        "propane"
      ],
      "only": true
    }
  ]
}' |
apify call jumblemog/heating-cost-calculator --silent --output-dataset

```

## MCP server setup

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