# Bread & Pizza Dough Calculator (Baker's Percentages) (`jumblemog/bread-dough-calculator`) Actor

Bread and pizza dough from one line: baker's percentages scaled to loaves, pizzas, a pan or flour, total hydration with starter, yeast swaps and water temperature.

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

## Bread & Pizza Dough Calculator (Baker's Percentages)

**Work out a dough from one line of text.** Ask `sourdough, 2 loaves of 900 g, 78% hydration, room 70` and you get back:

- **Every ingredient in grams** (with ounces and cups or spoons) from baker's percentages: a style's formula, your own percentages, or a recipe's weights read back into percentages.
- **Scaled to what you're making**: loaves or pizzas of a given weight, pizzas by diameter, a loaf pan, a total dough weight or a flour weight.
- **Total hydration** counting the water and flour inside a sourdough starter or levain (at any starter hydration), milk, eggs and butter, and the share of prefermented flour.
- **Yeast in every form**: instant, active dry and fresh.
- **Water temperature** for a target dough temperature from the room, the flour, the starter and how you mix.
- **Charts** (ingredients by weight with their percentages, and total hydration) and a **Markdown report**.

It's made for:

- Home bakers and pizza makers scaling a formula or checking a recipe's hydration.
- Bakeries, pizzerias and cooking schools sizing batches.
- AI agents, recipe and cooking apps that need dough numbers they can show their work for.

![A chart made by this Actor for two 900 g sourdough loaves at 78% hydration: 900 g flour, 702 g water, 18 g salt and 180 g starter, and a total hydration of 80% once the starter's 90 g of flour and 90 g of water are counted](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/bread-dough-calculator-example.png?signature=PnYWmdwoAVOkTTTxmnsw)

### How to use it

1. Write **Requests**, one per dough. The form has examples.
2. Optionally set the default **room temperature** and **mixing**.
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 |
|---|---|
| `sourdough`, `baguette`, `sandwich bread`, `ciabatta`, `focaccia`, `neapolitan pizza`, `new york pizza`, `bagels`, `brioche`, `whole wheat` | A style's formula |
| `75% hydration`, `2% salt`, `20% levain`, `0.5% yeast`, `3% olive oil` | Your baker's percentages (over the style's) |
| `500 g flour, 375 g water, 10 g salt, 100 g starter` | A recipe to read and scale |
| `2 loaves of 900 g`, `4 pizzas 250 g each`, `4 12 inch pizzas`, `9x5 loaf pan`, `1 kg dough`, `6 bagels` | How much |
| `starter at 80% hydration`, `convert to active dry` | The starter and yeast |
| `room 68`, `ddt 76`, `flour temp 65`, `stand mixer` | For the water temperature |

The same as an object: `{"style": "brioche", "pieces": 2, "pieceG": 500}` or `{"percents": {"water": 70, "salt": 2, "instant yeast": 0.5}, "doughG": 1500}`.

### Examples

- `sourdough, 2 loaves of 900 g, 78% hydration, room 70` → 900 g flour, 702 g water, 18 g salt, 180 g starter; 80% total hydration; 98 °F water.
- `4 neapolitan pizzas 250 g each` → 606 g flour, 376 g water, 17 g salt, 1.2 g instant yeast.
- `500 g flour, 375 g water, 10 g salt, 100 g starter` → 75% water, 2% salt, 20% starter; 77% total hydration.
- `4 12 inch new york pizzas` → 294 g balls with 2% oil and 1% sugar.
- `9x5 loaf pan sandwich bread` → 885 g of dough.
- `baguette 70% hydration, 2% salt, 1% yeast, 500 g flour, convert to active dry` → 5 g instant = 6.2 g active dry = 15 g fresh yeast.

### How-to examples

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

#### How to scale a sourdough recipe by baker's percentages

```json
{"requests": ["sourdough, 2 loaves of 900 g, 78% hydration, room 70"]}
```

Result: 900 g flour, 702 g water, 18 g salt, 180 g starter; 80% total hydration; 98 °F water.

#### How to calculate pizza dough for Neapolitan pizzas

