ABC-XYZ menu analysis: profitable and loss-making dishes
ABC-XYZ analysis shows which dishes bring in most of the profit and which lose money. A simple explanation, an example and an Excel calculation for your menu.
ABC-XYZ menu analysis sorts dishes by two criteria: how much money each one brings in (ABC) and how steadily it sells (XYZ). Where the two meet, you get nine groups, and each has a clear course of action: keep and promote, raise the price, plan prep week by week, or drop it from the delivery menu. Run ABC on contribution margin, not revenue: your best-selling dish may be earning less than others.
Below is a step-by-step calculation on a sample menu of ten items, with ready-to-use Excel formulas, a breakdown of what to do with each group, and what changes when you analyse delivery.
In short:
- ABC by revenue and ABC by contribution margin give different results; make menu decisions based on margin.
- Calculate XYZ from weekly sales, not daily: daily restaurant sales are too noisy.
- Group C is not a death sentence: first check whether the dish holds whole orders together, and only then remove it.
- In delivery, calculate a dish's margin including packaging and the channel commission: a cheap dish with a high food cost may earn next to nothing on an aggregator.
What data you need
- Weekly sales for each item — over 6–12 weeks, excluding holiday weeks or with those weeks flagged.
- Price — separately for each channel if it differs between dine-in, your own delivery and the aggregator.
- Cost per portion — ingredients from the recipe card plus packaging for delivery. How to build a recipe card is covered in the guide on calculating food cost.
Margin per portion = price − cost. Item margin for the period = margin per portion × number of portions sold.
Step 1. ABC: which dishes make money
- Calculate each item's margin for the period.
- Sort the items by margin from highest to lowest.
- For each one, calculate its share of total margin and the cumulative share — the sum of shares from the first row down to the current one.
- Items with a cumulative share up to 80% go into group A, from 80% to 95% into B, the rest into C.
Sample case: a café with delivery, ten items, six weeks of data. Cost includes ingredients and packaging.
| Item | Price | Cost | Margin per portion | Sold | Margin, million UZS | Share | Cumulative | Group |
|---|---|---|---|---|---|---|---|---|
| Chicken lavash | 38,000 | 15,000 | 23,000 | 2,535 | 58.3 | 21.3% | 21.3% | A |
| Pepperoni pizza | 89,000 | 33,000 | 56,000 | 870 | 48.7 | 17.8% | 39.0% | A |
| Classic burger | 45,000 | 19,000 | 26,000 | 1,800 | 46.8 | 17.1% | 56.1% | A |
| "Lunch" combo | 55,000 | 27,000 | 28,000 | 1,430 | 40.0 | 14.6% | 70.7% | A |
| French fries | 18,000 | 5,000 | 13,000 | 2,280 | 29.6 | 10.8% | 81.5% | B |
| Shawarma XL | 52,000 | 37,000 | 15,000 | 1,560 | 23.4 | 8.5% | 90.0% | B |
| Drink 1 L | 16,000 | 9,000 | 7,000 | 1,500 | 10.5 | 3.8% | 93.9% | B |
| Steak salad | 62,000 | 31,000 | 31,000 | 240 | 7.4 | 2.7% | 96.6% | C |
| Cheesecake | 32,000 | 11,000 | 21,000 | 339 | 7.1 | 2.6% | 99.2% | C |
| Soup of the day | 28,000 | 12,000 | 16,000 | 140 | 2.2 | 0.8% | 100% | C |
Total margin over six weeks: 274.2 million UZS.
Why not by revenue. Sort the same items by revenue and the shawarma comes second — 81.1 million UZS — landing in group A, while the pizza drops to group B. By margin it's the other way round: the pizza brings in 48.7 million UZS and the shawarma 23.4 million. The shawarma's cost is 71% of its price, so it sells a lot and earns little. A revenue-based analysis would tell you to promote it — that is, to sell more of the dish that earns the restaurant the least per sum of revenue.
Step 2. XYZ: how steadily a dish sells
Demand stability is measured with the coefficient of variation: standard deviation of weekly sales ÷ weekly average. The lower it is, the more predictable the sales.
- X — up to 10%: sells steadily, prep can be planned precisely.
- Y — 10% to 25%: there are swings, but they have explanations — season, a promotion, day of the week.
- Z — over 25%: sales are unpredictable, the risk of write-offs is high.
These thresholds are common, not mandatory; adjust them to your business after the first calculation.
| Item | Weekly sales | Average | Deviation | Coefficient | Group |
|---|---|---|---|---|---|
| Chicken lavash | 420, 410, 435, 425, 415, 430 | 422.5 | 8.5 | 2.0% | X |
| Pepperoni pizza | 140, 150, 135, 160, 145, 140 | 145 | 8.2 | 5.6% | X |
| Classic burger | 300, 310, 295, 305, 290, 300 | 300 | 6.5 | 2.2% | X |
| "Lunch" combo | 260, 200, 290, 190, 280, 210 | 238.3 | 39.8 | 16.7% | Y |
| French fries | 380, 390, 370, 385, 375, 380 | 380 | 6.5 | 1.7% | X |
| Shawarma XL | 260, 255, 265, 250, 270, 260 | 260 | 6.5 | 2.5% | X |
| Drink 1 L | 250, 240, 260, 245, 255, 250 | 250 | 6.5 | 2.6% | X |
| Steak salad | 30, 55, 20, 60, 25, 50 | 40 | 15.5 | 38.9% | Z |
| Cheesecake | 60, 48, 70, 45, 66, 50 | 56.5 | 9.4 | 16.7% | Y |
| Soup of the day | 10, 45, 0, 50, 5, 30 | 23.3 | 19.5 | 83.6% | Z |
Step 3. Excel formulas
Say the first item is in row 2, weekly sales are in columns B–G, the item's margin for the period is in column J, and the rows are already sorted by margin in descending order.
- Cumulative share, column K: `=SUM($J$2:J2)/SUM($J$2:$J$11)`
- ABC group: `=IF(K2<=0.8,"A",IF(K2<=0.95,"B","C"))`
- Coefficient of variation, column L: `=STDEV.P(B2:G2)/AVERAGE(B2:G2)`
- XYZ group: `=IF(L2<=0.1,"X",IF(L2<=0.25,"Y","Z"))`
The same functions work in Google Sheets; in Excel with other regional settings the function names may be localized and arguments separated by semicolons.
Step 4. The matrix and decisions
Put both letters together. In the example, it comes out like this:
| X — steady demand | Y — fluctuates | Z — unpredictable | |
|---|---|---|---|
| A | Lavash, pizza, burger | "Lunch" combo | — |
| B | Fries, shawarma, drink | — | — |
| C | — | Cheesecake | Steak salad, soup of the day |
What to do about it, item by item:
- AX — lavash, pizza, burger. These must never end up on the stop-list. Plan prep on the average with a small buffer. Put them first on the website and bot menus. They don't need discounts: they sell anyway.
- AY — "Lunch" combo. Find out where the swings come from. If it sells 260–290 in weeks with a mailing to offices and about 200 without one, the mailing works and is worth making regular. Plan prep week by week, not on the average.
- BX — shawarma. Sells a lot, earns little. Two options: raise the price or cut the cost per portion. If sales stay the same with the price 3,000 UZS higher, over the same six weeks that's 3,000 × 1,560 = 4,680,000 UZS of extra margin.
- BX — fries and drink. Typical add-ons to an order. Fries have a margin of 72% of the price — offer them at checkout. The drink's margin is low, but it raises the check; review the purchase price.
- CY — cheesecake. Good margin per portion, few sales. A candidate for upselling and for a free gift with an order: a gift costs the restaurant its food cost, not its menu price. How to calculate a promotion like this is covered in the article is your promo profitable.
- CZ — steak salad and soup of the day. Low sales, erratic demand, and the salad also uses an expensive ingredient that gets written off. Candidates for removal from the delivery menu or for pre-order only. You can keep them for dine-in if demand there is different.
Before removing an item from group C, check which orders it appears in. If a vegetarian salad is ordered in large group orders, losing it may cost you the whole order. A C item that holds large orders together stays.
What changes when you analyse delivery
Analyse delivery separately from dine-in. Delivery has its own packaging, its own prices and its own demand. A dish that sells well in the dining room may not travel well and may cause cancellations and complaints.
Factor in the channel commission. Sample case: at a 25% aggregator commission, 13,000 UZS goes from a 52,000 UZS shawarma, leaving 15,000 − 13,000 = 2,000 UZS per portion. From an 89,000 UZS pizza, 22,250 UZS goes and 33,750 UZS remains. If the aggregator price is the same as in the dining room, the shawarma earns almost nothing through the platform. The rates in your contract may differ — plug in your own. More on the full cost of an order in the article on the cost of a delivery order.
How this relates to menu engineering. Classic menu engineering looks at a dish's margin and popularity and splits the menu into "stars", "plowhorses", "puzzles" and "dogs". ABC-XYZ adds a third question — how predictable demand is — which makes it more useful for prep planning and write-offs.
How often to repeat it
- Once a quarter — a full calculation across the whole menu.
- After a price or supplier change — recalculate the margin of the affected items.
- 4–6 weeks after launching a new dish — before that there isn't enough data for XYZ.
- Seasonal items — compare the season with last year's season, not with neighbouring months.
Where to get the data in Delever
The slowest part of the analysis is collecting item-level sales from every channel. In Delever, orders from the website, bot, app, dining room and aggregators all land in one system, so analytics has a product report — what actually sells and what just takes up space on the menu, for any period and any branch. The report can be exported for calculation in Excel, and there is an API for your own systems. Take cost from the recipe cards in your accounting system.
Based on the results, you can change the menu in Delever across all channels at once: set a separate price for each channel, apply a channel markup to the whole menu, remove an item from every storefront or hide it only on the aggregator, build combos. The analytics dashboard is a separate module, included at no extra charge in the Enterprise plan; prices on the site are for Uzbekistan — for prices in your country, see the pricing page. How to track sales by dish and channel every morning is described in the article on the owner's dashboard.
Frequently asked questions
What is ABC-XYZ menu analysis?
It is an assessment of every menu item on two criteria: how much money it brings in (ABC) and how steadily it sells (XYZ). Where they meet, there are nine groups, and each has a decision on price, promotion, prep or removal from the menu.
Should ABC analysis be based on revenue or profit?
On contribution margin: price minus cost, multiplied by the number of portions. By revenue, group A fills up with dishes that sell a lot but earn little.
Which ABC and XYZ group thresholds should I use?
The common ones: A — up to 80% of cumulative margin, B — up to 95%, C — the rest; X — coefficient of variation up to 10%, Y — up to 25%, Z — above that. It's a guideline, not a rule — adjust after the first calculation.
What period should ABC-XYZ analysis cover?
6–12 weeks, with sales broken down by week. Daily data is too noisy, and too long a period mixes seasons and old prices.
Can I remove group C dishes straight away?
No. First check which orders they appear in: a C item may be holding large orders together or be the only option for some guests. Remove CZ items that don't hold orders together and cause write-offs.
Want to see Delever on your own venue? Book a free 30-minute demo at delever.io or message @delever_bot on Telegram.