Finance

Calculating Margin in Vending – The Basic Formula and Pitfalls

9 min read
Illustration: a person with a calculator, a price tag, coins, and a bar chart

Product margin is not machine profit. Commissions, losses, and service costs come off.

A machine in an office building sells dozens of products a day, takings look good, and yet at the end of the month there is less in the account than you expected. It is a common situation in vending. Takings are not profit, and the margin on a single product is only the start of the calculation. This guide explains how to calculate margin step by step, which costs to include when judging a machine's profitability, and the pitfalls operators most often fall into. It is not tax or accounting advice.

The basic formula

Product margin is net selling price minus purchase cost, often shown as a percentage of the net price. To judge a machine's profitability, also count the site commission, payment fees, expiry losses, and service costs. The first part is product margin; the second is the picture of the whole machine. You need both, but they answer different questions.

What to deduct

When working out a machine's result, deduct from takings:

Below we go through each item and show how to gather the data you need.

The net price

Is margin based on the gross price? Usually the net price, after VAT. The customer pays the gross price at the machine, but part of that amount is tax, which is not the operator's revenue. Agree with your accountant which VAT rates apply to which products and how to settle them. Enter net prices in your margin spreadsheet so you do not overstate the result.

A product margin example

Say the net selling price of a snack bar is PLN 4.00 and the net purchase cost is PLN 2.40. The difference is PLN 1.60. Margin as a percentage of the net price is 1.60 divided by 4.00, or 40%. It is a simple example with made-up figures, but it shows the principle. Do the same calculation for every product in the machine, because margins on different products can vary widely.

Margin vs. markup

Margin and markup are two different measures that are easy to confuse. Margin relates profit to the selling price; markup relates it to the purchase cost. In the snack bar example, markup is 1.60 divided by 2.40, or about 67%. If your supplier, your accountant, and you use different terms, misunderstandings follow easily. Decide which measure you use and stick to it in your spreadsheets.

Purchase cost

Purchase cost is not just the price on the invoice. Add delivery costs if you pay for them separately, and include supplier discounts. Purchase prices change over time, so update them with every delivery. A simple spreadsheet with price history lets you notice when a product's margin starts to slip and respond with a price or supplier change.

Site commission

The site owner often receives a commission on sales or a fixed fee. Check in the agreement what the commission is based on: the gross price, the net price, or something else. That difference has a big effect on the result. With a fixed fee, divide it by the number of products sold to see what the site costs you per item.

Payment fees

Card and phone payments are convenient for customers but come with fees for the operator: a per-transaction commission, a terminal subscription, or a system fee. Gather all these costs from your agreements and the payment provider's invoices and convert them to a per-transaction figure. With cheap products, payment fees can take a surprisingly large share of the margin.

Expiry losses

Products that did not sell before their best-before date are pure loss. How to cut losses? Rotate products and match quantities to sales. Record how many products you remove from each machine and why. The data will show which items do not suit a site and what an overly wide range really costs you.

Other losses

Besides expiry, other losses happen: damaged products, refunds to customers whose item did not drop, theft, or cash discrepancies. Each lowers the result. Record them separately, because different losses need different actions. Sticking spirals need servicing; cash discrepancies need better checks at settlement.

Service costs

Service costs are everything you spend to keep a machine running: the restocker's time, fuel, servicing, parts, cleaning supplies, telemetry, insurance, and machine depreciation. These costs are easy to overlook because they are not tied to a specific product. Spread them across machines, for example by number of visits, and only then judge whether a machine pays off.

Power

If you pay for the machine's power, add it to costs. The maker usually states energy consumption, and actual use depends on the site and settings. With refrigerated machines, power can be a significant cost. If power is included in the commission or paid by the site owner, note that in your spreadsheet.

The machine's result

Once you have all the data, you can work out the machine's result: net sales minus purchase cost, commission, payment fees, losses, service costs, and power. Do this for each machine separately, for example monthly. You will find that some high-takings machines earn less than the numbers suggest, while some quieter ones are very profitable.

Margin on coffee machine drinks

