# Aquarium Calculator (Gallons, Weight, Heater & Filter) (`jumblemog/aquarium-calculator`) Actor

Fish tank numbers from one line: gallons and liters for any tank shape or standard size, filled weight, heater watts, filter gph, substrate, water changes and salt.

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

## Aquarium Calculator (Gallons, Weight, Heater & Filter)

**Work out a fish tank from one line of text.** Ask `55 gallon tropical tank, room 68, what heater and filter` and you get back:

- **Volume** in gallons and liters for 22 standard glass tanks (2.5 to 300 gallons, `20 long`, `40 breeder` ...) or any rectangle, bowfront, cylinder, hexagon or corner tank in inches or centimeters, and the water left after substrate and decor.
- **Weight**: the empty tank, water (fresh or salt), substrate and live rock, the filled total and the pounds per square foot on the stand.
- **Heater** watts to hold the water temperature in your room, rounded to heater sizes, split into two heaters for big tanks.
- **Filter** flow in gallons per hour for the tank kind (tropical, planted, goldfish, African cichlid, betta, saltwater, reef), with powerhead flow for a reef.
- **Substrate** pounds and bags, **weekly water changes**, and **salt mix** for marine tanks, plus a rough stocking guide.
- **Charts** (weight on the stand and heater watts by room temperature) and a **Markdown report**.

It's made for:

- Fishkeepers setting up or upgrading a tank.
- Aquarium shops and builders quoting tanks, stands, heaters and filters.
- AI agents, pet and hobby apps that need aquarium numbers they can show their work for.

![A chart made by this Actor for a standard 55 gallon tropical tank in a 68 °F room: 550 lb filled (78 lb of glass, 402 lb of water, 72 lb of gravel) or 127 lb per square foot of stand, and the heater watts needed falling from about 550 W in a 55 °F room to 241 W at 68 °F](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/aquarium-calculator-example.png?signature=Ze4am1N2XaaAXTe7i5ZA)

### How to use it

1. Write **Requests**, one per tank. The form has examples.
2. Optionally set the default **tank kind** and **room temperature**.
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 |
|---|---|
| `55 gallon`, `20 long`, `40 breeder`, `29 gal`, `200 liter` | A standard tank or a volume |
| `48 x 18 x 21 in`, `90 x 45 x 45 cm` | Length × width × height |
| `bowfront with 3 in bow`, `cylinder 18 in diameter 30 in tall`, `hexagon 12 inch sides 24 inches tall`, `corner 24 in sides 20 in tall` | Other shapes |
| `tropical`, `planted`, `goldfish`, `african cichlids`, `betta`, `saltwater`, `reef` | The kind of tank |
| `room 68`, `basement at 60`, `keep it at 80`, `room 20c` | Room and water temperature |
| `2 inches of sand`, `aquasoil`, `bare bottom`, `acrylic`, `25% weekly` | Substrate, material, water changes |

The same as an object: `{"length": 120, "width": 60, "height": 60, "units": "cm", "kind": "planted", "roomC": 19}`.

### Examples

- `55 gallon tropical tank, room 68, what heater and filter` → 56.7 gal of glass, 48 gal of water, 550 lb filled, a 250 W heater, a 190-290 gph filter.
- `75 gallon reef with 1.5 inches of aragonite` → 860 lb filled with rock, a 300 W heater, 1,340-2,670 gph of powerheads, salt mix to fill.
- `90 x 45 x 45 cm planted tank` → 182 L, a 150 W heater, 65 lb of aquasoil.
- `20 long goldfish tank` → no heater, a 130-160 gph filter, room for one fancy goldfish.
- `36 x 15 x 20 bowfront with 3 in bow, african cichlids, sand` → 53 gal, a 270-450 gph filter.
- `cylinder 18 in diameter 30 in tall` → 33 gal, 177 lb per ft² on its small footprint.

### How-to examples

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

#### How to calculate aquarium gallons, weight and heater size

```json
{"requests": ["55 gallon tropical tank, room 68, what heater and filter"]}
```

Result: 56.7 gal of glass, 48 gal of water, 550 lb filled, a 250 W heater, a 190-290 gph filter.

#### How to plan a reef tank

