# Home Materials Calculator (Paint, Drywall, Floor, Fence) (`jumblemog/home-materials-calculator`) Actor

How much paint, drywall, flooring, fencing or mulch and gravel a home project needs, from plain text: gallons and cans, drywall sheets with mud, tape and screws, flooring boxes or tiles with thinset and grout, fence posts, rails, pickets and concrete, cubic yards and bags, and a shopping list.

- **URL**: https://apify.com/jumblemog/home-materials-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 Improvement Materials Calculator (Paint, Drywall, Flooring, Fence)

**Work out how much paint, drywall, flooring, fencing or mulch and gravel a home project needs, with a shopping list, from one line of text.** Ask `12x14 ft bedroom, 8 ft ceilings, 2 coats, 1 door 2 windows, laminate floor` or `150 ft of 6 ft privacy fence with 2 gates` and you get back:

- **Paint**: wall and ceiling areas less doors and windows, gallons for each coat and primer, and the cans to buy (5 gal buckets, gallons and quarts).
- **Drywall**: sheets (4x8, 4x10 or 4x12) with waste, joint compound pails, tape rolls and screws.
- **Flooring**: laminate, vinyl plank, hardwood or engineered boxes with underlayment, tiles counted with their joints plus thinset bags, trowel and grout, or carpet and pad yards, and the baseboard.
- **Fences**: wood privacy or picket, vinyl panel, chain link or split rail: posts and their length and depth, rails, pickets or panels, chain link fabric, top rails, tension bars and bands, and the concrete bags.
- **Landscape material**: mulch, gravel, pea gravel, crushed stone, river rock, topsoil, compost or sand in cubic feet, cubic yards to order, tons and bags.
- A **shopping list** for every request, a **chart** (with a to-scale fence section for fences) and a **Markdown report**.

It's made for:

- Homeowners and DIYers planning a weekend project and a trip to the store.
- Contractors, handymen and painters putting together a quick estimate.
- AI agents, chat assistants and home improvement apps that need material counts they can show their work for.

![A chart made by this Actor for a 150 ft, 6 ft privacy fence with 2 gates: one 8 ft section drawn to scale with its posts 2.5 ft deep in concrete, and the shopping list of 22 posts 4x4 x 10 ft, 57 rails, 345 pickets, 2,070 screws, 59 bags of concrete and 2 gate kits](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/home-materials-calculator-example.png?signature=1Ij7LjReHvoZMvuLDWAul)

### How to use it

1. Write **Projects**, one per entry. The form has examples.
2. Optionally set a **Default waste** for cuts and spares.
3. Click **Start**. Each request is a row in the results, with its summary, shopping list, chart and report.

#### What you can write

| You write | It means |
|---|---|
| `12x14 ft bedroom`, `8 ft ceilings`, `1 door 2 windows` | A room: floor, walls (8 ft high by default) and openings |
| `paint a 12x14 room, 2 coats, primer`, `no ceiling`, `400 sq ft per gallon` | Paint for the walls (and ceiling for a room) |
| `drywall for a 12x12 room with the ceiling`, `4x8 sheets` | Drywall, mud, tape and screws |
| `10x12 floor, 12x24 tile, 1/8 in grout`, `laminate for 300 sq ft`, `22.5 sq ft per box`, `diagonal` | Flooring |
| `150 ft of 6 ft privacy fence`, `picket`, `vinyl panel`, `chain link`, `split rail` | A fence and its style |
| `with 2 gates`, `L-shaped`, `3 sides`, `around the yard 60x40 ft`, `posts 8 ft apart`, `1x4 pickets` | Fence details |
| `10x20 ft mulch bed 3 in deep`, `gravel driveway 12x50 ft 4 in deep`, `topsoil 500 sq ft` | Landscape material |
| `15% waste`, `15 m2` | Waste and metric areas |

The same as an object: `{"type": "fence", "style": "chain link", "length": "200 ft", "height": "4 ft", "runs": 2, "gates": 1}`.

### Examples

- `12x14 ft bedroom, 8 ft ceilings, 2 coats, 1 door 2 windows, laminate floor` → 365 ft² of wall and 168 ft² of ceiling: wall paint 2 gallons and a quart, ceiling paint 1 gallon; 10 boxes of laminate, 2 rolls of underlayment and 49 ft of baseboard.
- `drywall for a 12x12 room with 8 ft walls and the ceiling` → 492 ft²: 12 sheets of 4x12, 2 pails of joint compound, 1 roll of tape, about 492 screws.
- `10x12 bathroom floor, 12x24 tile` → 68 tiles with 15% waste, 4 bags of thinset with a 1/2 in notch trowel and 8 lb of grout.
- `150 ft of 6 ft privacy fence with 2 gates` → 22 posts 10 ft long set 2.5 ft deep, 57 rails, 345 pickets and 59 bags of concrete.
- `10x20 ft mulch bed 3 in deep` → 1.85 yd³ (50 ft³): order 2 yd³ or 25 bags of 2 ft³.

