If you can’t calculate revenue from cost and margin correctly, you’re either underpricing engagements or leaving profit on the table without realizing it. Firms that get this formula wrong by even a few percentage points can see margin erosion that compounds across a full project portfolio. Here’s how the calculation actually works, and where most people trip up.
What Margin Means in This Calculation
Margin is the percentage of revenue that represents profit after subtracting cost. It’s different from markup, which is the percentage added on top of cost to arrive at a price. Confusing the two is the single most common reason firms miscalculate revenue.
Margin vs. Markup
Margin looks at profit as a share of revenue. Markup looks at profit as a share of cost. A project with $80 in cost and $100 in revenue has a 20% margin, but a 25% markup. If you plug a markup percentage into a margin formula, you’ll consistently underprice the work.
The Formula for Calculating Revenue from Cost and Margin
Once you know your cost and your target margin, revenue follows a fixed relationship:
Revenue = Cost ÷ (1 − Margin)
Here’s what each part means:
- Cost is the fully loaded expense of delivering the work, including labor, expenses, and any overhead you allocate to the engagement.
- Margin is your target profit percentage, expressed as a decimal (a 30% margin is 0.30).
- Revenue is the number your billing has to hit to achieve that margin on that cost.
Example: If a project costs $70,000 to deliver and your target margin is 30%, revenue = $70,000 ÷ (1 − 0.30) = $70,000 ÷ 0.70 = $100,000.
When You’re Working with Blended Rates
Professional services firms rarely deal with a single flat cost. Consultants at different seniority levels carry different pay rates, and a project usually blends several of them. In that case, you calculate a blended cost first (total labor cost across all roles divided by total hours), then run that blended cost through the same formula. Skipping this step and using an average bill rate instead of an average cost rate is a common way margin targets quietly slip.
Step-by-Step Process
- Total your project cost. Add labor cost (hours times pay rate for every role on the engagement), plus any direct expenses like travel or subcontractor fees.
- Confirm your target margin. This should be a deliberate decision tied to firm-level profitability goals, not a leftover from the last similar project.
- Apply the formula. Divide total cost by (1 minus the margin, expressed as a decimal).
- Sanity-check against market rates. If the resulting revenue puts your effective bill rate well above or below what clients in your industry typically pay, revisit either your cost assumptions or your margin target before finalizing the number.
- Build in a buffer for scope creep. Projects rarely deliver exactly on estimated hours, so many firms add a small contingency to cost before running the calculation, especially on fixed-fee work.
Where This Calculation Goes Wrong
Using markup instead of margin. As noted above, this is the most frequent error, and it always results in underpricing.
Estimating cost before actuals are in. Early-stage estimates often miss ramp-up time, revisions, or project management overhead that gets absorbed into cost later. If your cost estimate is light, your revenue target will be light too, and the gap only shows up at project close, when it’s too late to adjust.
Ignoring non-labor cost. Software licenses, travel, or subcontracted work all belong in the cost side of the equation. Leaving them out inflates the apparent margin on paper while the real margin comes in lower.
Treating margin as static across the project lifecycle. A quoted margin at the sales stage should carry through resourcing decisions and into delivery. When staffing decisions get made independently of the original cost assumptions, actual margin drifts away from the quoted number without anyone noticing until reporting catches up.
Getting It Right at Scale
The math itself is simple. The hard part is keeping cost, margin targets, and actual billing connected across every project, every rate card, and every stage from quote to invoice, especially as your firm grows and rate structures get more complex. Firms that manage this well tend to calculate revenue targets once, at the point of quoting, and then track actuals against that target continuously rather than reconstructing the numbers at month end.
Want to see how growing professional services firms keep cost, margin, and revenue aligned from the first quoted hour to the final invoice? Book a personalized demo to find out.