Your profit and loss statement says the business made money last quarter. But that single bottom line is an average, and averages hide as much as they reveal. One of your product lines could be losing money on every sale while a quiet, unglamorous one carries the whole company. Your biggest customer by revenue could be your worst customer by profit. The channel you are scaling hardest could be the one with the thinnest margin after fees.
Unit economics is the discipline of refusing to be fooled by the average. It breaks your business into the smallest pieces that still make sense — one product, one order, one customer — and asks a blunt question about each: does this unit put more money in your pocket than it takes out? This guide shows you how to build that analysis with a simple framework called the gross margin ladder, and how to turn the answers into pricing, product, and channel decisions.
What Unit Economics Actually Means
A "unit" is whatever your business scales on: one unit of product sold, one order shipped, one customer served for a month, one project delivered. Unit economics is simply the revenue from one unit minus the variable cost of delivering that unit. The result is the unit's contribution margin — the amount each unit contributes toward covering your fixed costs and, eventually, generating profit.
The formula is deliberately narrow:
Contribution margin per unit = Revenue per unit − Variable cost per unit
Variable costs move with volume: materials, direct labor, packaging, shipping, payment processing fees, sales commissions. Fixed costs do not: rent, insurance, base salaries, software subscriptions. The distinction matters because only variable costs belong in unit economics. Fixed costs exist whether you sell one unit or one thousand, so loading them onto individual units at the start distorts every comparison you are trying to make.
Why does this matter for a small business? Because growth multiplies whatever your unit economics already are. If each unit contributes a healthy margin, selling more makes you richer. If each unit loses money after its true variable costs, selling more just digs the hole faster. Knowing your per-unit truth before you spend on marketing, hire, or expand is one of the highest-leverage things a founder can do.
The Gross Margin Ladder: Four Rungs From Revenue to Truth
A single margin number is rarely enough, because costs attach to a sale in layers. The gross margin ladder climbs from the broadest measure down to the most honest one, one layer of cost at a time. Build it for each product line, each sales channel, and each major customer segment, and compare the rungs side by side.
Rung 1: Gross Margin by Product Line
Start with the classic: revenue minus cost of goods sold, computed separately for every product or service line. A business with a blended 55 percent gross margin might be hiding a product at 70 percent and another at 25 percent. That spread is the whole game — it tells you where pricing power lives and where costs are eating you alive.
To do this right, COGS must be complete. For products, that means materials, direct labor, freight in, packaging, and any per-unit royalties. For services, it means the delivery labor and subcontractor cost tied to the engagement, not just a guess. Many small businesses undercount COGS — especially labor — which flatters every product line equally and hides the real laggards.
Rung 2: Contribution Margin After Channel Costs
The same product sold two ways is two different economic units. A widget sold through your own website keeps nearly its full gross margin; the identical widget sold through a marketplace surrenders a referral fee, a payment processing fee, and possibly fulfillment and advertising costs before a dollar reaches you.
Rung 2 subtracts every cost that varies with the channel: marketplace fees, payment processing, shipping and fulfillment, channel-specific advertising, and sales commissions. This is where unpleasant surprises live. A channel doing 30 percent of your revenue at a 12 percent contribution margin, next to a direct channel doing 20 percent of revenue at 55 percent, reframes your entire growth plan. You are not choosing where to grow — you are choosing which margins to multiply.
Rung 3: Customer and Segment Margin After Cost to Serve
Some customers cost more to keep than others, and the difference rarely shows up in COGS. One wholesale account places one large order a month and pays on time. Another places twelve small orders, returns a fifth of them, calls support weekly, and pays 60 days late — tying up your cash and your staff. Same product, same price, wildly different profit.
Rung 3 assigns the cost to serve: support time, returns and warranty handling, custom work, expedited shipping you absorb, and the financing cost of slow payment. You do not need precision to the penny — a reasonable allocation of support hours and return rates per segment is enough to reveal the pattern. Businesses that do this analysis often discover that 20 percent of customers generate more than 100 percent of profit, while a long tail of demanding small accounts consumes the rest.
Rung 4: The Fully Loaded View — Handle With Care
Only now, optionally, allocate fixed costs: rent, admin salaries, insurance, software. This rung answers a different question — whether a line or segment could stand alone as its own business — and the answer depends entirely on how you allocate costs that are genuinely shared. Allocate by revenue and big lines look worse; allocate by headcount and labor-heavy lines look worse. There is no neutral choice.
Treat rung 4 as a scenario tool, not a verdict. Rungs 1 through 3, built on costs you can trace directly, are the solid ground for pricing and keep-or-drop decisions. Fixed-cost allocation is useful for long-range planning but dangerous for short-term calls, because dropping a line with a positive contribution margin does not make its share of the rent disappear — it just pushes that rent onto everything left behind.
How to Build the Analysis in Practice
You do not need special software. A spreadsheet and a disciplined chart of accounts will get you there. Here is the sequence that works for most small businesses.
Step 1: Define your units. List the slices you will compare: each product line, each sales channel, and each customer segment large enough to matter. Three to six slices per dimension is plenty to start. A useful rule: if a slice is under 5 percent of revenue, fold it into "other" until it grows.
Step 2: Tag every transaction. The analysis is only as good as the tagging behind it. Every sale needs a product, channel, and customer-segment tag; every variable cost needs to attach to the sale it belongs to. In plain-text accounting this is natural — tags and metadata travel with each transaction — but any system works if you are consistent. The month you start tagging is the month the analysis becomes possible, so start now even if the first cut is rough.
Step 3: Separate variable from fixed, honestly. Walk your expense accounts line by line and sort each into variable, fixed, or mixed. Mixed costs — a salary with overtime tied to volume, software priced per order — get split by their actual behavior, not by habit. When in doubt, ask: if we sold 10 percent more next month with no other changes, would this cost move? If yes, at least part of it is variable.
Step 4: Climb the ladder for each slice. Build one column per product line, channel, or segment, with rows for revenue, COGS, channel costs, cost to serve, and the resulting margins at each rung. A simple worked example for two channels selling the same product shows how fast the picture changes:
| Direct website | Marketplace | |
|---|---|---|
| Revenue per order | 120.00 | 120.00 |
| Product COGS | (48.00) | (48.00) |
| Rung 1 gross margin | 72.00 (60%) | 72.00 (60%) |
| Channel fees and processing | (3.60) | (21.60) |
| Shipping and fulfillment | (9.00) | (14.00) |
| Rung 2 contribution | 59.40 (50%) | 36.40 (30%) |
| Support, returns, cost to serve | (4.00) | (11.00) |
| Rung 3 customer margin | 55.40 (46%) | 25.40 (21%) |
Identical products, identical prices — and the direct order contributes more than twice the margin of the marketplace order. Nothing about that shows up on a standard P&L, which blends both channels into one comfortable average.
Step 5: Refresh monthly, act quarterly. Rebuild the ladder each month so the numbers stay honest, but make structural decisions — repricing, delisting, renegotiating — on quarterly trends. One bad month is noise; three in a row is a verdict.
The Decisions This Analysis Unlocks
An honest ladder turns vague unease into specific moves:
- Reprice with evidence. A product at rung 1 below the rest needs a higher price, a lower cost, or an exit. The ladder tells you how big the gap is, so you raise prices by the amount the math requires instead of guessing.
- Rebalance channels. When one channel's rung 2 margin is double another's, every marketing dollar has an obvious home. You can also negotiate from strength — knowing your true marketplace margin tells you exactly which fee increase would make the channel unprofitable.
- Fix or graduate costly customers. A segment with strong rung 2 margins but weak rung 3 margins does not have a pricing problem; it has a cost-to-serve problem. Minimum order sizes, restocking fees, self-service support, and tighter payment terms repair these accounts without losing them.
- Kill zombie lines. A product with a persistently negative contribution margin after honest variable costs is not "building the brand" — it is a subscription you pay to keep working. The ladder gives you permission to discontinue it, backed by numbers instead of gut feel.
- Spend acquisition money wisely. Once you know contribution margin per customer, you know the ceiling on what you can afford to spend acquiring one. Any customer acquisition cost above lifetime contribution is growth that destroys value.
Common Mistakes That Corrupt the Ladder
Trusting the blended average. Company-wide gross margin is a reporting number, not a decision number. Every decision in this guide requires sliced margins. If your accounting today only produces the blend, tagging transactions is your first project.
Allocating fixed costs too early. The most common corruption is loading rent and salaries onto products before the variable-cost picture is clear. This makes small lines look hopeless and big lines look worse than they are, and it can talk you into dropping a line whose contribution margin was actually paying part of the rent.
Ignoring cost to serve. Businesses that stop at rung 2 systematically overvalue demanding customers and high-touch channels. Support hours, returns, rework, and slow payment are real costs with real segment skew — leaving them out flatters exactly the slices that need scrutiny.
Mixing one-time and recurring. Setup fees, onboarding revenue, and one-off projects should not inflate the margins of the recurring business they attach to. Separate them, or a great onboarding quarter will disguise deteriorating subscription economics.
Analyzing once and framing it. Costs drift — shipping rates rise, fees change, support load grows. A ladder built in January and trusted in October is a historical document, not a management tool. Monthly refreshes keep it honest.
Keep Your Margin Analysis Honest With Clean Books
Every rung of this ladder rests on one foundation: transactions tagged accurately, costs classified honestly, and variable separated from fixed without wishful thinking. The businesses that make the best pricing and product decisions are rarely the ones with the fanciest dashboards — they are the ones whose underlying books can answer "what did this product, channel, or customer really cost us?" without a week of spreadsheet archaeology.
That is a bookkeeping discipline as much as an analysis technique. Recording each sale with its product, channel, and customer tags at the moment it happens, and keeping COGS complete down to freight and packaging, turns month-end from a reconstruction project into a reporting routine. If you keep your books in plain text, the Beancount documentation shows how tags and metadata attach directly to each transaction. If your current setup makes that tagging painful, it may be costing you more than convenience — it may be hiding the exact insights this guide describes.
See Every Slice of Your Profit Clearly
As you dig into unit economics and climb the gross margin ladder, maintaining clear financial records with consistent tagging is essential. Beancount.io provides plain-text accounting that gives you complete transparency and control over your financial data — no black boxes, no vendor lock-in. Get started for free and see why developers and finance professionals are switching to plain-text accounting.





