Quick answer
Market basket analysis (Warenkorbanalyse) examines which products customers buy together in a single transaction. Using support, confidence and lift, it measures how often a combination occurs and how strongly one product makes the purchase of another more likely. Shops use the results for bundles, product placement and targeted cross-selling at the till.
Key takeaways
- Definition: Market basket analysis studies products that end up on the same receipt.
- Three metrics: support (how often), confidence (how likely) and lift (how much stronger than chance).
- Lift above 1 matters: only then do customers buy items together more often than chance would predict.
- Small shops need no AI: a receipt export from the till and a spreadsheet cover the most important pairs.
- Act, do not just analyse: placement, a bundle price and one sentence at the counter turn data into revenue.
Market basket analysis examines which products your customers buy together in a single shop visit. In German retail it is called Warenkorbanalyse or Bonanalyse. The result is a set of item pairs or groups that appear on the same receipt more often than chance would predict. These combined purchases are the foundation for bundles, smart placement and cross-selling at the counter.
Supermarket chains do this with huge datasets. For a farm shop, bakery or café, a receipt export and an afternoon with a spreadsheet are often enough.
What is market basket analysis?
Market basket analysis is a form of association analysis. It looks for rules of the type “whoever buys A also buys B”. It is not about individual customers but about transactions: every receipt is one basket.
Typical questions it answers:
- Which products are bought together most often?
- Which product pulls another one along?
- Which items almost always appear alone on a receipt?
- Which combination works as a set menu or bundle?
How it works: support, confidence and lift
Three metrics form the core. For a pair of products A and B:
| Metric | Formula | Meaning |
|---|---|---|
| Support | receipts with A and B ÷ all receipts | How often does the pair occur? |
| Confidence (A → B) | receipts with A and B ÷ receipts with A | How often does an A buyer also buy B? |
| Lift | confidence (A → B) ÷ share of receipts with B | How much stronger than chance? |
Lift is the most important figure. A lift of 1 means no relationship. Above 1 means A makes B more likely. Below 1 means the products tend to exclude each other, such as two different types of bread.
More visits, fuller baskets
The best bundle only pays off if customers come back. With mystamp you remind them of your new combo offer with a push notification on their lock screen.
- Free-forever plan
- Ready in 10 minutes
- No app for customers
Shop example: a bakery in Zurich
A bakery in Zurich exports a month of receipts and looks at 1,000 of them:
- 300 receipts include a coffee.
- 200 receipts include a croissant.
- 120 receipts include both.
That gives:
- Support: 120 ÷ 1,000 = 12%.
- Confidence coffee → croissant: 120 ÷ 300 = 40%.
- Lift: 40% ÷ 20% = 2.0.
Coffee buyers pick up a croissant twice as often as the average customer. At the same time, 60% of coffee buyers do not buy one. That is the opportunity: a “coffee + croissant” price at the counter or a short suggestion from staff can win over part of those 180 customers.
Assume 15% of them start adding one, so 27 customers per 1,000 receipts. At CHF 2.40 per croissant (or the euro equivalent in your shop), that is roughly 65 in extra revenue per 1,000 receipts without a single new customer. You will see the effect on your average transaction value straight away.
Doing it yourself: step by step
- Export receipt data: most POS systems deliver individual receipts as a CSV file. Daily totals are not enough.
- Narrow the range: take your 10 to 20 best-selling items or product groups.
- Count pairs: in a spreadsheet, mark which items each receipt contains, then count the pairs.
- Calculate lift: only look at pairs with enough receipts (rule of thumb: at least 30 joint purchases) and a lift above 1.
- Decide on an action: bundle, side-by-side placement or a recommendation line.
- Test it: run it for four weeks and compare the share of the combination before and after, ideally as a simple A/B test.
What to do with the results
- Bundles: offer strong pairs together at a slightly reduced price. More on this under price bundling.
- Placement: put related items next to each other, for example wine next to cheese in a farm shop.
- Counter recommendations: staff suggest the matching second item. Phrasing ideas are in the guide Upselling examples.
- Choosing rewards: a reward from a high-lift product brings customers back, and they often buy the main product too.
- Cleaning up the range: review items that are rarely bought and almost always alone.
The metric items per transaction tells you how many items end up on an average receipt. More ideas are in the guide How to increase average order value.
Advantages and limits
| Advantages | Limits |
|---|---|
| Shows real buying behaviour instead of gut feeling | Shows correlation, not cause |
| Works with anonymous receipts | Small datasets produce random hits |
| Directly actionable at counter and shelf | Seasonal effects distort the picture |
| Costs time, not software | Without action it stays theory |
A high lift does not prove that one product sells the other. Coffee and croissants are both bought in the morning because it is breakfast time. In practice this rarely matters, because the bundle still works.
Also watch the sample size: a pair bought together only five times a month can show a high lift purely by chance. Repeat the analysis after two or three months with fresh receipts. If the pair stays strong, the relationship is reliable.
Why it matters for small shops
For small shops, market basket analysis is an underrated lever: more revenue per visit without spending on advertising. It complements the figures you should track anyway, covered in the guide Retail KPIs.
The second lever is the number of visits. A full basket helps little if the customer only comes once. With a digital stamp card from mystamp you can send a new bundle offer as a push notification to all cardholders, and the dashboard shows whether your return rate goes up.
Related terms
- Cross-selling: selling matching add-on products.
- Price bundling: several products for one package price.
- Items per transaction: average number of items per purchase.
- Average transaction value: average revenue per purchase.
- RFM analysis: grouping customers by recency, frequency and monetary value.
Frequently asked questions
What is market basket analysis in simple terms?
Market basket analysis shows which products customers buy together. All receipts from a period are analysed and product pairs that appear together are counted. You might find, for example, that coffee and croissants are often bought together, and then create a bundle or place them side by side.
What do support, confidence and lift mean?
Support is the share of all receipts that contain a combination. Confidence tells you how often product B is bought when product A is on the receipt. Lift compares that confidence with how often B is bought overall. A lift above 1 means A makes buying B more likely.
What data do I need for a market basket analysis?
You need individual receipts with the items purchased, not just daily totals. Most modern POS systems can export receipt data as a CSV file. A few weeks of data are enough for a first overview. Names or customer details are not needed; the analysis works with anonymous purchases.
What is an example of market basket analysis?
A bakery analyses 1,000 receipts: 300 include coffee, 200 a croissant and 120 both. Support for the pair is 12% and confidence from coffee to croissant is 40%. Since only 20% of all customers buy a croissant, the lift is 2. Coffee buyers pick up a croissant twice as often.
Is market basket analysis worth it for small shops?
Yes, if you keep it simple. You do not need to analyse every combination, just your 10 to 20 best-selling items. Two or three strong pairs are enough to improve the counter display, bundles and staff recommendations. What matters is testing one change afterwards in a measurable way.
Is market basket analysis allowed under GDPR?
If you only analyse anonymous receipts with no link to a person, you are generally not processing personal data. As soon as purchases are linked to a known customer, for instance through a customer account, the GDPR applies and you need a legal basis under Art. 6 GDPR and a privacy notice.
Sources & further reading
- Affinity analysis – Wikipedia
- Association rule learning – Wikipedia
- Art. 6 GDPR – Lawfulness of processing – EUR-Lex, Regulation (EU) 2016/679
About this guide
Written by the mystamp editorial team in Mannheim, Germany. We build digital stamp cards for local shops, and our guides bring together what actually works day to day in small businesses. We back numbers and legal statements with sources and update the article when things change.
Published: 1 December 2026 · Updated: 1 December 2026 · Spotted a mistake or have a question? Write to us