TürkiyeStartups
Guide2 Dec 20264 min read

How to calculate product cost: direct and indirect costs, unit cost, gross margin and pricing

A product cost guide for manufacturing, e-commerce and SaaS startups: direct materials, direct labour and production overheads, fixed and variable costs, the unit cost formula with an example, cost of goods sold in e-commerce, COGS in SaaS, gross margin, break-even point, pricing and common mistakes.

By Editorial Team

Cover illustration: How to calculate product cost: direct and indirect costs, unit cost, gross margin and pricing

Knowing what a product costs you matters as much as knowing what you sell it for. Startups that do not calculate product cost properly may only notice as they grow that they lose money on every sale. This guide explains cost items and unit cost in plain language. For costing methods in your books, work with your accountant.

Cost items

ItemDescriptionExample
Direct materialsRaw materials and parts that go directly into the productFabric, packaging, circuit boards
Direct labourCost of staff who make the productProduction staff wages
Production overheadsProduction-related costs not traceable to a single unitWorkshop rent, energy, machine depreciation
Selling and distributionCost of getting the product to the customerShipping, marketplace and payment fees

The first three make up production cost. Selling and distribution costs must still be included in per-unit profitability.

Fixed and variable costs

  • Variable cost: Rises with production/sales volume (materials, packaging, shipping, commissions).
  • Fixed cost: Independent of volume within a range (rent, salaries, software subscriptions).

How to calculate unit cost

Unit cost = (Total variable cost + Fixed production costs for the period) ÷ Units produced

Example: A product made at 1,000 units a month:

  • Materials and packaging: TRY 60,000 (TRY 60 per unit)
  • Direct labour: TRY 40,000
  • Workshop rent, energy, depreciation: TRY 30,000
  • Total production cost: TRY 130,000 → Unit cost: TRY 130

Add per-unit shipping (TRY 25) and commission/payment fees (15% of the sale price) depending on the channel, and the true cost of getting the product to the customer is much higher.

Components of unit cost
Components of unit cost

Cost of goods sold in e-commerce

If you buy and resell rather than manufacture: Cost of goods sold = Opening stock + Purchases − Closing stock. Freight, customs and storage costs are part of cost on top of the purchase price. See cutting shipping costs and HS codes and customs procedures.

Product cost in SaaS

For software, cost of goods sold (COGS) usually includes hosting and cloud infrastructure, third-party API and AI costs, the customer support team and payment processing fees. See optimising cloud costs and AI costs and unit economics.

Gross margin

Gross margin = (Sale price − Unit cost) ÷ Sale price

In the example, a product sold at TRY 250 with a unit production cost of TRY 130 has a gross margin of 48%. After shipping and commissions the contribution margin falls noticeably. In marketplace sales this gap often decides profitability.

Break-even point

Break-even units = Fixed costs ÷ (Sale price − Unit variable cost)

The break-even point shows how many units you must sell to cover fixed costs and makes it easier to see the effect of changes in price, cost or volume.

From sale price to contribution margin
From sale price to contribution margin

From cost to price

Cost is the floor for price; what really sets price is perceived customer value and competition. Combine cost-plus thinking with value-based pricing. See pricing strategy for startups and how to announce a price increase.

Common mistakes

  • Treating materials as the only cost
  • Forgetting shipping, returns, commissions and payment fees
  • Not reflecting exchange rates and inflation in cost
  • Ignoring waste and defective production
  • Not counting founders' time as a cost

Frequently asked questions

How often should unit cost be updated? At least monthly if material prices and exchange rates change often.

Is marketing part of product cost? Not of production cost, but it belongs in unit economics (CAC). See CAC and LTV.

How do returns affect cost? The return rate lowers unit profit through shipping and products that cannot be resold.

Is accounting cost different from management cost? Yes; accounting follows legal rules, management costing is for decision-making.

How do I calculate cost in a service business? Spread staff hours, tools and infrastructure used to deliver the service across each unit of service.

Conclusion

Knowing product cost means the right price, healthy margins and sustainable growth. List every item, update unit cost regularly, calculate contribution margin by channel and base price decisions on this data. For the cash side, see cash flow management for startups.

This guide is for general information only and is not legal, financial or investment advice. Check official sources and consult professionals for current terms.

More guides

All news and guides →