Gross Margin by Customer Segment Explained
Your overall gross margin tells you how profitable your sales are on average. But averages hide a lot. Some customers buy at full price with little fuss, while others need discounts, custom work and extra shipping. Gross margin by customer segment splits that single number into groups, so you can see which customers really fund your business and which ones quietly cost you.
Key takeaways
- Gross margin is revenue minus the direct cost of delivering it, shown as a share of revenue.
- Splitting it by customer segment, such as size, channel or industry, reveals differences your overall margin hides.
- You only need sales by segment and a fair way to assign direct costs to each group.
- Use the results to adjust pricing, discounts, service levels and where you spend your marketing effort.
Imagine two customers who each spend the same amount with you this year. One orders standard products online and pays on time. The other negotiates a discount, asks for rush delivery and needs a custom version every time. On your sales report they look identical. On your margin report they could not be more different.
The end of the year is a good moment to run this analysis. You have twelve months of sales to work with, you are probably planning prices and targets for the new year, and any changes you make can start cleanly in January. This explainer walks through the idea, the math and a template you can copy.
A quick note: this is general information about financial analysis, not accounting or tax advice. How you define cost of goods sold for your official accounts may follow specific rules, so check with your accountant before changing how you report.
Gross margin in plain terms
Gross profit is what is left from your sales after you pay the direct costs of making or delivering what you sold. Gross margin expresses that as a percentage of revenue:
Gross margin = (revenue minus cost of goods sold) divided by revenue
Cost of goods sold, often shortened to COGS, includes costs that rise and fall with what you sell. For a product business, that usually means materials, stock purchases, packaging and inbound freight. For a service business, the equivalent is often called cost of services and might include the hours of the people doing the work, subcontractors and project-specific tools.
What gross margin does not include is just as important. Rent, general admin, most marketing and your own salary as manager are usually operating expenses, counted further down the profit and loss statement. Gross margin focuses only on the core question: how much does each sale leave you to cover everything else?
How this differs from related measures
You may also hear about contribution margin, which subtracts all variable costs, including things like sales commissions and card fees, and about unit economics, which looks at profit per customer over time. Segment gross margin sits in between: it uses standard gross margin, but splits it by type of customer. It is often the easiest of the three to start with, because the numbers are usually already in your books.
Why segment-level margin matters
An average margin can look healthy while one group of customers is dragging it down. Looking by segment helps you spot several common patterns:
- Discount creep: larger customers often negotiate lower prices, and over time their margin can shrink without anyone noticing.
- Hidden service costs: some customers need more custom work, rework or support time that counts as delivery cost.
- Channel differences: sales through marketplaces or wholesale partners may carry fees or lower prices compared with direct sales.
- Geographic costs: shipping and handling can vary widely by region or country.
- Product mix: some segments naturally buy more of your higher-margin products.
None of these patterns means a segment is bad. A lower-margin segment might bring steady volume, great referrals or a foothold in a new market. The point is to know the trade-off so you can make deliberate choices instead of accidental ones.
Choosing your segments
Start with groups that reflect real differences in how customers buy or how you serve them. You do not need many. Three to five segments is usually enough to see patterns without drowning in detail.
- By customer size: small, mid-sized and large accounts.
- By channel: direct online, in store, wholesale or marketplace.
- By industry or type: for example, restaurants, offices and retail clients.
- By geography: local, national and international.
- By product line or plan: if customers usually buy within one range.
Pro tip
Pick the segmentation that matches a decision you actually need to make. If you are debating whether to keep selling on a marketplace, segment by channel. If you are reviewing wholesale pricing, segment by customer type. Analysis tied to a real decision gets used.
How to calculate it step by step
Here is a practical method that works in a spreadsheet using data from your accounting or sales system.
- Tag your customers. Add a segment label to each customer in your sales export. Keep the rules simple and written down.
- Total revenue by segment. Sum net revenue for each segment after discounts and returns.
- Assign direct costs. Match COGS to each segment. If your system tracks cost per item sold, this may be easy. If not, use a fair allocation method, such as cost per product multiplied by units sold to each segment.
- Add segment-specific delivery costs. Include costs that clearly belong to one group, such as marketplace fees, custom packaging or extra freight, if you treat them as delivery costs.
- Calculate gross profit and margin. Subtract costs from revenue for each segment, then divide by that segment's revenue.
- Compare and question. Look for segments well above or below your average, and ask why.
A copyable segment margin template
Copy these columns into a spreadsheet. All figures below are made up for illustration.
| Segment | Net revenue | Cost of goods sold | Segment delivery costs | Gross profit | Gross margin |
|---|---|---|---|---|---|
| Direct online (example) | $120,000 | $48,000 | $6,000 | $66,000 | 55% |
| Wholesale (example) | $90,000 | $54,000 | $4,500 | $31,500 | 35% |
| Marketplace (example) | $40,000 | $16,000 | $8,000 | $16,000 | 40% |
| Total | $250,000 | $118,000 | $18,500 | $113,500 | 45.4% |
The blended margin of about 45% looks fine on its own. The breakdown shows that direct online sales are doing much of the heavy lifting, while wholesale sits well below average. That is the kind of insight a single number can never give you.
Example
Leo runs a small coffee roastery that sells to cafes, offices and home customers through a subscription. When he splits margin by segment, he finds that offices have the lowest margin, mostly because of small, frequent deliveries and free equipment loans. Instead of dropping office clients, he introduces a minimum order size and a delivery schedule. Within a few months, the office margin moves closer to his average. (A made-up example for illustration.)
Common mistake
Loading every overhead cost into one segment because it "feels" more expensive. If you spread rent or admin salaries in an arbitrary way, the results tell you about your allocation choices, not about your customers. Keep gross margin focused on direct costs, and analyze overheads separately if you need to.
Reading the numbers carefully
Before you act on the results, take a few minutes to sense-check them. Segment analysis is only as good as the data and the assumptions behind it.
- Check the size of each segment. A segment with only a handful of customers can swing wildly because of one large order or one big return. Treat small groups as early signals, not firm conclusions.
- Look at the trend, not one snapshot. Compare this year with last year, or each quarter with the one before. A segment whose margin is slowly falling deserves more attention than one that has always been a little lower.
- Watch for timing effects. A wholesale customer who stocked up in November may look unusually strong this year and weak next year. Holiday promotions can also lower margins in one quarter only.
- Test your allocation method. If changing how you split a shared cost flips the ranking of your segments, the difference between them is probably too small to act on.
- Talk to the people involved. Your sales, support or delivery team often knows why a segment is costly long before the spreadsheet does.
The goal is not perfect precision. It is a clear enough picture to make one or two better decisions with confidence.
What to do with the results
Numbers only matter if they lead to better choices. Once you see the margin for each segment, consider these moves:
For high-margin segments
- Look for more customers like them, and focus marketing where they come from.
- Protect the experience they already enjoy, since these customers may be your foundation.
- Ask a few of them what they value most, and do more of it.
For low-margin segments
- Review discounts and price agreements before renewals.
- Set minimum order sizes or delivery thresholds where small orders drive cost.
- Charge separately for custom work, rush jobs or extra services.
- Check whether the segment brings other value, such as volume, referrals or strategic reach, before making big changes.
Any pricing or contract change should respect existing agreements and be communicated clearly. Give customers notice, explain what is changing and why, and offer options where you can.
Your segment margin action plan
- Choose three to five segments tied to a real decision
- Tag every customer in your sales export with a segment
- Total net revenue and direct costs for each segment
- Calculate gross profit and gross margin per segment
- Compare each segment with your blended average
- Pick one action for your highest and lowest margin segments
- Repeat the analysis each quarter to track changes
Frequently asked questions
What is a good gross margin for each segment?
There is no universal figure. Margins vary widely by industry, business model and channel. The most useful comparison is with your own average and your own history, so you can see which segments are improving or slipping.
How often should I run this analysis?
Many small businesses run it quarterly, with a fuller review at year end. Running it before pricing or contract renewals is especially helpful.
Can a service business use segment gross margin?
Yes. Replace product costs with direct service costs, such as time spent by staff or contractors on each client group. Tracking time by client makes this much easier.
Should I drop customers in a low-margin segment?
Not automatically. Try fixing the cause first, through pricing, minimum orders or clearer service limits. Some low-margin customers still cover part of your fixed costs, so losing them could leave you worse off. Make the call only after you understand the full picture.
Related reading
The bottom line
Gross margin by customer segment turns one average number into a clear map of where your profit comes from. Choose a few meaningful segments, assign direct costs fairly, and compare each group with your overall margin.
Run it once this month with your year-end data. You may find that a small change to pricing, minimum orders or service levels for one segment does more for next year's profit than chasing new sales ever could.