# Recipe Scaling Calculator Example

Scale a recipe in Calcul.io by changing servings, multiplying ingredient amounts, and keeping the original and adjusted quantities visible on separate lines.

## Recipe scaling

Change the serving count and keep the original ingredient amounts beside the scaled values. This sample starts with four servings and scales to seven.

```calculio
originalServings = 4
targetServings = 7
flourGrams = 500
scaledFlourGrams = flourGrams * targetServings / originalServings
eggs = 3
scaledEggs = eggs * targetServings / originalServings
```

## How it works

1. Set `targetServings` to the number of people you need to feed.
2. Enter each original ingredient amount as its own named line.
3. Reuse the same scaling ratio for every adjusted ingredient.

Some ingredients do not scale perfectly, so treat the result as a starting point and round to practical kitchen measures.

[Next: split a loan formula into steps](https://calcul.io/examples/loan-payment/index.md)
