Food Cost Calculator
Enter each ingredient from your supplier invoice. Pack size and quantity used must be in the same unit (grams, millilitres or pieces). Leave yield blank if nothing is trimmed or lost. Unused rows can stay empty.
The Food Cost Formula
Three steps, the same in the calculator and the spreadsheet:
- Line cost = purchase price ÷ pack size × quantity used ÷ yield
- Cost per portion = sum of line costs ÷ portions per batch
- Food cost % = cost per portion ÷ selling price
To set a price from a target, turn the last step round: price = cost per portion ÷ target food cost %.
A Worked Example
Example figures for illustration, not market prices. A batch of nasi lemak ayam makes 10 portions:
| Ingredient | Invoice | Used per batch | Yield | Line cost |
|---|---|---|---|---|
| Chicken legs | RM30 for 2,000 g | 1,500 g | 75% | RM30.00 |
| Rice | RM25 for 5,000 g | 1,000 g | blank (100%) | RM5.00 |
| Sambal base | RM12 for 1,000 g | 500 g | 100% | RM6.00 |
The batch costs RM41.00, so a portion costs RM4.10. Sold at RM15, the food cost is 27.3%. If you want food cost at 30%, the price that gets you there is RM13.67, so RM15 leaves room. The chicken line shows why yield matters: the recipe needs 1,500 g of usable meat, but at 75% yield you pay for 2,000 g, which raises that line from RM22.50 to RM30.00, a third more than a card that ignores the loss.
Yield: The Number Most Recipe Cards Leave Out
Yield is the share of what you buy that reaches the plate after deboning, trimming, peeling or cooking. A recipe card without it undercosts every protein and most vegetables. Measure it once in your own kitchen: weigh a delivery, prepare it the way the recipe says, weigh what is usable, and divide. Repeat when you change supplier or cut, because yield moves with both.
Which Price to Divide By
Use the menu price before service tax and service charge. A registered restaurant collects 6% service tax for the Government, and service charge goes to staff under their agreement, so neither is revenue you can spend on food. Dividing by the total on the receipt makes your food cost look lower than it is. The rules are in service charge and SST for restaurants.
For delivery, add the packaging for one order as an ingredient line and use the price you receive after the platform's commission, not the price the customer sees. See testing food packaging for delivery.
Setting Your Own Target
This page does not suggest a "right" food cost percentage, because the answer depends on your rent, staff and prices, not on an industry average. Work it out from your own budget: write down what share of sales rent, salaries, utilities, platform fees and profit each need, and what is left is the most food can take. The fixed costs are the same ones you listed in the opening cost worksheet.
Then cost every dish against that target. A dish above it is not automatically wrong: a high-cost item that sells with a high-margin drink can still pay its way. But you should know which dishes those are.
Download the Excel Recipe Card
Food cost recipe card (Excel, .xlsx) has the same formulas as the calculator, with the example above filled in. Yellow cells are inputs; everything else is a formula. Make one sheet per dish and re-cost it whenever a supplier changes a price. It opens in Excel, Google Sheets and Numbers.
Questions Operators Ask
- What is the food cost formula?
- Food cost per portion is the cost of every ingredient in a batch, each worked out as purchase price divided by pack size, times the quantity used, divided by yield, all divided by the portions the batch makes. Food cost percentage is that portion cost divided by the selling price.
- How do I calculate food cost percentage for a menu item?
- Divide the ingredient cost of one portion by its selling price before service tax and service charge. A RM4.10 portion sold at RM15 has a food cost of 27.3%.
- Is there a free food costing template in Excel?
- Yes. The recipe card on this page is a free Excel file with the same formulas as the calculator: enter supplier prices, pack sizes, quantities and yields, and it works out batch cost, cost per portion, food cost percentage and the price for your target.