GTM Fundamentals · intermediate · node 5.4

Gross margin and contribution margin

Gross margin is revenue minus the cost of goods sold (COGS)—the direct costs to deliver the product. Contribution margin is revenue minus all variable costs (COGS + variable overhead)—the money left after you pay for everything that scales with revenue. High contribution margin (>70%) is the foundation of unit economics efficiency. It means you have room to spend on acquisition and still be profitable. Low or negative contribution margin means the business cannot work at scale. A founder who does not measure margin by segment will ship at a loss, scale losses instead of profits, and wake up to a business that is mathematically impossible.
intermediate Last updated 2026-06-25

Prerequisites

Unit economicsPricing strategyCustomer acquisition cost

Every founder knows revenue matters. But if revenue is not paired with margin, it is a vanity metric. A founder who generates $1M in revenue at 20% margin is not in a healthier business than a founder who generates $500k at 70% margin. The second founder has $350k in surplus after direct costs. The first has $200k. The second can afford acquisition, payroll, and growth. The first is burning money to scale and running toward a cliff.

Margin is the foundation. Everything that follows—CAC ceiling, payback period, whether you survive a downturn—is determined by margin. A founder who does not understand margin will confuse growth with success, scale losses, and build a business that mathematically cannot work.

Two definitions, two uses

Margin has two definitions, and they measure different things. Both matter.

Gross margin = Revenue − COGS.

COGS is the cost of goods sold: the direct, variable costs to deliver the product to one customer. For SaaS, this might be cloud compute, payment processing fees, and direct support costs for that customer. For e-commerce, it might be the cost of goods, shipping, and fulfillment. For a marketplace, it might be the cost of supply (commission to sellers, guarantee insurance, payment processing). Gross margin tells you what is left after you pay for the thing you sold.

For many software companies, COGS is invisible or very low. An additional user on Slack costs Slack almost nothing in direct variable costs (the marginal cloud compute is negligible). But for other businesses, COGS is substantial. A video conferencing company pays for bandwidth for every call; a marketplace pays commission to sellers; a content delivery platform pays for storage and retrieval.

Contribution margin = Revenue − (COGS + Variable overhead).

Variable overhead is the cost that scales with revenue but is not direct COGS. This includes sales commissions, payment processing that scales, customer success costs that scale with customer count, and free trial or freemium offering costs. Some companies include customer support here if support costs scale with customer volume; others lump it under fixed costs. The definition varies, but the idea is the same: contribution margin is what is left after you pay for everything that is directly caused by selling a unit.

Contribution margin is almost always lower than gross margin, and it is a more useful measure for understanding whether a unit (a customer, a cohort, a segment) is profitable after all variable costs.

For a SaaS company with 80% gross margin (very high because COGS is low), the contribution margin might be 65% after accounting for sales commissions, payment processing, and customer success labor. For an e-commerce company with 50% gross margin, the contribution margin might be 35% after accounting for fulfillment, returns, and customer acquisition.

Why margin matters: the payback period

Margin determines payback period, and payback period determines survival.

Payback period is how long it takes to recoup the CAC from the profit on a customer. The formula is:

Payback period (months) = CAC / (Monthly revenue per customer × Contribution margin)

Imagine two companies, both with $100 CAC and $100 monthly revenue per customer.

Company A: 70% contribution margin. Monthly profit per customer = $100 × 0.7 = $70 Payback = $100 / $70 = 1.4 months

Company B: 30% contribution margin. Monthly profit per customer = $100 × 0.3 = $30 Payback = $100 / $30 = 3.3 months

Both have the same CAC and monthly revenue. But Company A recovers its acquisition costs in 1.4 months; Company B takes 3.3 months. If a customer stays for 24 months, Company A will earn back the CAC almost 17 times over. Company B earns it back only 7 times over. Same revenue, wildly different economics.

A short payback period gives a business two superpowers: the ability to survive a downturn (losses from payback are minimal) and the ability to scale (profits accrue quickly and fund the next round of acquisition). A long payback period means you must raise capital to bridge the gap, and if you cannot raise, you cannot scale.

Margin determines payback. Everything downstream depends on payback.

The margin gradient: not all customers are equal

One of the biggest mistakes founders make is treating margin as a single number for the whole business. But margin is not uniform; it is a gradient. Some customers are high-margin, others are low-margin. Some segments are structurally more expensive to serve.

Consider a B2B SaaS company that sells both a platform (land-and-expand) and implements custom integrations for large customers.

