# Lawn Calculator (Grass Seed, Sod, Fertilizer & Lime) (`jumblemog/lawn-calculator`) Actor

Lawn materials from one line: grass seed for a new lawn or overseeding, sod pallets, fertilizer from the bag's N-P-K, lime or sulfur from a pH test, topsoil, compost and water, with cost.

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

## Lawn Calculator (Grass Seed, Sod, Fertilizer & Lime)

**Work out what a lawn needs from one line of text.** Ask `new lawn 5,000 sq ft, tall fescue, seed or sod?` and you get back:

- **Grass seed** by grass type for a new lawn or overseeding (extension-service rates), straw to cover it, when to plant and how long it takes to sprout.
- **Sod**: square feet with cuts, 16 × 24 in pieces, pallets, weight and the first weeks of watering.
- **Fertilizer** from the bag's N-P-K label: pounds per 1000 ft² for a nitrogen rate, total pounds and bags, what one bag covers, and a year of feedings for that grass.
- **Lime or sulfur** from a soil test pH, by soil texture, split into safe applications.
- **Topsoil or compost** in cubic yards and bags, and **water** in gallons a week.
- **A materials cost**, with seed against sod side by side.
- **Charts** (cost by item and a year of feeding by month) and a **Markdown report**.

It's made for:

- Homeowners starting, fixing or feeding a lawn.
- Lawn care and landscaping businesses quoting seed, sod and fertilizer jobs.
- AI agents, garden and home apps that need lawn numbers they can show their work for.

![A chart made by this Actor for a new 5,000 ft² tall fescue lawn: about $198 of materials with seed (35 lb of seed, straw and a starter fertilizer) against $2,362 for 12 pallets of sod, and a year of feeding with 0.5 lb of nitrogen in April and May and 1 lb in September and November](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/lawn-calculator-example.png?signature=cHdHy7l4Mk2cYDbt2Tt6)

### How to use it

1. Write **Requests**, one per lawn. The form has examples.
2. Optionally set the default **grass**.
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 |
|---|---|
| `5,000 sq ft`, `1/4 acre`, `50 x 80 ft`, `200 m2`, `minus a 400 sq ft patio` | The lawn's size |
| `tall fescue`, `kentucky bluegrass`, `perennial ryegrass`, `fine fescue`, `sun and shade mix`, `bermuda`, `zoysia`, `centipede`, `st augustine`, `bahia`, `buffalo grass` | The grass |
| `new lawn`, `seed`, `overseed`, `sod`, `seed or sod?` | Seed and sod |
| `32-0-4 fertilizer`, `1 lb nitrogen`, `15 lb bags` | Fertilizer |
| `ph 5.6`, `target 6.5`, `clay`, `sandy` | Lime or sulfur |
| `1/4 inch of compost`, `4 in of topsoil`, `water` | Topdressing and water |
| `$0.38/sq ft`, `$4/lb`, `$250 a pallet` | Prices |

The same as an object: `{"area": 10000, "grass": "zoysia", "jobs": ["sod", "fertilizer"], "npk": [16, 4, 8], "ph": 7.8, "soil": "sand"}`.

### Examples

- `new lawn 5,000 sq ft, tall fescue, seed or sod?` → 35 lb of seed, 5 straw bales and a starter fertilizer for about $198, or 12 pallets of sod for $2,362.
- `overseed 1/4 acre of kentucky bluegrass` → 16.3 lb of seed.
- `how much 32-0-4 fertilizer for 8,000 sq ft at 1 lb nitrogen, 15 lb bags` → 25 lb, 2 bags; one bag covers 4,800 ft².
- `soil ph 5.6 on 6,000 sq ft clay lawn, target 6.5` → 378 lb of lime in 2 applications.
- `sod for a 50 x 80 ft backyard minus a 400 sq ft patio, bermuda, $0.38/sq ft` → 9 pallets, $1,436.
- `1/4 inch of compost topdressing on 3,000 sq ft and how much water a week` → 2.3 yd³ of compost, 1,869 gal a week.

### How-to examples

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

#### How to calculate grass seed or sod for a new lawn

```json
{"requests": ["new lawn 5,000 sq ft, tall fescue, seed or sod?"]}
```

Result: 35 lb of seed, 5 straw bales and a starter fertilizer for about $198, or 12 pallets of sod for $2,362.

#### How to calculate fertilizer for a lawn

```json
{"requests": ["how much 32-0-4 fertilizer for 8,000 sq ft at 1 lb nitrogen, 15 lb bags"]}
```

Result: 25 lb, 2 bags; one bag covers 4,800 ft².

#### How to calculate lime to raise lawn soil pH

