ID Log in

Ezqlab · Free tool · Finance

HPP Calculator — Calculate Cost of Goods Sold Accurately

Many SMEs lose money without realizing it because their selling price is below their cost of goods sold (HPP). This calculator computes the HPP per unit from three components: raw material costs, labor costs, and overhead costs — then recommends a selling price based on your desired margin.

How to use the HPP calculator

This HPP calculator is designed to be as simple as possible so anyone can use it, even if it is your first time calculating cost of goods sold. First, enter the raw material costs for a single production batch — for example, flour, sugar, coffee, and packaging for 100 cups of milk coffee. Second, enter labor costs: wages for the people helping with production, including your own pay if you do the work yourself. Third, enter overhead costs: gas, electricity, water, rent, and other expenses that do not directly become part of the product. Fourth, enter the number of units produced in that batch, choose your desired profit margin, and click calculate.

The results appear immediately: HPP per unit, total production cost, and a recommended selling price. If the recommended selling price feels too high compared to the market rate, do not slash your margin right away — check first whether any ingredients can be bought cheaper in bulk, or whether your overhead is simply too high. On the other hand, if the recommended selling price is well below the market rate, that is good news: you have room to raise your margin or run promotions without losing money.

The HPP formula used

HPP per unit = (Raw material costs + Labor costs + Overhead costs) ÷ Number of units

The formula above is the standard formula used by both small businesses and factories. Raw material costs include every item consumed that becomes part of the product: main ingredients, seasonings, and packaging. Labor costs cover direct wages for the people making the product — many SMEs forget to include this when family members do the work, even though their time is still worth money. Overhead costs are indirect expenses: gas, electricity, water, rent, equipment depreciation, and material shipping fees. Overhead is often underestimated, yet for a home business using kitchen electricity and gas, it can easily make up 10–20% of total costs.

Once you have the HPP per unit, the recommended selling price is calculated using selling price = HPP ÷ (1 − margin). This formula ensures the margin you earn is truly the percentage you want out of the selling price, not out of the HPP. For example: an HPP of Rp6.000 and a 40% margin yield a selling price of Rp10.000 — and out of that Rp10.000, your profit really is Rp4.000, or 40%.

Real-world case study: a palm sugar milk coffee stall

Bu Sari runs a roadside stall selling palm sugar milk coffee. In one batch, she makes 100 cups. Her raw materials cost: coffee Rp120.000, milk Rp200.000, palm sugar Rp80.000, and cups + straws Rp50.000 — totaling Rp450.000. She pays her neighbor Rp100.000 to help with production, and estimates gas + electricity + water for that day at Rp50.000. Total production cost: Rp600.000 for 100 cups, so her HPP per cup is Rp6.000.

Previously, Bu Sari sold each cup for Rp8.000 just by copying the stall next door. After doing the math, she realized her profit was only Rp2.000 per cup, or 25% — and that was before accounting for spilled cups or wasted ingredients. With a 40% margin, the right selling price is Rp10.000. She raised her price to Rp10.000 while upgrading her packaging and adding topping options. Customers kept coming back because the taste was genuinely great, and her profit doubled from Rp200.000 to Rp400.000 per 100 cups. That is the value of calculating HPP: pricing decisions are based on real numbers, not guesswork.

Tips to keep your HPP accurate

  • Track every small expense. Straws, plastic bags, and label stickers look cheap individually, but multiplied by hundreds of units they add up fast.
  • Do not guess your overhead. Check your monthly electricity and gas bills and divide by the number of production days so your numbers are real.
  • Recalculate whenever ingredient prices rise. Even a slight jump in sugar or cooking oil prices can eat into your margin.
  • Separate business money from personal money. If they are mixed together, you will never know what your true HPP really is.

Calculate Your HPP

Enter all costs for a single production batch, then enter the number of units produced.

All ingredients and materials for one production batch.

Wages for everyone helping with production.

Gas, electricity, rent, packaging.

How many cups, pcs, or portions you made.

Food and beverage SMEs typically use a 30–50% margin.

Fill out the form above, then click “Calculate HPP”.

Continue from here

Once you know your HPP, record every daily sale in the offline POS Laris Terus — customer data stays neatly saved and follow-ups are reminded automatically.

Frequently asked questions

What is HPP?

HPP stands for Harga Pokok Produksi, or cost of goods sold (HPP): the total cost spent to make one unit of a product, including raw materials, labor, and overhead. HPP is the foundation for setting a profitable selling price.

Why must my selling price be higher than my HPP?

Because the difference between your selling price and your HPP is your profit. If your selling price is below your HPP, the more you sell, the bigger your loss.

What is a reasonable profit margin for SMEs?

Typically 30–50% for food and beverage businesses, and 40–60% for crafts or services. A margin below 20% leaves very little room for error.

Does packaging count toward HPP?

Yes. Cups, boxes, plastic bags, and label stickers are raw material costs because they become part of the finished product.

How often should HPP be recalculated?

Whenever material prices change or you adjust a recipe — at least once a month, so your selling price always reflects your actual costs.