```json
{"requests": ["75 gallon reef with 1.5 inches of aragonite"]}
```

Result: 860 lb filled with rock, a 300 W heater, 1,340-2,670 gph of powerheads, salt mix to fill.

#### How to calculate the volume of a tank in centimetres

```json
{"requests": ["90 x 45 x 45 cm planted tank"]}
```

Result: 182 L, a 150 W heater, 65 lb of aquasoil.

#### How to let an AI agent plan an aquarium

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/aquarium-calculator`. The agent writes the tank ("55 gallon tropical tank, room 68") and passes on the volume, filled weight, heater watts and filter flow instead of guessing them.

### FAQ

**What does it calculate?** Volume, water and filled weight, heater watts, filter or powerhead flow, substrate and a rough stocking guide.

**Which tank shapes?** Rectangles, bowfronts and cylinders by dimensions, or standard sizes by name such as `20 long`.

**Which kinds of tank?** Tropical freshwater by default, plus goldfish, planted, cichlid and reef tanks.

**Will my floor hold it?** A filled tank puts 100-180 lb per ft² on its footprint; set big tanks across the joists near a load-bearing wall.

**How many can I run at once?** Up to 200 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` | Tanks as lines of text or objects (up to 200 per run) |
| `kind` | The kind of tank when a request doesn't say (tropical freshwater by default) |
| `roomF` | The room temperature in °F for heater watts (70 °F 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": "aquarium", "title": "55 gallon tropical freshwater aquarium",
  "summary": "55 gallon: 56.7 gal (215 L) of glass, about 48 gal of water; 550 lb filled (127 lb/ft²); a 250 W heater (68 °F room), a filter of 190-290 gph, 72 lb of gravel; change 12 gal a week.",
  "tank": {"shape": "rectangle", "standard": "55 gallon", "material": "glass", "kind": "tropical freshwater", "lengthIn": 48.0, "lengthCm": 121.9, "widthIn": 13.0, "widthCm": 33.0, "heightIn": 21.0, "heightCm": 53.3, "grossGal": 56.7, "grossL": 215.0, "waterGal": 48.2, "waterL": 183.0, "footprintFt2": 4.33},
  "weight": {"emptyTankLb": 78.0, "waterLb": 402.0, "substrateLb": 72.0, "rockLb": 0.0, "totalLb": 550.0, "lbPerFt2": 127.0},
  "heater": {"needed": true, "roomF": 68.0, "targetF": 78.0, "riseF": 10.0, "watts": 241.0, "heaters": 1, "wattsEach": 250},
  "filter": {"turnoverPerHour": "4-6", "gphMin": 190.0, "gphMax": 290.0},
  "substrate": {"type": "gravel", "depthIn": 2.0, "lb": 72.0, "bags": 3, "bagLb": 25},
  "water": {"weeklySharePct": 25.0, "weeklyGal": 12.1, "weeklyL": 45.6},
  "stocking": {"inchesOfFish": 48.0, "rule": "1 in of slim adult fish per gallon or per 12 in² of surface, whichever is less"},
  "units": {"length": "in", "volume": "gal", "weight": "lb", "temperature": "°F", "flow": "gph"}
}
```

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. **Volume**: inside dimensions ÷ 231 in³ per gallon (3.785 L); a bowfront adds the circular segment of its bow; cylinders, hexagons and quarter-circle corner tanks by their areas. About 85% of that is water once the fill line, substrate and decor take their share.
2. **Weight**: standard tanks use their published empty weights, other glass tanks about 1.5 lb per gallon and acrylic 0.6; water at 8.34 lb/gal fresh or 8.55 salt; substrate at 60-100 lb/ft³; live rock about 1 lb per gallon in marine tanks.
3. **Heater**: about 0.5 W per gallon for each °F above the room (5 W per gallon for a 10 °F rise), rounded up to a heater size; over 300 W split into two heaters so one failing can't cook or chill the tank.
4. **Filter**: turnover per hour by kind: 4-6 for tropical and planted, 8-10 for goldfish, 6-10 for cichlids, 5-10 for marine return flow plus 20-40 for reef powerheads.
5. **Water**: weekly changes of 25-30% freshwater or 10% marine; salt mix about 0.29 lb per gallon for a specific gravity of 1.025.

### Pricing

You pay one low price per tank, 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

- **Floors**: a filled tank puts 100-180 lb per ft² on its stand's footprint; set big tanks across the joists near a load-bearing wall.
- **Stocking**: the inch-per-gallon rule is a rough start; adult size, behavior and filtration matter more, so check each species.
- **Filters**: rated gph drops with media and height; pick one rated above the range shown.
- **Limits**: 200 requests per run; inches or centimeters in, US and metric volumes out.

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

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~aquarium-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["40 breeder planted tank, room 65"]}'
```