```json
{"requests": ["soil ph 5.6 on 6,000 sq ft clay lawn, target 6.5"]}
```

Result: 378 lb of lime in 2 applications.

#### How to let an AI agent work out lawn materials

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/lawn-calculator`. The agent writes the lawn and the job ("new lawn 5,000 sq ft, tall fescue") and passes on the seed, sod, fertilizer or lime to buy instead of guessing them.

### FAQ

**What can it calculate?** Seed for new lawns and overseeding, sod pallets, fertilizer from any N-P-K analysis, lime, compost topdressing and weekly water.

**Which grasses does it know?** Common cool- and warm-season grasses such as tall fescue, Kentucky bluegrass and bermuda; a sun and shade mix by default.

**Can it subtract a patio or driveway?** Yes: `50 x 80 ft backyard minus a 400 sq ft patio` works.

**Should I follow the lime and fertilizer rates?** They're typical rates. A soil test's recommendation wins, and many states limit phosphorus.

**How many can I run at once?** Up to 200 lawns 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` | Lawns as lines of text or objects (up to 200 per run) |
| `grass` | The grass when a request doesn't say (a sun and shade mix 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": "lawn", "title": "5,000 ft² tall fescue lawn",
  "summary": "5,000 ft² tall fescue lawn: 35.0 lb of seed (7 lb/1000 ft², $122); 12 pallets of sod (5,250 ft², 1,969 pieces, $2,362); 27.8 lb of 18-24-12 fertilizer (2 × 15 lb bags) for 1 lb N/1000 ft². About $198 in materials with seed ($2,398 with sod instead).",
  "lawn": {"areaFt2": 5000.0, "acres": 0.115, "grass": "tall fescue", "season": "cool", "mowHeightIn": "3-4", "soil": "loam"},
  "seed": {"mode": "new lawn", "rateLbPer1000": 7.0, "lb": 35.0, "pricePerLb": 3.5, "strawBales": 5, "daysToSprout": "7-14", "plantIn": "late summer to early fall (Aug 15-Sep 30)"},
  "sod": {"ft2": 5250.0, "pieces": 1969, "pallets": 12, "pricePerFt2": 0.45, "weightTons": 13.1},
  "fertilizer": {"npk": "18-24-12", "nRateLbPer1000": 1.0, "lbPer1000": 5.56, "lb": 27.8, "bags": 2, "bagCoversFt2": 2700.0, "yearlyNLbPer1000": 3.0, "applicationsPerYear": 4},
  "feeding": [{"month": "April", "monthNumber": 4, "lbN": 0.5}, "..."],
  "cost": {"seed": 122.0, "straw": 40.0, "sod": 2362.0, "fertilizer": 36.0, "total": 198.0},
  "units": {"area": "ft²", "weight": "lb", "volume": "yd³", "water": "gal", "money": "USD"}
}
```

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. **Seed**: pounds per 1000 ft² by grass from US extension guides (tall fescue 7 new / 4 overseed, Kentucky bluegrass 2.5 / 1.5, perennial ryegrass 7 / 4, bermuda 1.5 / 1, centipede 0.25 ...); St. Augustine is sod or plugs only. Straw at about a bale per 1000 ft².
2. **Sod**: area + 5%, in 16 × 24 in pieces (2.67 ft²) and pallets of about 450 ft², about 5 lb per ft².
3. **Fertilizer**: product per 1000 ft² = nitrogen rate ÷ N%; a starter 18-24-12 for new lawns and a 29-0-4 lawn food otherwise when no label is given; at most 1 lb N at a time. Yearly nitrogen and feeding months by grass (tall fescue 3 lb, cool-season mostly in fall; bermuda 4 lb in summer).
4. **pH**: about 25 / 50 / 70 lb of limestone per 1000 ft² per pH unit for sand / loam / clay, at most 50 lb at a time; elemental sulfur 10 / 15 / 20 lb per unit, at most 5 lb at a time.
5. **Topdressing**: area × depth (1/4 in compost or 4 in topsoil for a new lawn by default). **Water**: 0.623 gal per ft² per inch, 1 in a week.

### Pricing

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

- **A soil test wins**: lime, sulfur, phosphorus and potash should follow your test's recommendation; these are typical rates.
- **Check local rules**: many states limit phosphorus and fall nitrogen on lawns.
- **Prices vary by region and season**: give yours for seed, sod and pallets.
- **Limits**: 200 requests per run; US units with metric areas accepted.

### 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`, `seed`, `sod`, `fertilizer`, `ph`, `cost` and `warnings`. A direct API call that waits for the answer:

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~lawn-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["how much 24-0-6 fertilizer for 1/3 acre of bermuda"]}'
```

`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/lawn-calculator").call(run_input={
    "requests": [{"area": 7500, "grass": "bermuda", "jobs": ["sod", "fertilizer", "water"]}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Rates: typical US university extension-service recommendations for seeding, fertilizing and liming lawns.
- 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 lawn per entry, as a line of text or an object. Give its size ('5,000 sq ft', '1/4 acre', '50 x 80 ft', 'minus a 400 sq ft patio'), the grass ('tall fescue', 'kentucky bluegrass', 'bermuda', 'zoysia', 'st augustine' ...) and what it needs: 'seed', 'overseed', 'sod', fertilizer ('32-0-4 fertilizer', '1 lb nitrogen', '15 lb bags'), lime or sulfur ('ph 5.6', 'target 6.5', 'clay'), '1/4 inch of compost' or '4 in of topsoil', 'water'. Prices: '$0.38/sq ft' sod, '$4/lb' seed, '$250 a pallet'. Object fields: area, acres, length, width, rectangles, minus, grass, jobs, soil, npk, nRate, bagLb, ph, targetPh, depthIn, material, waterIn, prices, units, title, text.

## `grass` (type: `string`):

The grass when a request doesn't say (a cool-season sun and shade mix by default).

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

The materials cost by item and a year of feeding by month.

## Actor input object example

```json
{
  "requests": [
    "new lawn 5,000 sq ft, tall fescue, seed or sod?",
    "overseed 1/4 acre of kentucky bluegrass",
    "how much 32-0-4 fertilizer for 8,000 sq ft at 1 lb nitrogen, 15 lb bags",
    "soil ph 5.6 on 6,000 sq ft clay lawn, target 6.5",
    "sod for a 50 x 80 ft backyard minus a 400 sq ft patio, bermuda, $0.38/sq ft",
    "1/4 inch of compost topdressing on 3,000 sq ft and how much water a week",
    {
      "area": 10000,
      "grass": "zoysia",
      "jobs": [
        "sod",
        "fertilizer"
      ],
      "npk": [
        16,
        4,
        8
      ],
      "ph": 7.8,
      "soil": "sand"
    }
  ],
  "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": [
        "new lawn 5,000 sq ft, tall fescue, seed or sod?",
        "overseed 1/4 acre of kentucky bluegrass",
        "how much 32-0-4 fertilizer for 8,000 sq ft at 1 lb nitrogen, 15 lb bags",
        "soil ph 5.6 on 6,000 sq ft clay lawn, target 6.5",
        "sod for a 50 x 80 ft backyard minus a 400 sq ft patio, bermuda, $0.38/sq ft",
        "1/4 inch of compost topdressing on 3,000 sq ft and how much water a week",
        {
            "area": 10000,
            "grass": "zoysia",
            "jobs": [
                "sod",
                "fertilizer"
            ],
            "npk": [
                16,
                4,
                8
            ],
            "ph": 7.8,
            "soil": "sand"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/lawn-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": [
        "new lawn 5,000 sq ft, tall fescue, seed or sod?",
        "overseed 1/4 acre of kentucky bluegrass",
        "how much 32-0-4 fertilizer for 8,000 sq ft at 1 lb nitrogen, 15 lb bags",
        "soil ph 5.6 on 6,000 sq ft clay lawn, target 6.5",
        "sod for a 50 x 80 ft backyard minus a 400 sq ft patio, bermuda, $0.38/sq ft",
        "1/4 inch of compost topdressing on 3,000 sq ft and how much water a week",
        {
            "area": 10000,
            "grass": "zoysia",
            "jobs": [
                "sod",
                "fertilizer",
            ],
            "npk": [
                16,
                4,
                8,
            ],
            "ph": 7.8,
            "soil": "sand",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/lawn-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": [
    "new lawn 5,000 sq ft, tall fescue, seed or sod?",
    "overseed 1/4 acre of kentucky bluegrass",
    "how much 32-0-4 fertilizer for 8,000 sq ft at 1 lb nitrogen, 15 lb bags",
    "soil ph 5.6 on 6,000 sq ft clay lawn, target 6.5",
    "sod for a 50 x 80 ft backyard minus a 400 sq ft patio, bermuda, $0.38/sq ft",
    "1/4 inch of compost topdressing on 3,000 sq ft and how much water a week",
    {
      "area": 10000,
      "grass": "zoysia",
      "jobs": [
        "sod",
        "fertilizer"
      ],
      "npk": [
        16,
        4,
        8
      ],
      "ph": 7.8,
      "soil": "sand"
    }
  ]
}' |
apify call jumblemog/lawn-calculator --silent --output-dataset

```

## MCP server setup

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