Segment A: Platform-only customers (self-serve motion, 5-10k ARR)

  • Revenue: $100 per month
  • COGS (hosting, payment processing): $10
  • Customer success (email support): $5 per month
  • Contribution margin: ($100 − $10 − $5) / $100 = 85%

Segment B: Custom implementation customers (sales-led motion, 50k+ ARR)

  • Revenue: $5,000 per month
  • COGS (hosting): $50
  • Implementation costs (engineering time): $1,500 per month (across payback period)
  • Sales commissions (20% of new sales, amortized): $200 per month
  • Customer success (dedicated success manager): $800 per month
  • Contribution margin: ($5,000 − $50 − $1,500 − $200 − $800) / $5,000 = 50%

Segment A has 85% contribution margin; Segment B has 50%. Same product. Different segments. Wildly different economics.

If the founder does not measure by segment, they will think the company has 65% margin (a weighted average) when in fact the platform business is structurally more profitable. They will continue to invest in custom implementations because the ACV is higher, not realizing that the margin is lower. They will optimize the wrong unit economics.

The worst case: a founder segments the business and finds that one segment has negative contribution margin. A segment where the customer is acquired for $10k, stays for 3 years, and generates $2k in yearly revenue. The math: $2k per year × 3 years = $6k lifetime revenue, minus $10k CAC = net loss. If that founder does not measure margin by segment, they will scale a losing segment and blame execution.

Diagnostic: margin by segment

The first diagnostic step is to measure contribution margin by customer segment:

  1. Segment by motion (product-led vs. sales-led) or by buying behavior. Segments should have different acquisition costs, different support needs, or different implementation costs.
  2. Calculate revenue, COGS, and variable overhead for each segment. Be granular. Do not lump customer success under “fixed overhead” if it varies by segment.
  3. Calculate contribution margin per segment.
  4. Plot payback period per segment. Which segments recover CAC fastest?
  5. Look for negative-margin segments. If a segment has <30% contribution margin, the unit economics do not work at that volume.

Example diagnostic table for a B2B SaaS company:

SegmentARRCACPayback (mo)Contrib MarginLTV (2yr)LTV:CAC
SMB platform$5k$2k2.280%$9.6k4.8x
Mid-market platform$30k$8k1.675%$67.5k8.4x
Enterprise custom$200k$50k3.245%$380k7.6x
Marketplace integration$8k$1.5k1.870%$14.4k9.6x

Notice: the SMB platform and marketplace integration have the shortest payback periods and the highest LTV:CAC ratio. These are the segments that fund the business. The enterprise custom segment has strong LTV but a long payback period, which means it requires capital to scale. A founder looking only at ACV would prioritize enterprise; a founder looking at payback and margin would prioritize SMB and marketplace.

How margin degrades: the commoditization trap

Margin is not static; it degrades over time. As a category matures, as competitors enter, as customers become more price-sensitive, margin falls. A founder who does not monitor this will wake up to a margin collapse and be forced to raise price or cut costs, often both.

Why margins degrade:

  • Competitive pressure. Competitors enter the market; customers have options; differentiation erodes; price competition intensifies. What was a 70% margin offering becomes a 50% margin commodity.
  • Volume-driven cost pressure. As you add more customers, support costs scale faster than revenue if you do not automate. Margin looks good at 10 customers; it looks bad at 1,000.
  • Free or low-margin entrants to the ecosystem. A competitor launches a free version or enters with a low-price-point offering. Your high-margin customers (SMB platform) start comparing to the free version instead of to you. They churn or downgrade.
  • Expectations misalignment. You positioned as a premium product and charged premium price. Customers came for premium but now expect commodity-level pricing. You cut price; margin degrades.
  • Implementation creep. Customer implementations that used to be “plug and play” now require custom work. Margins erode because variable costs rise faster than revenue for that segment.

The trap: a founder sees margin degradation and responds by raising price. Customers leave. The founder cuts price to get them back. Margins stay low. The business becomes a margin game, not a growth game. Eventually, the founder realizes the market is commoditized and exits or pivots.

The way out: when margins start to degrade, do not fight commoditization with price. Redesign the unit economics. Move upmarket (serve customers with less price sensitivity). Reduce COGS (invest in automation, platform improvements, operational leverage). Shift the motion from high-touch to self-serve or community-driven. Change the product to reduce variable costs per unit. In other words, change the structure, not just the price.

Founder mistakes: how to destroy unit economics

There are a few classic ways founders destroy margin and do not realize it until it is too late.

Mistake 1: Selling at a loss to scale

A founder sees a market opportunity and wants to win fast. They price low or below cost to acquire customers. “Once we have scale, we will raise price.” Or: “Once we have scale, we will improve unit economics.” This is a trap.

