May 25, 2026 · 7 min read

Gross Margin Formula: How to Calculate & Improve It

Gross margin formula shows how much revenue you keep after direct costs. Learn how to calculate it, see agency benchmarks, and find proven ways to improve your margin.

The gross margin formula is the simplest financial metric with the most outsized impact on your forecasting. It tells you what percentage of revenue survives after direct costs — and it is the foundation every other metric in ProfitPulse is built on. If your gross margin is wrong, your ROAS, break-even, and scaling velocity will all be wrong.

The gross margin formula

Gross margin % = (Revenue − Cost of goods sold) ÷ Revenue × 100. For service businesses, replace COGS with direct delivery costs: contractor spend, media that passes through, and any variable fulfillment. A $10,000 project with $3,500 in direct costs has a 65% gross margin.

Why gross margin matters more than revenue

Two agencies both bill $100,000 a month. One runs at 70% gross margin ($70,000 contribution); the other at 35% ($35,000). They have identical top lines and radically different capacity to hire, market, or survive a slow quarter. Revenue is vanity; gross margin is oxygen.

2026 gross margin benchmarks by agency type

  • Pure media buying / performance: 15–30% (high pass-through ad spend)
  • Creative / branding retainers: 55–70% (labor-heavy, low variable cost)
  • Dev / product shops: 60–75% when utilization stays above 70%
  • Full-service digital: 45–60% depending on service mix

Shopify's gross margin guide tracks similar ranges for product businesses and explains how to segment margin by SKU or service line — a discipline every agency should borrow.

Four ways to improve gross margin

  1. Reduce variable costs — renegotiate media or tooling contracts that scale with revenue
  2. Shift to value-based pricing — decouple price from hours and capture more of the value you create
  3. Productize high-margin services — templated audits, playbooks, and workshops deliver at lower unit cost
  4. Cut low-margin clients — the bottom 20% of revenue often drags overall margin down disproportionately

How gross margin connects to every other metric

Gross margin is the denominator in your break-even ROAS. It sets the ceiling on your agency profit margin. And it determines how fast you can acquire customers profitably. Most agencies track it quarterly; the best track it per client, per project, and per channel.

Model gross margin in real time

ProfitPulse lets you plug in revenue, direct costs, and fixed opex to see your gross margin, net margin, and break-even side by side. Change a price or a cost assumption and watch the cascade through ROAS, payback, and scaling velocity instantly.