With coffee machines, margin works a little differently, because each drink is made from several ingredients. The cost of one drink is the sum of coffee, milk powder, sugar, cup, stirrer, and water. The maker usually gives ingredient doses for each drink, which lets you work out the cost per serving. Remember cleaning and descaling costs, which are spread across all drinks served. Coffee margins can be high, but only when the doses are set correctly.

The product mix

A machine sells many products with different margins. The result depends not only on each product's margin but also on the proportions in which they sell. A high-margin product that rarely sells contributes less than a popular product with a lower margin. Work out the machine's weighted average margin by multiplying each product's margin by units sold. This shows how a range change will affect the result.

Seasons and sites

A machine's results change through the year. Cold drinks sell more in summer, hot drinks in winter. Office sales dip during holidays, campus sales during breaks. Compare results year on year or with the same period in other years, not only month to month. That way, you will not draw hasty conclusions from natural swings.

Budget planning

Once you know margins and costs, you can plan. Estimate how much a machine needs to sell to cover all its costs, that is, its break-even point. Divide the machine's monthly fixed costs by the average margin per product sold. The result shows how many units a month you need to sell to break even. It is a good benchmark when assessing new sites.

Assessing a new site

Before placing a machine somewhere new, estimate whether it will reach break-even. Work out how many people use the building each day, what share may buy from the machine, and how much they will spend. Compare that with costs: commission, travel, and power. If the result is borderline, consider negotiating different terms with the site owner or looking for a better spot.

Telemetry data

Telemetry makes margin calculations easier because it provides accurate sales data for each product in each machine. You do not have to count stock by hand at every visit. You can combine sales data with purchase costs in a spreadsheet and see margin as you go. Telemetry also helps plan visits so you do not drive to machines that do not need restocking, which lowers service costs.

Talking to suppliers

Margin depends on purchase cost, which depends on your supplier's terms. At a larger scale, negotiate discounts, payment terms, and delivery costs. Ask suppliers about promotions, higher-margin products, and new items that sell well in other machines. Compare offers from several suppliers from time to time, because market prices change.

A spreadsheet

You do not need special software to calculate margin. A spreadsheet with columns for product, net price, purchase cost, margin in złoty and percent, and units sold is enough. Collect the machine's costs on a second tab. If you have telemetry, you can import sales data from the system. What matters is updating the spreadsheet regularly.

Comparing machines

When you have several machines, compare them on the same measures: net sales, product margin, result after all costs, and losses as a share of sales. A table like this quickly shows which machines pull the result up and which pull it down. Do not judge a machine on a single month, though. Look at several months and think about what lies behind the differences: site, range, prices, or visit frequency.

Regular reviews

Calculating margin is not a one-off task. Set a fixed rhythm, such as a monthly review of all machines and a deeper analysis once a quarter. Note the decisions you make and check their effects in later periods.

Pitfalls

A few pitfalls come up especially often:

Each of these overstates the result and leads to poor decisions.

Using the results

Results help you make decisions. Products with low margins and weak sales are worth replacing. Machines that do not earn may need a range change, a renegotiated commission, or a move. In talks with sites, solid data helps make your case. In talks with suppliers, it shows where to look for better prices.

Prices in the machine

Margin depends largely on price. When setting prices, consider margin, nearby prices, the site owner's expectations, and customer behavior. Prices that are too low cut the result; prices that are too high reduce sales. Test price changes on a few machines and watch sales for several weeks. A clear price on every selection is essential.

Talking to your accountant

A margin spreadsheet is a management tool, not an accounting document. Ask your accountant how your figures relate to the data in your books, how to settle VAT on vending sales, and how to record losses. A well-set cost split makes it easier to compare management results with your books.

How to start

If you want to get margin calculations in order, you can start with a few steps:

A review like this shows where profit really comes from.

Further information

See the vending machine guides (publisher's site) for more.

Related reading: Vending Operator Cost Structure.

FAQ

Is margin based on the gross price? Usually the net price, after VAT.

How to cut losses? Rotate products and match quantities to sales.

This article is general information only and is not legal or tax advice. Rules change – check the current rules or consult an accountant, a tax advisor, or a lawyer before deciding.

Related articles