Why it fails: customers acquired at a loss stay at low price. Raising price after they have signed a multi-year contract is difficult. If you raise price on renewal, customers churn. The cohorts you sold at a loss are anchored to a low price for their entire lifetime. You cannot improve unit economics with that cohort; you can only improve it with new cohorts sold at sustainable prices. Meanwhile, the old cohorts are dragging down your overall unit economics.

Example: a SaaS company sells their first 100 customers at $1k per year at 30% margin (below their target of 60%). They think “we will improve margin as we scale.” Now, three years later, they have sold 500 customers at sustainable 60% margin, but the original 100 are still at 30%. The original cohorts are worth $100k per year in revenue but only $30k in gross profit. New cohorts are worth $400k in revenue but $240k in gross profit. The portfolio is dragged down by the decision to sell at a loss.

The lesson: never sell at a loss to scale. Sell at sustainable margins from day one. If you cannot achieve sustainable margins, the market does not want what you are selling, or you have not found the right segment. Finding the right segment is better than commoditizing your price.

Mistake 2: Not measuring margin by segment

A founder does not segment revenue by customer type, motion, or size. They calculate company-wide margin (60%) and assume all customers are equally profitable. In reality, they have a high-margin segment (80%) and a low-margin segment (30%). The founder continues to invest in the low-margin segment because they do not see the margin drag.

Why it fails: the founder optimizes for revenue growth instead of profit growth. They acquire more of the low-margin segment. As the low-margin segment grows, company margin shrinks. Eventually, the average margin is 45%, and the business does not work anymore. The founder blames “execution” or “scaling challenges” when the real problem was structural: the mix shifted toward lower-margin customers.

Example: a marketplace starts with a model where merchants are the revenue source (commission on GMV). Merchants are high-margin because the cost to acquire them is low and they generate volume. Later, the marketplace adds buyer acquisition and loyalty programs, which are lower-margin because they require paid marketing spend. The founder does not segment the revenue. Company-wide margin looks flat (70%) but buyer acquisition margin is only 45%. As the platform grows buyer acquisition, margins drop. If the founder had segmented, they would have realized buyer acquisition was not profitable at the unit level and would have either improved the unit economics or prioritized merchant growth instead.

The lesson: measure margin by segment from the start. Know which customer types, sizes, and motions are profitable. Double down on high-margin segments. Fix or de-emphasize low-margin ones.

Mistake 3: Not raising price to protect margin

A founder sets a price in year one and does not change it for five years. Costs inflate; product improves; market shifts; customer value rises. But the price stays the same. Margin erodes because costs rise while revenue is flat.

Why it fails: margin is a choice. If you do not actively protect margin, it will erode. Competitors might raise price; you stay flat and become the low-margin player. Costs rise (COGS, infrastructure, customer support); you do not raise price and margin shrinks. After five years, your margin is 40% and you cannot scale profitably.

Example: a API company (Stripe, Twilio, Sendgrid) sets per-call pricing in year one. Over five years, their infrastructure costs drop 50% (Moore’s law) and their customer value rises 300% (customers scale and use more volume). They raise price 10%. Margin improved from 70% to 90%, and customers do not churn because the product got much better and their usage grew so much that 10% price increase is still a bargain. A competitor who did not raise price is stuck at 70% margin and losing to price compression.

The lesson: raise price regularly. Price is a lever to protect and improve margin. Raise it when your costs fall, when your product improves, when customer value increases, or when the market will bear it. If every time you raise price you lose 5% of customers but margin improves 15%, the trade is worth it. If every time you raise price you lose 30% of customers, the market is telling you the product is commoditized and you need to redesign the unit economics, not just the price.

Mistake 4: Accepting commoditization instead of redesigning

A founder builds a product in a market where everyone is already competing on price. The margin is 30% and has been for a decade. The founder accepts this as “the market” instead of asking: why is this market commoditized? Can I redesign the unit economics to escape commoditization?

Why it fails: accepting commoditization means the business can only win on volume and operational efficiency. If you are not the cheapest or the most efficient operator, you lose. Your only exit is to become a feature inside a larger platform (acquisition) or to be crushed by a competitor who is more efficient. There is no upside.

Example: email hosting was commoditized (Mailgun, SendGrid, etc.) until Klaviyo and Iterable redesigned the unit economics by adding intelligence and targeting on top of email delivery. They were selling email to brands who wanted smarter email, not cheaper email. Same underlying service (email delivery) but a different segment (e-commerce and marketing teams instead of engineers). Different segment meant different willingness to pay, different positioning, different unit economics. They escaped commoditization by redesigning who they sold to and what job they were solving.

