Guide
How to Calculate Agency Gross Margin
A retainer client pays a healthy monthly fee. Whether that fee actually covers the cost of delivering the work is a different question, and gross margin is the calculation that answers it.
What gross margin measures
Gross margin compares revenue to the direct cost of delivering the work that earned it—labor at real cost rates, plus any direct expenses—leaving out overhead that is not tied to a specific project or client, such as rent or general admin. It answers whether the delivery itself was worth doing financially, before overhead is factored in at all.
The formula
Gross profit = Revenue − Direct delivery cost
Gross margin (%) = Gross profit divided by Revenue, multiplied by 100
Revenue is what the client paid for the work in that period. Direct delivery cost is labor costed at true cost rates (not billing rates) plus any direct expenses—software licences, contractor fees— directly attributable to delivering that work.
A project example
A fixed-fee project is billed at $12,000. Delivering it took 80 hours of labor at a blended true cost rate of $60/hour ($4,800), plus $300 in direct software and stock asset costs. Direct delivery cost = $4,800 + $300 = $5,100. Gross profit = $12,000 − $5,100 = $6,900. Gross margin = $6,900 divided by $12,000, multiplied by 100 = 57.5%.
A retainer example
A monthly retainer is billed at $4,000. That month, the team logged 50 hours against it at a blended true cost rate of $55/hour ($2,750), with no separate direct expenses. Gross profit = $4,000 − $2,750 = $1,250. Gross margin = $1,250 divided by $4,000, multiplied by 100 = 31.25%.
The lower margin here compared to the project example is not automatically a problem—it may simply reflect how that retainer was priced. What matters is tracking it consistently so a declining trend is visible before it becomes a loss. See how to track retainer hours for the consumption side of this.
Gross margin versus net margin
Gross margin excludes overhead not tied to a specific project— rent, general admin salaries, software used agency-wide rather than per client. Net margin subtracts all of that overhead too, giving the agency’s actual bottom-line profitability. A healthy gross margin does not guarantee a healthy net margin if overhead is high relative to revenue; the two answer different questions and both are worth tracking.
Common mistakes
Using billing rate instead of true cost rate
This is the single most common error and it consistently overstates gross margin, sometimes significantly.
Leaving out direct expenses
Software licences, stock assets or contractor fees tied directly to a project are real delivery costs, not overhead to ignore.
Confusing gross margin with net margin
A healthy gross margin on paper can still coexist with a struggling agency if overhead is not separately controlled.
Calculating it once instead of tracking it over time
A single snapshot is less useful than watching the trend per client or project type over several periods.
Frequently asked questions
What is a good gross margin for an agency?
There is no single correct figure—it varies by agency model, pricing and service type. Track your own trend consistently rather than chasing a borrowed benchmark.
Why use cost rate instead of billing rate?
Billing rate is what the client pays for an hour; cost rate is what that hour actually costs the agency. Margin measured against billing rate overstates how healthy the work actually is.
How does this connect to profitability software?
See profitability software for tools that automate this calculation from tracked time and cost rates.
Conclusion
Gross margin is revenue minus direct delivery cost, divided by revenue. Use true cost rates, include direct expenses, and track it consistently over time rather than as a one-off calculation.
Find My Software Stack