# Recipe cost calculator

> Allocate ingredient purchase costs to recipe quantities and servings.

[Open tool](https://www.toolcabana.com/ii/recipe-cost-calculator) · [Cooking and household](https://www.toolcabana.com/ii/category/cooking-and-household)

Tool ID: recipe-cost-calculator. Requested language: ii. Description language: en. Complete guide translation: no; untranslated sections use English.

## Overview (en)

The recipe cost calculator works out what each ingredient costs in a recipe from the amount used, the package size and the package price. Enter one line per ingredient as name, used quantity, pack quantity and pack price, for example Flour,250,1000,2. It returns each allocated cost, the total recipe cost and the cost per serving.

## Supported tasks (en)

Allocate ingredient purchase costs to recipe quantities and servings.

## Steps (en)

1. Paste the source into the input editor, or load the built-in example.
2. Set recipe servings.
3. Run recipe cost calculator, review the output, then use the available copy or download controls.

## Settings

- Recipe servings (en; key: servings; type: number); minimum: 0.01; maximum: 1000000000000

## Limitations (en)

Local bounded calculations. Numeric inputs must be finite and within the visible ranges. Lists and tables have operation-specific limits. Models, estimates and supplied rates must be checked against your intended use.

## Example input

```text
Flour,250,1000,2
Milk,300,1000,1.5
```

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### How is the cost of each ingredient calculated?

Each line uses the used quantity divided by the pack quantity, multiplied by the pack price. Using 250 g from a 1000 g bag that costs 2 gives an allocated cost of 0.5. Both quantities must be in the same unit.

### How do I find the cost per serving of a recipe?

Set Recipe servings to the number of portions the recipe makes; fractional values from 0.01 are allowed. The tool divides the total of all allocated ingredient costs by that number.

### Can I include ingredients where I use a whole package?

Yes. Enter the same number for used and pack quantity, for example Eggs,6,6,3, and the full pack price is allocated. Pack quantity must be positive, and the used quantity and price cannot be negative.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

Local bounded calculations. Numeric inputs must be finite and within the visible ranges. Lists and tables have operation-specific limits. Models, estimates and supplied rates must be checked against your intended use.

## Related tools

- [Recipe scaler](https://www.toolcabana.com/ii/recipe-scaler)
- [Bakers percentage calculator](https://www.toolcabana.com/ii/bakers-percentage-calculator)
- [Cooking portion planner](https://www.toolcabana.com/ii/cooking-portion-planner)
- [Unit price comparer](https://www.toolcabana.com/ii/unit-price-comparer)