The lesson: when margin is low, do not compete on price. Redesign the unit economics by finding a better segment, reducing COGS, or shifting the motion. If you are stuck in a commoditized segment, move upmarket to a less price-sensitive segment. If you have high COGS, invest in reducing it or find a different product. If the motion is expensive, shift to product-led or self-serve. Do not just accept low margin.

How to improve margin: the two levers

Margin is determined by two levers: revenue (price) and costs (COGS + variable overhead). To improve margin, you raise price, lower costs, or both.

Lever 1: Raise price

Pricing is a lever most founders do not pull. They set a price and leave it alone for years. But raising price is the fastest way to improve margin if the market will bear it.

How to raise price without killing churn:

  1. Segment the raise. Do not raise price on all customers uniformly. Raise price on new customers first. After 6-12 months, raise price on renewals for existing customers who are getting strong value. Leave your lowest-value customers at the old price.

  2. Tie the raise to value. If customers are getting more value (more usage, more value in your product, more revenue attributable to your product), they will tolerate a price increase. Communicate the value creation: “Your usage increased 200%, so we are adjusting your plan to reflect the value you are getting.”

  3. Test elasticity. If you are not sure how much the market will bear, test a price increase on a subset of customers or a new cohort. Measure churn and LTV before and after. If LTV improves (even with higher churn), the raise was worth it.

  4. Raise price when the market will bear it. Raise price after a major product improvement, when a competitor enters and creates urgency, or when your category attracts new venture funding (a signal of strength). Do not raise price in a recession or when the market is uncertain.

Example: a B2B SaaS company with $10M ARR at 70% contribution margin raises price by 15% on new customers. New customers are more than happy to pay 15% more because they are willing to pay for the latest version with the latest features. After one quarter, the new customer cohort has 5% higher churn (normal for a price increase) but 30% higher LTV because they paid 15% more. The company keeps the price increase. Over two years, new customer LTV improves 50%, which improves overall unit economics without raising price on existing customers.

Lever 2: Lower COGS and variable costs

The second lever is to reduce the cost side. This is harder than raising price but often more sustainable.

Ways to reduce COGS:

  1. Improve operational efficiency. Automate manual processes. Batch work to reduce per-unit cost. Consolidate tools and vendors to reduce overhead. If customer success is 20% of revenue, invest in tooling, templates, and automation to get it to 15%.

  2. Reduce direct product costs. Negotiate with infrastructure providers (CDN, cloud hosting, payment processors). Move to more efficient infrastructure (cheaper region, different architecture). Optimize for cost instead of feature completeness where it does not impact customer outcomes.

  3. Shift the motion to reduce customer acquisition costs. If your sales-led motion has a $50k CAC, can you shift to product-led and reduce CAC to $5k? This directly improves margin by reducing variable costs per customer.

  4. Redesign the product to reduce support burden. If customers need 10 hours of onboarding and support per customer, can you redesign the product to be self-serve? This reduces variable costs per customer and improves margin.

Example: a video platform discovers that 30% of their COGS is customer support (email, chat, implementation). They invest in building better documentation, video guides, and self-serve setup. Support cost per customer drops from 30% to 10% of revenue. Margin improves from 60% to 80%. The company did not raise price; they improved profitability by reducing costs.

Real examples: margin-driven positioning changes

Example 1: Twilio’s journey from commoditized to premium

Twilio sells SMS and voice APIs—a commodity market where every service is nearly identical and customers shop on price. Margin was compressed.

Twilio did not win on price. Instead, they:

  1. Repositioned the product from “SMS API” to “customer engagement infrastructure.” They sold a higher-level job (build customer relationships) instead of a lower-level job (send texts).

  2. Added intelligence and tools on top of the API (Flex for call centers, Studio for workflows). Now they were selling a platform, not just an API. Customers paid more because they were getting a more complete solution.

  3. Moved upmarket. Instead of selling to engineers at startups (price-sensitive), they sold to customer service teams and contact centers at enterprises (less price-sensitive). Different segment, different willingness to pay, higher margins.

Result: Twilio went from a commoditized API provider to a $10B+ platform company. Margin improved by shifting segment and positioning, not by competing on price.

Example 2: Figma’s land-and-expand motion

