# Food Cost Calculator - Restaurant Plate Cost (`bardach_technologies/plate-cost-estimator`) Actor

Food cost calculator for restaurant menus: estimates each dish's plate cost and food-cost percentage from public average food prices (US BLS, Statistics Canada), with the ingredient rows. Paste dishes and menu prices or pick a menu scraper dataset. Dishes it cannot cost are free.

- **URL**: https://apify.com/bardach_technologies/plate-cost-estimator.md
- **Developed by:** [Bardach Technologies](https://apify.com/bardach_technologies) (community)
- **Categories:** Business, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 dish estimateds

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

**Food Cost Calculator** estimates the **plate cost (ingredient cost per serving) and food-cost percentage** of restaurant menu dishes. Give it dish names with their menu prices; get a cost range and food cost % for each dish, with the ingredient rows behind the number. Ingredient prices come from **public average food prices**: the US Bureau of Labor Statistics (BLS) average price data and the Statistics Canada monthly average retail prices.

### Use cases

- **Restaurant consultants**: a quick first read on a prospect's menu before you have supplier invoices.
- **Food-cost and menu-engineering software**: pre-fill estimated plate costs when a new restaurant is onboarded.
- **Menu benchmarking**: compare food cost % of burgers, pizzas or steak plates across many restaurants.
- **Teaching menu costing**: a transparent worked example with every ingredient row shown.

### What does the food cost calculator give you?

- **Plate cost low and high** for each dish, in USD (US) or CAD (Canada)
- **Food cost % low and high** (plate cost divided by the menu price)
- The **ingredient rows**: portion range, unit and cost of each costed ingredient
- The dish type and protein it recognised (burger, sandwich, pizza, steak plate, rice plate...)
- For dishes it cannot cost honestly: **no number, and the reason**

### How the estimate is made (documented method, no invented prices)

1. The dish name is matched to a reference recipe by type (burger, sandwich, pizza, steak plate, rice plate, protein plate...) and protein (chicken, sirloin, ground beef, pork...).
2. Portions are typical ranges for that dish type, main ingredients only (e.g. a 5-7 oz patty plus bun, cheese, lettuce, tomato). Oil, spices, sauces and garnish are **not** included.
3. Each ingredient is priced at the **average store price** of the country (BLS for the US, Statistics Canada for Canada). These are retail prices, not wholesale supplier prices.
4. Meat and fish are portioned as served; the raw weight bought is served / 0.75 (cooking loss).
5. Plate cost range = sum of the low portions ... sum of the high portions; food cost % = plate cost / menu price.

A dish that matches no recipe, needs an ingredient without a public price (lamb, duck, most fish in the US...), or gives an implausible result (food cost under 5 % or over 60 %) gets **no estimate and a reason**, never a guess.

**Strict mode** (default on) goes further. It returns numbers only for dish types whose costed ingredients are most of the plate (burgers, sandwiches, pizzas, sirloin-priced steak plates, rice plates). It refuses premium cuts, names or descriptions that promise fillings the recipe does not cost (wagyu, double patty, avocado, pulled pork...), and results that read implausibly low or high. Turn it off to get numbers for more dishes, knowing that sauces and sides are missing from them.

### How to calculate plate cost for a menu

1. Enter dishes in **Dishes** as `{"name": "Bacon Cheeseburger", "price": 16}` (the form starts with three examples), or pick a dataset from an earlier run of the Restaurant Menu Scraper in **Dataset (optional)**.
2. Choose the **Country**: US (USD, BLS) or CA (CAD, Statistics Canada).
3. Keep **Strict mode** on for fewer but safer numbers.
4. Click **Start** and download the result as CSV, Excel or JSON, or read it through the Apify API.

### Input

| Field | What it does |
|---|---|
| `dishes` | `[{"name": "Bacon Cheeseburger", "price": 16, "description": "optional", "mainCourse": false}]`. Items from the Restaurant Menu Scraper (`dish`, `price`, `description`, `mainCourse`) work as they are. |
| `datasetId` | Optional: also read dishes from one of your Apify datasets, such as a Restaurant Menu Scraper run. The run gets read-only access to the dataset you pick. |
| `country` | `US` (USD, BLS) or `CA` (CAD, Statistics Canada). |
| `strictMode` | Default on (see above). |

Set `mainCourse: true` for dishes from a mains section. A plain protein name ("Grilled Salmon") is then read as a plate rather than as a topping.

```json
{
  "dishes": [
    { "name": "Classic Cheeseburger", "price": 15 },
    { "name": "Steak Frites", "price": 32 },
    { "name": "Bacon Cheeseburger", "price": 16 }
  ],
  "country": "US",
  "strictMode": true
}
```

### Output

One item per dish. The first row is an estimated dish, the second a steak plate, the third a dish without an estimate (free).

```json
[
  {
    "dish": "Classic Cheeseburger",
    "menuPrice": 15.0,
    "currency": "USD",
    "country": "US",
    "estimated": true,
    "plateCostLow": 3.6,
    "plateCostHigh": 5.0,
    "foodCostPctLow": 24,
    "foodCostPctHigh": 33,
    "dishType": "burger",
    "protein": "ground_beef",
    "ingredients": [
      { "ingredient": "bread / bun / tortilla", "portionLow": 3, "portionHigh": 3.5, "unit": "oz", "costLow": 0.35, "costHigh": 0.41, "cookedWeight": false },
      { "ingredient": "ground beef", "portionLow": 5, "portionHigh": 7, "unit": "oz", "costLow": 2.81, "costHigh": 3.94, "cookedWeight": true },
      { "ingredient": "cheese", "portionLow": 0.75, "portionHigh": 1, "unit": "oz", "costLow": 0.29, "costHigh": 0.38, "cookedWeight": false },
      { "ingredient": "lettuce", "portionLow": 0.5, "portionHigh": 1, "unit": "oz", "costLow": 0.06, "costHigh": 0.12, "cookedWeight": false },
      { "ingredient": "tomatoes", "portionLow": 1, "portionHigh": 1.5, "unit": "oz", "costLow": 0.13, "costHigh": 0.2, "cookedWeight": false }
    ],
    "reason": "",
    "priceSource": "BLS CPI Average Price Data, U.S. city average",
    "priceMonth": "2026-10"
  },
  {
    "dish": "Steak Frites",
    "menuPrice": 32.0,
    "currency": "USD",
    "country": "US",
    "estimated": true,
    "plateCostLow": 9.5,
    "plateCostHigh": 12.0,
    "foodCostPctLow": 30,
    "foodCostPctHigh": 38,
    "dishType": "steak plate",
    "protein": "steak",
    "ingredients": [
      { "ingredient": "beef sirloin", "portionLow": 8, "portionHigh": 10, "unit": "oz", "costLow": 9.23, "costHigh": 11.54, "cookedWeight": true },
      { "ingredient": "potatoes", "portionLow": 5, "portionHigh": 7, "unit": "oz", "costLow": 0.31, "costHigh": 0.43, "cookedWeight": false }
    ],
    "reason": "",
    "priceSource": "BLS CPI Average Price Data, U.S. city average",
    "priceMonth": "2026-10"
  },
  {
    "dish": "Fries",
    "menuPrice": 6.0,
    "currency": "USD",
    "country": "US",
    "estimated": false,
    "plateCostLow": null,
    "plateCostHigh": null,
    "foodCostPctLow": null,
    "foodCostPctHigh": null,
    "dishType": null,
    "protein": null,
    "ingredients": [],
    "reason": "price outside 7-80 (a side, add-on or platter)",
    "priceSource": "BLS CPI Average Price Data, U.S. city average",
    "priceMonth": "2026-10"
  }
]
```

| Field | Example | Meaning |
|---|---|---|
| `menuPrice` | 15.0 | Menu price you gave |
| `plateCostLow` / `plateCostHigh` | 3.6 / 5.0 | Estimated plate cost range |
| `foodCostPctLow` / `foodCostPctHigh` | 24 / 33 | Food cost as a percent of menu price |
| `estimated` | false | No estimate made; the row is free |
| `reason` | price outside 7-80 ... | Why there is no estimate |
| `priceSource`, `priceMonth` | BLS ..., 2026-10 | Public price data used |

Dishes without an estimate have `estimated: false` and a `reason`, e.g. `price outside 7-80 (a side, add-on or platter)` or `strict mode: premium cut priced as sirloin`.

### Pricing

Pay per event, no subscription. Apify platform usage is not billed on top:

- **Dish estimated**: USD 0.002 per dish that gets an estimate (**USD 2 per 1,000**).
- **Dishes without an estimate are free.**
- **Actor start**: USD 0.00005 per run.

**How much does it cost?** A 40-dish menu where 10 dishes get an estimate costs about USD 0.02.

### Coverage, honestly

The method covers common casual-dining dishes best: burgers, sandwiches, pizzas, steak and rice plates, chicken and pork plates. On a sample of 77 dishes from two fine-dining and Cajun menus, strict mode estimated 1 dish and lenient mode 3. Most of the rest were starters and sides under USD 7 or dishes built on ingredients without a public price. Burgers and sirloin steak plates are where it is strongest.

The ingredient price table is a snapshot of the newest month BLS and Statistics Canada had published when this version was built (month shown in `priceMonth`). It is updated with new Actor versions, not live.

### FAQ

#### Is this my real food cost?

No. It is a rough, transparent estimate at store prices for the main ingredients. Use it to spot dishes worth a closer look, then cost them with your own invoices.

#### Why no UK/EU?

There is no free public table of average retail prices per ingredient as complete as the BLS and Statistics Canada ones yet.

#### Can I call it from my own code or an AI agent?

Yes: through the Apify API, a client library (Python, JavaScript), an integration (Make, Zapier, n8n) or the Apify MCP server.

#### Data sources and licences

BLS data is US public domain. Statistics Canada data is used under the Statistics Canada Open Licence ("Source: Statistics Canada, table 18-10-0245-01").

#### Related Actors from the same developer

**Restaurant Menu Scraper - Dishes & Prices** reads dishes and prices from restaurant websites; its dataset can be fed straight into this calculator.

# Actor input Schema

## `dishes` (type: `array`):

Menu dishes with their menu prices: a list of {"name": "Bacon Cheeseburger", "price": 16, "description": "optional", "mainCourse": false}. Items from the Restaurant Menu Scraper (dish, price, description, mainCourse) work as they are.

## `datasetId` (type: `string`):

Read dishes from one of your Apify datasets too, for example the default dataset of a Restaurant Menu Scraper run. Pick it from your account; through the API pass its dataset ID. The run gets read-only access to this dataset.

## `country` (type: `string`):

US: BLS average US city prices in USD. CA: Statistics Canada average retail prices in CAD.

## `strictMode` (type: `boolean`):

On: only dish types where the costed ingredients are most of the plate (burgers, sandwiches, pizzas, steak and rice plates) and no premium cuts or unlisted fillings. Off: more dishes get a number, but sauces and sides are missing from it.

## Actor input object example

```json
{
  "dishes": [
    {
      "name": "Classic Cheeseburger",
      "price": 15
    },
    {
      "name": "Steak Frites",
      "price": 32
    },
    {
      "name": "Bacon Cheeseburger",
      "price": 16
    }
  ],
  "country": "US",
  "strictMode": true
}
```

# Actor output Schema

## `results` (type: `string`):

One item per dish: plate cost range, food cost %, ingredient rows, or the reason there is no estimate.

## `summary` (type: `string`):

Dishes read and estimated.

# 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 = {
    "dishes": [
        {
            "name": "Classic Cheeseburger",
            "price": 15
        },
        {
            "name": "Steak Frites",
            "price": 32
        },
        {
            "name": "Bacon Cheeseburger",
            "price": 16
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bardach_technologies/plate-cost-estimator").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 = { "dishes": [
        {
            "name": "Classic Cheeseburger",
            "price": 15,
        },
        {
            "name": "Steak Frites",
            "price": 32,
        },
        {
            "name": "Bacon Cheeseburger",
            "price": 16,
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("bardach_technologies/plate-cost-estimator").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 '{
  "dishes": [
    {
      "name": "Classic Cheeseburger",
      "price": 15
    },
    {
      "name": "Steak Frites",
      "price": 32
    },
    {
      "name": "Bacon Cheeseburger",
      "price": 16
    }
  ]
}' |
apify call bardach_technologies/plate-cost-estimator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bardach_technologies/plate-cost-estimator"
        }
    }
}
```

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/GDltTop5PydVAVYG6/builds/fDZZU2H8LqqHKkM0n/openapi.json
