SME Finance KitKit Keuangan UMKM

COGS, Margin & Pricing · 16 October 2026 · 7 min read

How to Calculate Unit Cost and Set Your Selling Price

Working out the cost of one unit or one serving — labour and direct overhead included — then setting the price from the margin you want.

How to Calculate Unit Cost and Set Your Selling Price

Pricing by "see what competitors charge and go a thousand lower" is the fastest route to working hard with no profit. Your price should start from unit cost: what one unit actually costs you.

1. What belongs in unit cost and what usually gets left out

Unit cost is not only materials. It has three layers:

What does not belong here: rent, internet, admin salaries, advertising. Those are operating costs, used in the calculation further down, not in the cost of one unit.

2. Worked example: one cup of milk coffee

ComponentCalculationRp per cup
Coffee, 18 grams18/1,000 × Rp180,000 per kg3,240
Milk, 150 ml150/1,000 × Rp22,000 per litre3,300
Cup, lid, napkinper unit1,100
Sugar and strawper unit250
Total materials7,890
Direct labourRp2,500,000 ÷ 1,200 cups a month2,083
Other direct costsRp180,000 ÷ 1,200 cups (machine power, water)150
Unit cost per cup10,123
Cost composition of one cup of milk coffee: direct materials Rp7,890, direct labour Rp2,083, other direct costs Rp150, total cost Rp10,123 against a price of Rp25,500.
Summary: cost Rp10,123 per cup, price Rp25,500, gross margin 60.3%

Notice: leave labour out and the cost looks like only Rp7,890 — about 22% cheaper than reality. Prices built on that figure make you feel profitable when you are not.

3. Setting the selling price

Two approaches work well together:

a. From a markup

If you want a gross profit near 60%, the markup is about 2.5 times cost: Rp10,123 × 2.5 = Rp25,308, rounded to Rp25,500.

b. From the margin you want (more precise)

The formula is: price = unit cost ÷ (1 − margin you want).

Target margin 60%: Rp10,123 ÷ 0.4 = Rp25,308, rounded to Rp25,500.

At a price of Rp25,500:

4. How many cups do you need to sell?

Say fixed costs are Rp12,000,000 a month (rent, fixed wages, internet, shop utilities).

Break-even = Rp12,000,000 ÷ Rp15,377 = 781 cups a month, about 26 cups a day (over 30 days).

That figure is far more useful than hoping it gets busy: you know when you start making money, and you know how much you need to lift if last month sold only 700 cups.

5. Four common mistakes

  1. Calculating unit cost from materials only.
  2. Not updating material prices. Coffee, cooking oil and flour move; unit cost built on last year's prices makes the margin look better than it is.
  3. Discounting without knowing your unit cost. A 20% discount on Rp25,500 brings the price to Rp20,400, leaving Rp10,277 — still above cost, but barely anything towards fixed costs.
  4. Using one average cost for every product. Each item has its own unit cost; never price a single item from an average.

6. Update it every quarter

Keep the ingredients, latest prices and portion sizes in one sheet. Repeat the exercise every quarter or whenever a key ingredient moves. Ten minutes a quarter is far cheaper than a year of selling at the wrong price.

Our Pricing & Margin Calculator contains all of these formulas: enter your costs and portions and it returns the recommended price and break-even point.

The kit for this topic

Pricing & Margin Calculator

Rp79.000 (≈ USD 4)

Work out unit cost, set your margin, and find the break-even price before you quote.

See details →

← All articles