You've just closed your strongest revenue year, and the bank balance doesn't feel any stronger. Your bookkeeper sends the profit and loss statement, sales are up, and you're still moving money between accounts to cover payroll in the second week of the month. Somewhere between the invoices you sent and the cash you kept, profit leaked out, and the top line isn't telling you where.
The margin analysis formula is the tool that answers that question. It's simple arithmetic, but it only helps if you feed it the right revenue figure, the right cost figure, and the right slice of the business. Get those three inputs straight and you can see which jobs pay you, which jobs keep your crews busy for almost nothing, and whether your quoting habit is setting prices too low.
Table of Contents
- Margin Formulas at a Glance
- How to Calculate Any Margin Step by Step
- Margin Versus Markup and Why the Mix-Up Costs Money
- Why Revenue Growth Can Hide Shrinking Margins
- Applying the Formula by Job, Client and Service Line
- Benchmarks to Judge Your Margins
- Set a Margin Target Before Your Next Pricing Decision
Margin Formulas at a Glance
| Margin | Formula | What It Shows | Example on $10M Revenue |
|---|---|---|---|
| Gross margin | (Net Revenue − Cost of Sales) ÷ Net Revenue × 100 | Pricing and direct job cost control | 25% (gross profit $2,500,000) |
| Operating margin | Income from Operations ÷ Net Revenue × 100 | Profit remaining after overhead | 7% (operating income $700,000) |
| Net margin | Net Profit ÷ Net Revenue × 100 | Profit after interest and taxes | 4.5% (net profit $450,000) |
One rule ties all three rows together: every margin is a profit figure divided by net revenue, times 100. Swap the profit line and you get a different margin, but the structure never changes. The SEC's Beginner's Guide to Financial Statements explains that subtracting costs of sales from net revenues produces gross profit, sometimes called gross margin, and notes that operating and other expenses haven't been deducted at that point. The same guide defines operating margin as income from operations divided by net revenues, which you multiply by 100 to read as a percentage.
Walking one revenue figure down the statement
Say a contractor books $10,000,000 of revenue and spends $7,500,000 on direct job costs: labor on site, materials, subcontractors, equipment rented for those jobs. Gross profit is $2,500,000, so gross margin is 25%. Now subtract $1,800,000 of operating expenses (office salaries, rent, insurance, software, the estimating team) and operating income is $700,000, an operating margin of 7%.
Carry that example one line further with assumed figures for illustration: $100,000 of interest and $150,000 of income taxes. Net profit lands at $450,000, and net margin is 4.5%. Same revenue, three very different answers, because each one stops at a different cost line.
Choosing the measure that matches your decision
Use gross margin to judge pricing and direct-cost execution, because nothing in it is affected by how big your office is. Use operating margin to judge whether the business earns enough after overhead to be worth running. Use net margin to judge what the owner keeps after lenders and tax authorities are paid.
The distinction matters most in construction, distribution and professional services, where overhead sits in a different place than job costs. Run the same formula by job, customer, service line or location and you'll often find a handful of engagements carrying the company average while other work absorbs crews, trucks and partner hours without contributing much.
How to Calculate Any Margin Step by Step
The arithmetic takes a minute. Choosing the inputs takes the discipline, and that's where most margin numbers go wrong.
The six steps
- Pull net revenue for the period. Start from gross invoiced sales, then subtract returns, credits, discounts and allowances. Credits and early-payment discounts come off the top, and the net figure that remains is the denominator you use.
- Pull the matching cost line. For gross margin, take cost of sales only: the direct labor, materials and subcontract costs of the work you sold in that same period. For operating margin, add every operating expense on top of cost of sales.
- Subtract cost from revenue. With net revenue of $480,000 and cost of sales of $336,000, gross profit is $144,000. This dollar figure is what pays your overhead, so write it down next to the percentage.
- Divide profit by net revenue. $144,000 ÷ $480,000 = 0.30. Keep the decimal for now.
- Multiply by 100. 0.30 × 100 = 30% gross margin. Skipping this step is why owners sometimes report a margin of "0.3" and confuse everyone in the room.
- Compare it with something. Last quarter's figure, the margin you bid on that work, and your target for that job type. A single percentage with nothing beside it can't tell you whether you're improving.
Watch the denominator: discounts and credits come out of revenue before you divide, not after. Dividing by gross invoiced sales flatters the margin, because you're claiming profit against money you never collected.
The slips that distort the answer
- Period mismatch: pairing one month of job costs with a quarter of revenue. Lock both figures to the same start and end dates before you divide.
- Missing indirect job labor: the foreman who splits time across three sites, warranty callbacks, and the shop hours spent prepping material. If it belongs to delivering the work, it belongs in cost of sales, not overhead.
- Costs parked in the wrong bucket: putting a project manager's salary in operating expenses inflates gross margin and makes your pricing look healthier than it is.
- Cash-basis timing: a supplier invoice booked in the month you paid it rather than the month the material went into the job. Margins swing wildly for reasons that have nothing to do with performance.
A clean calculation leaves you with one revenue figure, one cost figure, one percentage, and a note naming the period and the slice of the business it covers. Save it in that format every month and the trend becomes readable without rebuilding the workbook.
Margin Versus Markup and Why the Mix-Up Costs Money
Take a product that costs $60 and sells for $100. Profit is $40. Margin divides that $40 by the $100 price, giving 40%. Markup divides the same $40 by the $60 cost, giving 66.7%. Same dollars, two denominators, two very different numbers.
| Cost | Selling Price | Profit | Margin | Markup |
|---|---|---|---|---|
| $60 | $100 | $40 | 40% | 66.7% |
| $75 | $100 | $25 | 25% | 33.3% |
| $100 | $120 | $20 | 16.7% | 20% |
The third row is where money disappears. An estimator told to "add 20%" takes a $100 cost, quotes $120, and believes the job carries a 20% margin. It carries 16.7%. On a job with heavy direct costs, that gap is the difference between covering overhead and funding the customer's project.
Why the two numbers drift apart inside a company
Sales and estimating teams talk in markup because they start from a cost sheet and add a percentage. Finance reports in margin because it starts from revenue. Nobody reconciles the two, so the quoting target and the reported result never describe the same thing, and the owner reads a declining margin as a cost problem when it's a costing and pricing vocabulary problem.
The fix is a conversion you can do on a phone calculator: price = cost ÷ (1 − target margin). Check it against the first row: divide the $60 cost by one minus the 40% target and you land back at the $100 price. A 40% margin target on a $60 cost demands a $100 price, not $84.
Set prices from a margin target, then let markup be the shorthand your estimators use to reach it. Markup is a quoting convention. Margin is the decision measure.
Why Revenue Growth Can Hide Shrinking Margins
Revenue is the size of the pie. Margin is the slice you keep after paying for everything that went into it. A bigger pie can still leave you a smaller slice, and that's the situation most owners misread as a good year.
Profitability isn't automatic even among established firms. The Federal Reserve Banks' 2023 Small Business Credit Survey reported that the share of employer firms operating at a profit rose from 35% in 2021 to 45% in 2022, an improvement that still leaves a majority of those firms short of profit. Sales activity and profit are separate outcomes, and you need a measure for each.
Flat sales, one million dollars less profit
Run the arithmetic on a business doing $20 million of revenue. At a 30% gross margin, gross profit is $6 million. Let that margin slip to 25% and gross profit falls to $5 million, with sales unchanged. Nothing on the top line moved, and a million dollars of contribution vanished.
The usual causes are unglamorous:
- Labor inflation and overtime: wage increases and premium hours absorbed into a fixed-price contract signed months earlier.
- Material and equipment costs: quotes valid for 30 days on jobs that start next quarter. If you're pricing work now against uncertain supply, take a moment to compare electrical equipment lead times in ATEK Distribution's pricing and lead time outlook before you commit to a fixed number.
- Discounting and change-order leakage: small concessions at signing, plus extra scope your crew performs and nobody bills.
Margin analysis identifies where profit is being lost in pricing, overhead allocation, project costing or operational inefficiency, so you can fix the specific leak rather than pushing the sales team harder. Track gross and operating margin monthly and read the direction of travel, not one month's reading. Revenue rising while margin falls is a signal to investigate before you chase more of the same work.
Applying the Formula by Job, Client and Service Line
A blended margin averages your best work with your worst, and the average can look perfectly healthy while one job eats capacity for almost nothing. Say a contractor closes three jobs in a quarter:
| Job | Gross Margin |
|---|---|
| Job A | 30% |
| Job B | 20% |
| Job C | 40% |
| Total | 29% |
The blended figure is 29%, calculated from the combined gross profit of all three jobs against their combined revenue. It looks fine. Job B is not fine.
What Job B is actually doing
Job B brings in $300,000 at a 20% gross margin, nine points below the blended result, while consuming a large share of the quarter's crew hours. Job C earns twice that margin rate on every dollar it bills, from a smaller revenue base. Job C is subsidizing Job B, and the company total hides the transfer.
Rank the jobs by margin, then lay that ranking beside the hours each one absorbed. When your lowest-margin job is also your second-biggest consumer of labor, you've found the constraint on your year: you can't take more of the good work because the poor work is occupying the people.
A blended margin tells you how the company did. Only the row-level margins tell you what to stop selling.
What to measure for each client and each project
For client relationships, we analyze labor costs, utilization, realization rates, project delivery expenses, partner involvement and overhead allocation. Realization is the one owners miss: it compares what you billed against what your recorded hours were worth at standard rates, so heavy write-downs and unbilled scope show up as a number instead of a feeling. Our customer profitability analysis work exists because a client can be pleasant, prompt-paying and unprofitable at the same time.
On the project side, Project Profitability Analysis gives detailed visibility into project margins, labor productivity, estimating performance and cost overruns against the original bid. That's how you separate a pricing problem from an execution problem. A concrete contractor bidding sidewalk work for HOAs and municipalities, as Atlanta Concrete Solutions does, faces both at once: repeat municipal work priced on old unit rates, and field productivity that varies by site access and pour size.
Assign direct costs to each job, apply the formula row by row, rank the results, then review the bottom group for repricing, tighter scope or different staffing before you grow through it.
Benchmarks to Judge Your Margins
Published benchmarks give you context. Your own bid history should give you the verdict.
Turner & Townsend's Global Construction Market Intelligence 2025 reported that in 2025 the global average profit margin was 10.6% for smaller commercial construction projects and 8.4% for larger projects, based on projects with gross floor areas of 2,500 m² and 50,000 m² respectively. Scale runs margins down: bigger jobs carry more coordination, more risk transfer and more competition, so a thinner percentage on a large project can be entirely normal.
Direction of travel differs by sector too. In its 2025 fall semi-annual economic forecast, the Institute for Supply Management reported that 38% of manufacturing respondents experienced lower profit margins during the second and third quarters of 2025. A margin squeeze isn't always your estimating team's fault, which is exactly why you compare like with like: same sub-industry, same region, same contract type, same year.
A three-part check for every job
- Against the bid: what margin did you underwrite when you signed? A job landing well below its own bid margin points to cost overruns or change-order leakage, not to market conditions.
- Against your history: compare it with the same job type over the last twelve months. Two or three comparable jobs tell you more than any global average.
- Against the published range for that project size: useful as a sanity check on whether your bid assumptions were realistic in the first place.
Those construction figures cover construction only. A retailer, distributor or software firm should build its benchmark from its own bid and invoice history plus peer data, and if you're weighing what counts as healthy at the bottom line, our guide to what makes a good net profit margin walks through how to set that reference point.
Set a Margin Target Before Your Next Pricing Decision
A margin you calculate after the job is finished is a report card. A margin you set before you quote is a decision rule. Only the second one changes what you earn.
Start by choosing one primary measure for pricing, usually gross margin by job type, because it's the number your estimators can influence directly. Set a target for each type from your bid history and the benchmark range for that project size, then convert each target into a price with cost ÷ (1 − target margin). On a $60 cost with a 40% target, that's a $100 price, and your estimator now has a floor instead of a habit.
Review actual against target every month, by job or client, reading the trend rather than a single result. Then act on the outliers: reprice, narrow the scope, or change the staffing mix on work that sits below target before you accept more of it. Our pricing and cost analysis approach treats those three levers as the practical response to a low-margin row, because walking away from a whole service line is rarely the first move.
The target earns its keep beyond quoting. We evaluate every pricing, hiring and capital allocation decision against a specific margin target and a long-term value creation goal, so a new crew, a new truck or a new market has to clear the same bar your jobs do. Infrastructure work makes the test concrete: a contractor weighing Southern Tier Resources fiber builds against its current municipal mix should model the margin and the crew commitment before bidding, not after winning.
Standing rule: no quote leaves the building without a named margin target and the formula you'll use to measure the result.
Write your target down this week, next to the formula, for the one job type you quote most often. That single line turns margin analysis from a monthly autopsy into a pricing policy.
We work with founder-led construction, distribution and professional services businesses to find exactly where margin is won and lost by job, client and service line, then fix the pricing, cost and mix decisions behind it. A strategy session identifies where profit is leaking, where cash is trapped, which financial metrics deserve your attention, and the highest-return improvements available to you now. If your revenue is growing but your margins aren't, visit AmbitionCFO and let's put real numbers behind your next pricing decision.