### How-to examples

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

#### How to calculate paint and flooring for a room

```json
{"requests": ["12x14 ft bedroom, 8 ft ceilings, 2 coats, 1 door 2 windows, laminate floor"]}
```

Result: 365 ft² of wall and 168 ft² of ceiling: wall paint 2 gallons and a quart, ceiling paint 1 gallon; 10 boxes of laminate, 2 rolls of underlayment and 49 ft of baseboard.

#### How to estimate drywall sheets, mud and screws

```json
{"requests": ["drywall for a 12x12 room with 8 ft walls and the ceiling"]}
```

Result: 492 ft²: 12 sheets of 4x12, 2 pails of joint compound, 1 roll of tape, about 492 screws.

#### How to calculate posts, rails and pickets for a fence

```json
{"requests": ["150 ft of 6 ft privacy fence with 2 gates"]}
```

Result: 22 posts 10 ft long set 2.5 ft deep, 57 rails, 345 pickets and 59 bags of concrete.

#### How to let an AI agent estimate materials for a home project

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/home-materials-calculator`. The agent writes the project in plain words ("drywall for a 12x12 room with 8 ft walls") and passes on the quantities to buy instead of guessing them.

### FAQ

**What can it estimate?** Paint, drywall, flooring and tile, fences, and bulk materials such as mulch, from a room or project described in one line.

**How much waste does it add?** A typical allowance for each material (15% on the tile example above); set `waste` or say it in the request to change it.

**What if my room isn't a rectangle?** Give the wall or floor area instead, such as `350 sq ft of wall`.

**How exact are the numbers?** They're an estimate to shop with. Check the coverage on your product's label and buy a little extra from the same batch.

**How many can I run at once?** Up to 200 projects 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` | Projects, as lines of text or objects (up to 200 per run) |
| `waste` | Waste % when a request doesn't say |
| `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": 5, "status": "ok", "type": "fence", "title": "150 ft privacy fence",
  "summary": "150 ft of 6 ft privacy fence with 2 gates: 22 posts 10 ft long, 57 rails, 345 pickets and 59 bags of concrete.",
  "fence": {"style": "privacy", "length": 150, "height": 6, "runs": 1, "gates": 2, "postSpacing": 8, "sections": 19,
            "posts": 22, "postLength": 10, "postDepth": 2.5, "holeDiameter": 10.5, "concreteBags80lb": 59,
            "rails": 57, "railsPerSection": 3, "pickets": 345},
  "shopping": [{"item": "Posts 4×4 × 10 ft", "quantity": 22, "note": "2'-6\" in the ground, 8 ft apart"}, "..."],
  "units": {"length": "ft", "area": "ft²", "volume": "ft³ / yd³", "paint": "gal", "depth": "in", "weight": "lb / tons"}
}
```