Figma entered a market where design tools (Sketch, Adobe XD) had low-margin SaaS models. Figma did not compete on price; instead, they:

  1. Designed a product with extreme stickiness. Collaborative, web-based, real-time. Engineers and designers instantly saw the value. High-margin adoption within teams.

  2. Built a land-and-expand motion. Started with individual designers (low CAC because product-led), then expanded to entire design systems, then to design operations. Each expansion increased revenue per customer and improved the contribution margin over time because the motion was mostly self-serve.

  3. Priced to capture value. Figma did not undercut Adobe or Sketch on price. They priced for value (unlimited files, real-time collaboration, web-based = massive time savings). High price, high margin.

Result: Figma’s contribution margin is >80% (estimated) because the motion is product-led and there are minimal variable costs per customer. The business scales with minimal CAC and maximum margin.

Example 3: Stripe’s infrastructure shift

Stripe sells payment processing—a commodity where margin is compressed by payment processor competition. But Stripe:

  1. Designed a API that reduced COGS. Instead of integrating to 50 payment processors (expensive), Stripe built their own unified system. Per-transaction COGS dropped.

  2. Built a motion around simplicity. Every design decision reduced the cost of integration (for Stripe) and the pain of integration (for customers). Simpler integrations meant more adoption, faster adoption, lower implementation costs. Margin improved by reducing variable costs per customer.

  3. Moved upmarket. Focused on high-volume customers (Lyft, Shopify, etc.) where a 0.5% fee difference is worth millions. Margin improved by shifting to less price-sensitive segment.

Result: Stripe has best-in-class payment processing margins in an industry where margins are typically 2-3%. Stripe negotiated 1-2% (estimated) through design and positioning.

Rule 1: Measure contribution margin by segment, not company-wide

Do not calculate a single margin number for your business. Segment by customer size, motion, buying behavior, or geography. Calculate margin for each segment. Identify which segments are profitable. Invest in the profitable segments; fix or de-emphasize the unprofitable ones.

Rule 2: High-margin businesses scale; low-margin businesses raise capital forever

A 70% contribution margin business can acquire customers profitably and reinvest profits. A 30% contribution margin business needs capital for every unit of growth. The first business is defensible and sustainable; the second is dependent on capital availability.

Rule 3: Do not price by what competitors charge; price by what the customer value is

If competitors are priced at $100/month and you are selling a product worth $100/month in customer value, you can charge $100. If your product is worth $1,000/month to the customer, you can charge $500 and still be a bargain. Price by value, not by competition.

Rule 4: Margin is a choice; protect it actively

Margin does not stay high unless you actively defend it. Raise price regularly (annually). Reduce costs relentlessly. Shift to higher-margin segments when lower-margin segments commoditize. Do not accept margin erosion as inevitable.

Rule 5: If a segment has <40% contribution margin, the unit economics do not work

Below 40% contribution margin, payback is too long, LTV is insufficient, and the business requires too much capital to scale. Fix the segment or abandon it. Do not hope that scale will fix bad unit economics; it will not.

Next: Payback period and LTV

Now that you understand margin—how it is measured, how it degrades, and how to improve it—the next piece is payback period and LTV. Payback tells you how fast you recover acquisition costs; LTV tells you what those customers are worth. Together, they determine whether a business works.

Key takeaways

  • Gross margin = revenue − COGS (direct delivery costs). Contribution margin = revenue − (COGS + variable overhead). The second is more useful for unit economics.
  • Contribution margin tells you whether a unit (a customer, an order, a cohort) generates surplus after direct costs. High margin (>70%) leaves room for acquisition and overhead; low margin (&lt;50%) means you are losing money to scale.
  • Margin is not fixed; it is structure. Some customers are high-margin (land-and-expand, platform upsell), others are low-margin (commoditized, high-support). Different segments have different margin curves.
  • Founder mistakes: selling at a loss to scale, not measuring margin by segment, not raising prices to improve margin, accepting commoditization instead of redesigning the unit economics.
  • Margin drives everything downstream: payback period, CAC ceiling, whether the business survives a downturn. A founder who optimizes price/CAC without understanding margin will pursue growth that is actually value destruction.

Related concepts

COGSVariable costsFixed costsUnit economicsPayback periodCACLTV

How to cite this

@misc{shalvi_gtm_fundamentals_gross_margin_contribution_margin_2026,
  author = {Singh, Shalvi},
  title  = {Gross margin and contribution margin},
  year   = {2026},
  url    = {https://shalvisingh.com/gtm/fundamentals/gross-margin-contribution-margin},
  note   = {GTM World Model — GTM Fundamentals}
}

Singh, Shalvi. "Gross margin and contribution margin — GTM Fundamentals." shalvisingh.com, 2026. https://shalvisingh.com/gtm/fundamentals/gross-margin-contribution-margin