Back to blog

Cost accounting for SMEs: practical guide 2026

April 18, 2026·12 min read·Leviathan BI
Cost accounting dashboard for SMEs: costs per product and customer

Cost accounting is what separates the SMEs that know where they're actually making money from the ones that discover the holes in their P&L at year-end. It's not a complicated parallel bookkeeping system: it's the way you reclassify the data you already have to answer a simple question — which product, customer or project is actually generating the margin?

In this guide we cover how it differs from general accounting, how to implement it in an SME in 5 practical phases, and when Excel is no longer enough.

What cost accounting is (and why it's not the same as general accounting)

General accounting speaks to the tax authority: how much you invoiced, how much you spent, how much you earned over the year. It's mandatory, follows statutory and tax rules, and produces financial statements and tax returns.

Cost accounting (or managerial accounting) speaks to the business owner: how much it actually costs you to produce a pizza, deliver an hour of consulting, serve a customer. It's not mandatory, has no standard format, and exists only to help you make better decisions.

The difference in practice:

  • General: "In 2025 you spent €40,000 on salaries"
  • Cost accounting: "55% of salaries went to production, 25% to sales, 20% to admin. For product line A you spent €12,000 in labor, which on €80,000 of revenue means 15% labor incidence."

Without the second view, you can't answer the most important question of all: which of my products, customers or projects is keeping the company afloat, and which is dragging it down?

Why SMEs need it more than large companies

Large companies have buffer margins: if a product loses, others cover. SMEs don't. One unprofitable customer in five can be enough to turn a good year into a red one.

Here's what SMEs typically discover when setting up cost accounting for the first time:

  • A "flagship" product they've sold for years actually has negative margin once indirect costs are included
  • 20% of customers generate 80% of the margin (Pareto principle applied to real business)
  • Some "important" projects for revenue are at a loss once unexpected time and management hours are counted
  • The cost of administration and general services is much higher than they thought — often 15-25% of revenue

None of these discoveries are visible in general accounting. All of them emerge from cost accounting.

Key concepts (explained without jargon)

Direct costs vs indirect costs

Direct costs can be attributed without doubt to an analysis object: the raw material of a product, the hours of a developer on a project, the commission paid to an agent for a specific sale.

Indirect costs cover multiple objects at once: warehouse rent, the admin's salary, the electricity bill. They must be allocated via drivers (square meters, hours worked, revenue).

Cost centers

They're the "buckets" where you collect costs to understand them better. A typical SME has 3-6 cost centers: production, sales, admin, warehouse, R&D. You don't need 50.

Cost objects

What do you want to measure the margin on? Typical SME choices are three, often combined:

  • By product/service: if you sell multiple lines or categories
  • By customer: if you serve customers very different from each other
  • By project: if you work project-based (professional firms, software houses, construction)

Contribution margin

The central metric of cost accounting: Revenue – Variable costs = Contribution margin. It tells you how much a product or customer contributes to covering fixed costs and generating profit. More useful than accounting "gross margin" because it tells you which products you'd stop selling if you could.

How to implement cost accounting in 5 phases

Phase 1 — Define what you want to measure (1 week)

Before touching data, answer the question: what decision do I want to make in 3 months thanks to cost accounting?

Concrete examples: "understand if product line X is profitable", "identify customers I can ask for a price increase", "decide whether to close the secondary store". The decision shapes the structure: if the question is wrong, even the best data is useless.

Phase 2 — Map cost centers (1-2 weeks)

Identify 3-6 cost centers that represent your company. For each, define what it contains: salaries of which people, rent share, specific costs. Keep everything in a single Excel spreadsheet initially: you don't need dedicated software to start.

A typical mistake is creating too many cost centers "for precision". Precision costs data collection time: better to start with 4 clear centers and refine in 6 months.

Phase 3 — Choose allocation drivers (1 week)

For indirect costs you must decide how to allocate them. The drivers most used in SMEs:

  • Hours worked → for indirect personnel
  • Square meters occupied → for rent, utilities, cleaning
  • Revenue → for cross-cutting commercial or marketing costs
  • Volumes produced → for generic production costs (machinery, maintenance)

The driver must be logically correlated with the cost: allocating rent by revenue makes no sense, by square meters does.

Phase 4 — Build the first contribution margin (2-3 weeks)

Calculate contribution margin for your 3-5 main products or customers. Basic formula:

Margin = Revenue – Direct variable costs – Allocated indirect costs

The first time you'll have unexpected results, often unpleasant. It's normal: it doesn't mean the company is doing badly, but that before you had no visibility. Resist the temptation to "correct" the numbers to make them look better.

Phase 5 — Turn analysis into routine (from month 2)

Cost accounting is useless if you do it once. It must be repeated every month, comparing margins over time. First question every month: what are the top 3 surprises vs last month, and why?

Without this discipline, you'll have just done a nice consulting exercise. With this discipline, cost accounting becomes the cockpit that guides weekly decisions.

Excel vs Business Intelligence software: when to switch

For an SME with 2-3 product lines and data sitting in an ERP, Excel works perfectly for the first 6-12 months. It's flexible, cheap, and forces you to understand the logic.

The signals Excel isn't enough anymore:

  • Data comes from multiple sources (ERP + CRM + e-commerce + bank) and manual copy-paste steals 2-3 days per month
  • You want more frequent margin updates, not just at month-end
  • More people need to consult the data, but only you know how to read the file
  • You find formula errors that invalidate prior months' analyses

When these signals arrive, a Business Intelligence tool connects data sources automatically and produces sales analysis and margin dashboards updated in real time. Business KPIs stop being a quarterly report and become a daily decision tool.

Mistakes to avoid in SME cost accounting

  • Starting too detailed — 40 cost centers in month 1 = abandonment by month 3. Start with 4-5.
  • Allocating indirect costs with wrong drivers — if the driver has no logic, margins aren't reliable.
  • Confusing cost accounting and budget — cost accounting is actual (what happened), management control compares actual with budget (what should have happened).
  • Not sharing it with the team — if results stay only in the owner's head, decisions don't change.
  • Seeking perfection — a 90%-accurate margin available every month is worth 100× a 99%-accurate margin available once a year.

A practical example: mechanical workshop with 3 lines

A workshop invoices €800,000/year and produces components on 3 lines (A, B, C) with revenues of €400k, €250k and €150k respectively. Without cost accounting, the owner thinks line A is the most profitable because it invoices the most.

After 2 months of cost accounting with allocation of indirect labor, energy and maintenance:

  • Line A: contribution margin 22% (€88k)
  • Line B: contribution margin 34% (€85k)
  • Line C: contribution margin 8% (€12k) — with demand peaks consuming machine capacity stolen from other lines

Result: line C, which seemed "extra profit", was destroying value. The owner renegotiates prices with line C customers: those who accept the increase stay, others are released. Total margin rises 15% without increasing revenue.

Conclusion

Cost accounting isn't an extra bookkeeping duty: it's the lens that lets you see which part of your SME is generating value and which is consuming it. Start with 4-5 cost centers, an Excel sheet and a clear goal. After 6 months you'll know things about your company you don't suspect today.

When data sources multiply and monthly updates aren't enough anymore, a platform like Leviathan BI automates the entire process: connection to ERPs, cost allocation, product and customer margin dashboards updated in real time. Contact us to see how to put cost accounting on autopilot in your SME.

#cost-accounting#smes#cost-centers#management-control#margins
Leviathan BI

Related articles