A room has `room`, `paint` and `flooring`; paint has `surfaces` and `paint`; drywall has `surfaces` and `drywall`; flooring has `flooring`; landscape material has `bulk`. Every item has `shopping`, `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. **Walls**: perimeter × height, less 21 ft² per door and 15 ft² per window.
2. **Paint**: 350 ft² per gallon per coat and 300 for primer (typical label coverage), rounded up to quarts and bought as the usual mix of buckets, gallons and quarts.
3. **Drywall**: area plus 10% waste over the sheet size; about 138 lb of joint compound, 370 ft of tape and 1,000 screws per 1,000 ft².
4. **Flooring**: area plus 10% waste (15% diagonal, 20% herringbone, 5% more for 24 in tile); tiles counted with their joints, thinset by tile size and trowel, grout from the joint volume.
5. **Fences**: sections at the post spacing (8 ft wood, 10 ft chain link), a post at each end, corner and both sides of each gate, posts buried a third of the height plus 6 in (at least 2 ft) in holes three times their width, 2-4 rails by height, pickets by width and gap with 5% extra.
6. **Landscape**: area × depth in cubic yards, tons at the material's usual weight, ordered in quarter yards, or bags.

### Pricing

You pay one low price per request, at the price shown on this page: a room (paint and floor together) costs a little more than a single paint, drywall, flooring, fence or landscape request. 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

- **An estimate to shop with.** Check the coverage on your product's label and box, and buy a little extra from the same batch for touch-ups and repairs.
- **Fences**: go below your frost line where the ground freezes, call 811 before you dig, and check your town's height limits and HOA rules.
- **Rooms** are rectangles; for an odd shape give the wall area (`350 sq ft of wall`) or floor area instead.
- **Limits**: 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`, `shopping` and `warnings`. A direct API call that waits for the answer:

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~home-materials-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["paint a 12x14 room with 9 ft walls, 2 coats, primer", "100 ft of 4 ft picket fence, U-shaped"]}'
```

`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/home-materials-calculator").call(run_input={
    "requests": [{"type": "flooring", "floor": "tile", "length": "10 ft", "width": "12 ft", "tile": "12x24"}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Coverage figures: typical paint, flooring, thinset and grout label coverage, and USG drywall estimating figures.
- 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 project per entry, as a line of text or an object. Room: the size ('12x14 ft room', '8 ft ceilings', default 8 ft), doors and windows ('1 door 2 windows'), coats, 'primer', 'no ceiling', and the floor (laminate, vinyl plank, hardwood, engineered, carpet or '12x24 tile'). Paint: 'paint a 12x14 room', '400 sq ft of wall', '2 coats', '400 sq ft per gallon'. Drywall: 'drywall for a 12x12 room with the ceiling', '4x8 sheets'. Flooring: '10x12 floor, 12x24 tile, 1/8 in grout', 'laminate for 300 sq ft', '22.5 sq ft per box', 'diagonal', '15% waste'. Fence: '150 ft of 6 ft privacy fence' (privacy, picket, vinyl panel, chain link, split rail), 'with 2 gates', 'L-shaped' or '3 sides', 'posts 8 ft apart', '1x6 pickets'. Landscape: '10x20 ft mulch bed 3 in deep' (mulch, gravel, pea gravel, crushed stone, river rock, topsoil, compost, sand). Object fields: type (room, paint, drywall, flooring, fence, bulk), length, width, height, area, perimeter, doors, windows, coats, primer, ceiling, coverage, sheet, waste, floor, box, tile, joint, layout, style, spacing, runs, gates, picket, gap, bury, depth, material, title, text.

## `waste` (type: `integer`):

Extra for cuts and spares when a request doesn't say (10% for drywall and most floors, more for diagonal, herringbone and large tile).

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

The shopping list as a picture, with a to-scale fence section for fences.

## Actor input object example

```json
{
  "requests": [
    "12x14 ft bedroom, 8 ft ceilings, 2 coats, 1 door 2 windows, laminate floor",
    "paint a 12x14 room with 9 ft walls, 2 coats, primer, 1 door and 2 windows",
    "drywall for a 12x12 room with 8 ft walls and the ceiling",
    "10x12 bathroom floor, 12x24 tile",
    "150 ft of 6 ft privacy fence with 2 gates",
    "10x20 ft mulch bed 3 in deep",
    {
      "type": "fence",
      "style": "chain link",
      "length": "200 ft",
      "height": "4 ft",
      "runs": 2,
      "gates": 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`):

Shopping list 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": [
        "12x14 ft bedroom, 8 ft ceilings, 2 coats, 1 door 2 windows, laminate floor",
        "paint a 12x14 room with 9 ft walls, 2 coats, primer, 1 door and 2 windows",
        "drywall for a 12x12 room with 8 ft walls and the ceiling",
        "10x12 bathroom floor, 12x24 tile",
        "150 ft of 6 ft privacy fence with 2 gates",
        "10x20 ft mulch bed 3 in deep",
        {
            "type": "fence",
            "style": "chain link",
            "length": "200 ft",
            "height": "4 ft",
            "runs": 2,
            "gates": 1
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/home-materials-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": [
        "12x14 ft bedroom, 8 ft ceilings, 2 coats, 1 door 2 windows, laminate floor",
        "paint a 12x14 room with 9 ft walls, 2 coats, primer, 1 door and 2 windows",
        "drywall for a 12x12 room with 8 ft walls and the ceiling",
        "10x12 bathroom floor, 12x24 tile",
        "150 ft of 6 ft privacy fence with 2 gates",
        "10x20 ft mulch bed 3 in deep",
        {
            "type": "fence",
            "style": "chain link",
            "length": "200 ft",
            "height": "4 ft",
            "runs": 2,
            "gates": 1,
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/home-materials-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": [
    "12x14 ft bedroom, 8 ft ceilings, 2 coats, 1 door 2 windows, laminate floor",
    "paint a 12x14 room with 9 ft walls, 2 coats, primer, 1 door and 2 windows",
    "drywall for a 12x12 room with 8 ft walls and the ceiling",
    "10x12 bathroom floor, 12x24 tile",
    "150 ft of 6 ft privacy fence with 2 gates",
    "10x20 ft mulch bed 3 in deep",
    {
      "type": "fence",
      "style": "chain link",
      "length": "200 ft",
      "height": "4 ft",
      "runs": 2,
      "gates": 1
    }
  ]
}' |
apify call jumblemog/home-materials-calculator --silent --output-dataset

```

## MCP server setup

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