```json
{"requests": ["4 neapolitan pizzas 250 g each"]}
```

Result: 606 g flour, 376 g water, 17 g salt, 1.2 g instant yeast.

#### How to find the hydration of a recipe

```json
{"requests": ["500 g flour, 375 g water, 10 g salt, 100 g starter"]}
```

Result: 75% water, 2% salt, 20% starter; 77% total hydration.

#### How to let an AI agent scale a bread or pizza dough

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/bread-dough-calculator`. The agent writes the bake ("2 loaves of 900 g, 78% hydration") and passes on the grams of flour, water, salt and yeast or starter instead of guessing them.

### FAQ

**What can it do?** Scale doughs from baker's percentages, read the percentages back from a recipe, size dough for pizzas and loaf pans, convert yeast types and give a water temperature.

**Does it count the starter's flour and water?** Yes. Total hydration includes them, as in the 78% dough above that comes to 80%.

**Which units?** Grams in and out; ounces and pounds are accepted.

**Why does it give a water temperature?** So the mixed dough lands at a good temperature for your kitchen and mixer. Keep it under about 105 °F with yeast.

**How many can I run at once?** Up to 200 doughs 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` | Doughs as lines of text or objects (up to 200 per run) |
| `roomF` | The kitchen temperature in °F when a request doesn't say (72 °F by default) |
| `mixer` | How the dough is mixed, for its friction heat (by hand 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": "dough", "title": "Sourdough country loaf: 2 × 900 g",
  "summary": "2 loaves × 900 g: 900 g flour, 702 g water, 18 g salt, 180 g starter. Total hydration 80% with the starter; mix with 98 °F water for a 78 °F dough.",
  "dough": {"style": "sourdough country loaf", "amount": "2 loaves × 900 g", "flourG": 900.0, "totalG": 1800.0, "pieces": 2.0, "gramsEach": 900.0},
  "ingredients": [{"ingredient": "flour", "percent": 100.0, "grams": 900.0, "ounces": 31.75, "measure": "7.20 cups"}, {"ingredient": "water", "percent": 78.0, "grams": 702.0, "ounces": 24.76, "measure": "2.96 cups"}, "..."],
  "hydration": {"formula": 78.0, "total": 80.0, "starterFlourG": 90.0, "starterWaterG": 90.0, "totalFlourG": 990.0, "totalWaterG": 792.0, "prefermentedFlourPct": 9.1},
  "waterTemp": {"ddtF": 78.0, "roomF": 70.0, "flourF": 70.0, "mixer": "hand", "frictionF": 4.0, "waterF": 98.0, "waterC": 37.0},
  "units": {"weight": "g", "temperature": "°F"}
}
```

Every item has `warnings`, `notes` (every assumption and default), a Markdown `report` and links to the chart and report. A dough with yeast also has `yeast` (instant, active dry and fresh grams). A request that can't be computed has `"status": "failed"` and the reason in `error`, and isn't billed.

### How it works

1. **Baker's percentages**: flour is 100% and every ingredient is a share of it, so flour = dough weight ÷ (1 + the sum of the other percentages).
2. **Styles**: common formulas, such as sourdough 75% water, 2% salt, 20% starter; Neapolitan pizza 62% water, 2.8% salt, 0.2% instant yeast; focaccia 80% water, 6% olive oil; bagels 57% water with malt syrup.
3. **Amounts**: pizza balls by diameter × a thickness factor (2.2 g per in² Neapolitan, 2.6 New York); loaf pans at 0.4 g of dough per cm³ of pan; default piece weights by style.
4. **Total hydration**: the starter is split by its hydration into flour and water; milk counts as 87% water, eggs 75%, butter 16%.
5. **Water temperature**: desired dough temperature × 3 (× 4 with a starter) minus the room, flour, starter and mixing friction (by hand 4 °F, stand mixer 20 °F, spiral 26 °F).
6. **Yeast**: 1 g instant = 1.25 g active dry = 3 g fresh.

### Pricing

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

- **Weigh, don't scoop**: cups of flour vary by 20% or more; the grams are the recipe.
- **Flour matters**: whole wheat and strong bread flours drink more water; start lower and add.
- **Water temperature is a starting point**: keep it under about 105 °F with yeast, and use ice water in a hot kitchen.
- **Limits**: 200 requests per run; grams in and out, ounces and pounds 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`, `ingredients`, `hydration`, `yeast`, `waterTemp` and `warnings`. A direct API call that waits for the answer:

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~bread-dough-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["3 baguettes"]}'
```

`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/bread-dough-calculator").call(run_input={
    "requests": [{"percents": {"water": 70, "salt": 2, "instant yeast": 0.5}, "doughG": 1500, "roomF": 68}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Method: baker's percentages and the desired-dough-temperature rule as taught in professional baking; formulas are common starting points.
- 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 dough per entry, as a line of text or an object. Give a style ('sourdough', 'baguette', 'sandwich bread', 'ciabatta', 'focaccia', 'neapolitan pizza', 'new york pizza', 'bagels', 'brioche', 'whole wheat'), baker's percentages ('75% hydration, 2% salt, 20% levain, 0.5% yeast') or a recipe's weights ('500 g flour, 375 g water, 10 g salt'), and how much: '2 loaves of 900 g', '4 pizzas 250 g each', '4 12 inch pizzas', '9x5 loaf pan', '1 kg dough', '500 g flour'. Optionally 'starter at 80% hydration', 'convert to active dry', 'room 68', 'ddt 76', 'stand mixer'. Object fields: style, percents, hydration, weights, doughG, flourG, pieces, pieceG, pizzaIn, pan, starterHydration, yeastType, ddtF, roomF, flourF, mixer, title, text.

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

The kitchen when a request doesn't say, for the water temperature (72 °F by default).

## `mixer` (type: `string`):

How the dough is mixed, for its friction heat (by hand by default).

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

The ingredients by weight with baker's percentages, and the total hydration.

## Actor input object example

```json
{
  "requests": [
    "sourdough, 2 loaves of 900 g, 78% hydration, room 70",
    "4 neapolitan pizzas 250 g each",
    "500 g flour, 375 g water, 10 g salt, 100 g starter",
    "4 12 inch new york pizzas",
    "9x5 loaf pan sandwich bread",
    "75% hydration, 2.2% salt, 15% levain at 80% hydration, 1.5 kg dough, stand mixer, ddt 76",
    {
      "style": "brioche",
      "pieces": 2,
      "pieceG": 500
    }
  ],
  "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": [
        "sourdough, 2 loaves of 900 g, 78% hydration, room 70",
        "4 neapolitan pizzas 250 g each",
        "500 g flour, 375 g water, 10 g salt, 100 g starter",
        "4 12 inch new york pizzas",
        "9x5 loaf pan sandwich bread",
        "75% hydration, 2.2% salt, 15% levain at 80% hydration, 1.5 kg dough, stand mixer, ddt 76",
        {
            "style": "brioche",
            "pieces": 2,
            "pieceG": 500
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/bread-dough-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": [
        "sourdough, 2 loaves of 900 g, 78% hydration, room 70",
        "4 neapolitan pizzas 250 g each",
        "500 g flour, 375 g water, 10 g salt, 100 g starter",
        "4 12 inch new york pizzas",
        "9x5 loaf pan sandwich bread",
        "75% hydration, 2.2% salt, 15% levain at 80% hydration, 1.5 kg dough, stand mixer, ddt 76",
        {
            "style": "brioche",
            "pieces": 2,
            "pieceG": 500,
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/bread-dough-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": [
    "sourdough, 2 loaves of 900 g, 78% hydration, room 70",
    "4 neapolitan pizzas 250 g each",
    "500 g flour, 375 g water, 10 g salt, 100 g starter",
    "4 12 inch new york pizzas",
    "9x5 loaf pan sandwich bread",
    "75% hydration, 2.2% salt, 15% levain at 80% hydration, 1.5 kg dough, stand mixer, ddt 76",
    {
      "style": "brioche",
      "pieces": 2,
      "pieceG": 500
    }
  ]
}' |
apify call jumblemog/bread-dough-calculator --silent --output-dataset

```

## MCP server setup

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