`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/aquarium-calculator").call(run_input={
    "requests": [{"standard": "75", "kind": "reef", "roomF": 72, "substrate": "aragonite", "substrateIn": 1.5}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Rules: common fishkeeping guidance for tank volumes, standard glass tank sizes and weights, heater and filter sizing, and marine salt mixing.
- 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 tank per entry, as a line of text or an object. Give a standard size ('55 gallon', '20 long', '40 breeder'), dimensions ('48 x 18 x 21 in', '90 x 45 x 45 cm'), a bowfront ('with 3 in bow'), a cylinder ('18 in diameter 30 in tall'), a hexagon or corner tank ('12 inch sides 24 inches tall') or just gallons or liters; the kind ('tropical', 'planted', 'goldfish', 'african cichlids', 'betta', 'saltwater', 'reef'); and optionally 'room 68', 'keep it at 80', '2 inches of sand', 'acrylic', '25% weekly'. Object fields: standard, gallons, liters, shape, length, width, height, diameter, side, bow, units (in or cm), kind, roomF/roomC, targetF/targetC, substrate, substrateIn, material, changeShare, rockLb, title, text.

## `kind` (type: `string`):

The kind of tank when a request doesn't say (tropical freshwater by default).

## `roomF` (type: `number`):

The room the tank is in, for heater watts (70 °F by default).

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

The weight on the stand and the heater watts by room temperature.

## Actor input object example

```json
{
  "requests": [
    "55 gallon tropical tank, room 68, what heater and filter",
    "75 gallon reef with 1.5 inches of aragonite",
    "90 x 45 x 45 cm planted tank",
    "20 long goldfish tank",
    "36 x 15 x 20 bowfront with 3 in bow, african cichlids, sand",
    "cylinder 18 in diameter 30 in tall",
    {
      "length": 120,
      "width": 60,
      "height": 60,
      "units": "cm",
      "kind": "planted",
      "roomC": 19
    }
  ],
  "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": [
        "55 gallon tropical tank, room 68, what heater and filter",
        "75 gallon reef with 1.5 inches of aragonite",
        "90 x 45 x 45 cm planted tank",
        "20 long goldfish tank",
        "36 x 15 x 20 bowfront with 3 in bow, african cichlids, sand",
        "cylinder 18 in diameter 30 in tall",
        {
            "length": 120,
            "width": 60,
            "height": 60,
            "units": "cm",
            "kind": "planted",
            "roomC": 19
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/aquarium-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": [
        "55 gallon tropical tank, room 68, what heater and filter",
        "75 gallon reef with 1.5 inches of aragonite",
        "90 x 45 x 45 cm planted tank",
        "20 long goldfish tank",
        "36 x 15 x 20 bowfront with 3 in bow, african cichlids, sand",
        "cylinder 18 in diameter 30 in tall",
        {
            "length": 120,
            "width": 60,
            "height": 60,
            "units": "cm",
            "kind": "planted",
            "roomC": 19,
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/aquarium-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": [
    "55 gallon tropical tank, room 68, what heater and filter",
    "75 gallon reef with 1.5 inches of aragonite",
    "90 x 45 x 45 cm planted tank",
    "20 long goldfish tank",
    "36 x 15 x 20 bowfront with 3 in bow, african cichlids, sand",
    "cylinder 18 in diameter 30 in tall",
    {
      "length": 120,
      "width": 60,
      "height": 60,
      "units": "cm",
      "kind": "planted",
      "roomC": 19
    }
  ]
}' |
apify call jumblemog/aquarium-calculator --silent --output-dataset

```

## MCP server setup

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