# Baking Substitution Calculator

> Scales standard baking substitutions (buttermilk, egg, butter to oil, oil to butter, cake flour, self-rising flour, brown sugar, baking powder, sour cream, heavy cream, honey for sugar, cornstarch, whole milk, yogurt) to the amount in a recipe, given in cups, tablespoons, teaspoons, millilitres, grams or pieces, with gram equivalents for the components that are usually weighed.

- Calculator id: `baking-substitutions` · Category: Food & Cooking (`food`) · Tool name: `suggest_baking_substitution`
- Canonical page: https://tttkmbb.com/food/baking-substitutions · This document: https://tttkmbb.com/food/baking-substitutions.md · JSON definition: https://tttkmbb.com/food/baking-substitutions.json

## Purpose

Scales standard baking substitutions (buttermilk, egg, butter to oil, oil to butter, cake flour, self-rising flour, brown sugar, baking powder, sour cream, heavy cream, honey for sugar, cornstarch, whole milk, yogurt) to the amount in a recipe, given in cups, tablespoons, teaspoons, millilitres, grams or pieces, with gram equivalents for the components that are usually weighed.

**Use when:** You are missing a baking ingredient and need the replacement quantities for the exact amount your recipe calls for.

**Do not use when:** The ingredient is the structural core of the recipe in large amounts (more than about 2 eggs in a cake, butter in laminated pastry, cream that must be whipped), or you only need a unit conversion (use cooking-converter).

## Input

| Parameter | Type | Unit | Required | Description |
| --- | --- | --- | --- | --- |
| `ingredient` | enum: buttermilk \| egg \| butter_to_oil \| oil_to_butter \| cake_flour \| self_rising_flour \| brown_sugar \| baking_powder \| sour_cream \| heavy_cream \| honey_for_sugar \| cornstarch_for_flour \| whole_milk \| yogurt |  | required | The ingredient you do not have (or, for butter_to_oil, oil_to_butter and honey_for_sugar, the one you want to replace). |
| `amount` | number |  | required | Quantity of the ingredient in the recipe, in unit. (> 0, max 10000) |
| `unit` | enum: cup \| tbsp \| tsp \| g \| ml \| piece |  | optional, default "cup" | Unit of amount; eggs are counted in pieces (or grams at 50 g each); metric inputs (ml) give metric substitutes. |

## Output

| Field | Type | Unit | Description |
| --- | --- | --- | --- |
| `substitutes` | string_list |  | Each alternative substitution scaled to the amount (components joined with +, gram equivalents in parentheses where the component is usually weighed). |
| `primary_substitute` | string |  | The first (most common) substitution, scaled. |
| `scaled_amount_text` | string |  | The ingredient amount being replaced, with its equivalent in the rule's base unit when converted. |
| `notes` | string |  | How to prepare the substitute and where it does not work. |

## Formula

`factor = amount expressed in the rule's base unit (cup, tbsp, tsp or piece): 1 cup = 16 tbsp = 48 tsp = 236.6 ml; grams ÷ (g per cup: buttermilk, milk, yogurt 245; butter 227; oil 218; flour 120; brown sugar 220; sugar 200; sour cream 230; heavy cream 238; baking powder 4 g/tsp; cornstarch 8 g/tbsp; egg 50 g each); each component = rule quantity × factor. Rules: 1 cup buttermilk → 1 cup milk + 1 tbsp vinegar or lemon juice; 1 egg → 1 tbsp ground flaxseed + 3 tbsp water, or ¼ cup applesauce, or ¼ cup mashed banana; 1 cup butter → ¾ cup oil; 1 cup oil → 1¼ cups melted butter; 1 cup cake flour → 1 cup all-purpose flour − 2 tbsp + 2 tbsp cornstarch; 1 cup self-rising flour → 1 cup all-purpose flour + 1½ tsp baking powder + ¼ tsp salt; 1 cup brown sugar → 1 cup white sugar + 1 tbsp molasses; 1 tsp baking powder → ¼ tsp baking soda + ½ tsp cream of tartar; 1 cup sour cream → 1 cup plain yogurt; 1 cup heavy cream → ¾ cup milk + ¼ cup melted butter; 1 cup sugar → ¾ cup honey and ¼ cup less liquid; 1 tbsp cornstarch → 2 tbsp all-purpose flour; 1 cup whole milk → ½ cup evaporated milk + ½ cup water; 1 cup yogurt → 1 cup sour cream or buttermilk`

These are the common home-baking equivalents published by baking references; they reproduce the ingredient's function (acidity, fat, leavening, thickening) approximately and can change texture and browning. Gram equivalents use USDA / King Arthur volume-to-weight values (per US cup: oil 218 g, butter 227 g, all-purpose flour 120 g, sugar 200 g, honey 340 g, cornstarch 128 g).

## Data Sources

- King Arthur Baking – Ingredient weight chart — https://www.kingarthurbaking.com/learn/ingredient-weight-chart (reference, retrieved 2026-09-24)
- USDA FoodData Central (volume-to-weight data for common ingredients) — https://fdc.nal.usda.gov/ (government, retrieved 2026-09-24)

Data freshness: `static`. Deterministic formula with fixed constants; results never go stale. Inputs supplied by the caller determine the output.

## API

- `GET https://tttkmbb.com/api/v1/calculate/baking-substitutions?ingredient=…&amount=…`
- `POST https://tttkmbb.com/api/v1/calculate/baking-substitutions` with JSON body `{"inputs": {…}}`
- Response: unified envelope (`success`, `request`, `result.values`, `result.units`, `sources`, `freshness`, `timestamp`, `next_actions`, `links`); see https://tttkmbb.com/docs/response-format.md
- Schema: https://tttkmbb.com/api/v1/calculators/baking-substitutions · OpenAPI operationId `suggest_baking_substitution` in https://tttkmbb.com/openapi.json
- Authentication: none. Rate limit: fair use, see https://tttkmbb.com/docs/rate-limits.md.

## MCP

- Server: `https://tttkmbb.com/mcp` (Streamable HTTP, JSON-RPC 2.0, no auth)
- Tool:  `run_calculator` with `{"calculator_id": "baking-substitutions", "inputs": {…}}`

## Example

- 2 cups buttermilk: inputs `{"ingredient":"buttermilk","amount":2,"unit":"cup"}` → `{"primary_substitute":"2 cups milk + 2 tbsp vinegar or lemon juice","scaled_amount_text":"2 cups buttermilk"}`
- 1 cup butter → oil: inputs `{"ingredient":"butter_to_oil","amount":1,"unit":"cup"}` → `{"primary_substitute":"0.75 cup oil (about 164 g)","substitutes":["0.75 cup oil (about 164 g)"]}`

```
GET https://tttkmbb.com/api/v1/calculate/baking-substitutions?ingredient=buttermilk&amount=2&unit=cup
```

## Limitations

The ingredient is the structural core of the recipe in large amounts (more than about 2 eggs in a cake, butter in laminated pastry, cream that must be whipped), or you only need a unit conversion (use cooking-converter). These are the common home-baking equivalents published by baking references; they reproduce the ingredient's function (acidity, fat, leavening, thickening) approximately and can change texture and browning. Gram equivalents use USDA / King Arthur volume-to-weight values (per US cup: oil 218 g, butter 227 g, all-purpose flour 120 g, sugar 200 g, honey 340 g, cornstarch 128 g). All values are computed from the formula above; no measurement or live data is involved.

## FAQ

**Can I use these in any recipe?**

They work in most cakes, muffins, quick breads, pancakes and cookies. Recipes that depend on the exact ingredient (whipped cream, meringue, laminated doughs, candy) usually fail with substitutes.

**Why does the butter-to-oil rule use less oil?**

Butter is about 80 % fat and 16–18 % water, so ¾ cup of oil supplies the same fat as 1 cup of butter; add 1–2 tablespoons of liquid if the batter looks dry.

**Are the egg substitutes suitable for all eggs in a recipe?**

Only for recipes with up to about 2 eggs, where eggs add moisture and binding rather than structure; flax works in dense bakes, applesauce and banana in moist cakes and muffins.

## Related

- [Cooking Measurement Converter](https://tttkmbb.com/food/cooking-converter.md) — Convert cups, tablespoons and millilitres.
- [Yeast Conversion Calculator](https://tttkmbb.com/food/yeast-conversion.md) — Swap instant, active dry and fresh yeast.
- [Recipe Scaler](https://tttkmbb.com/food/recipe-scaler.md) — Scale the whole recipe before substituting.
