Practical trade business guide

Markup vs. Margin for Contractors: Formulas and Examples

Understand the difference between markup and gross margin before building prices or spreadsheet formulas.

By Goopuh

How this guide was prepared

Goopuh uses research and AI-assisted tools to organize this guide around a specific reader task. AI assistance is not field experience. We label calculations as examples, link primary or authoritative sources where they are used, welcome corrections, and flag decisions that require a qualified professional or current local requirements.

Person calculating an invoice with a handheld calculator

Quick answer

Markup is gross profit divided by cost. Gross margin is gross profit divided by selling price. They are not interchangeable: a 25% markup produces a 20% gross margin, while a 25% gross-margin target requires a 33.3% markup on cost.

Pricing & profit guideOpen the complete contractor pricing guide

The two formulas

Markup % = (selling price − cost) ÷ cost. Gross margin % = (selling price − cost) ÷ selling price. Both describe the space between cost and price, but each uses a different denominator.

Why the mix-up changes the price

Suppose estimated cost is $1,000. Adding 30 percent markup creates a $1,300 price and about 23.1 percent gross margin. Pricing for a 30 percent gross margin requires $1,000 ÷ 0.70, or about $1,428.57. Label every calculator field clearly.

Target gross margin Equivalent markup on cost Price on $1,000 cost
20% 25% $1,250.00
25% 33.3% $1,333.33
30% 42.9% $1,428.57
35% 53.8% $1,538.46

Use gross margin to evaluate jobs

Gross profit dollars help pay overhead and contribute to operating profit. Gross margin makes jobs of different sizes easier to compare, but it does not show whether the total volume of gross profit covers annual overhead. Track both dollars and percentage.

Do not confuse gross profit with net profit

Gross profit is selling price minus job costs as your company defines them. Net or operating profit comes after overhead and other business expenses. Use consistent cost classifications or comparisons become misleading.

Build the formula into your workflow

Calculate cost first, then price from the intended margin using selling price = cost ÷ (1 − margin). Compare the completed job with the estimate. Return to the complete contractor pricing guide for the full workflow.

Convert between markup and margin correctly

To convert markup to margin, divide markup by one plus markup. A 40 percent markup becomes 0.40 ÷ 1.40, or about 28.6 percent margin. To convert margin to markup, divide margin by one minus margin. A 35 percent margin becomes 0.35 ÷ 0.65, or about 53.8 percent markup.

Enter percentages as decimals in a spreadsheet and protect the formula cells. Add validation so a margin of 100 percent or more cannot be entered, because the pricing formula would divide by zero or a negative number. Clearly label whether job cost includes field labor, materials, equipment, and subcontractors or also contains allocated overhead.

Measure job mix, not only average margin

Two companies can report the same average gross margin and produce different results. A small repair with a strong percentage may contribute fewer gross profit dollars than a larger replacement with a lower percentage. A high-margin service that consumes excessive drive time may also produce weak gross profit per crew day.

Review margin percentage, gross profit dollars, productive hours, and capacity together. Group comparable jobs by type, crew, and service area. This shows which work deserves more schedule capacity and which work needs better scope, production, or price.

Recalculate after discounts and cost changes

A discount changes the price while cost often stays fixed, so the margin does not fall by the discount percentage—it falls more. Supplier increases and overtime change the cost side. Recalculate whenever either input changes rather than assuming the original markup still applies.

Use the approved price and estimated cost as the baseline, then compare both with the final invoice and actual job cost. If the final margin differs, document whether the cause was discounting, scope, production, purchasing, or collection.

Worked pricing walkthrough

A contractor estimates $3,600 of job cost and wants a 25 percent gross margin. Dividing $3,600 by 0.75 gives a $4,800 selling price. Gross profit is $1,200. Markup on cost is $1,200 ÷ $3,600, or 33.3 percent. If the estimator mistakenly adds a 25 percent markup, the price becomes $4,500 and margin falls to 20 percent.

Now suppose the customer receives a $300 discount while cost remains $3,600. The final price is $4,500, gross profit is $900, and margin is 20 percent. A 6.25 percent price discount reduced gross profit dollars by 25 percent. This is why discount approval should display the resulting margin and gross profit, not only the new price.

Spreadsheet controls that prevent silent errors

Give cost, target margin, selling price, gross profit, markup, and margin separate labeled fields. Lock calculated cells, restrict margin inputs to a sensible range, and display a warning when price is below cost or below the company’s approval threshold. Store percentages as decimals and format them for display.

Test the file with known examples before using it. A $100 cost at 20 percent margin must produce a $125 price; $25 gross profit; 25 percent markup; and 20 percent margin. If any output differs, correct the formula before importing real jobs.

Connect job margin to overhead and operating profit

Gross margin is not the final company result. Gross profit dollars from all completed jobs must cover general overhead and then leave operating profit. A 35 percent job margin can still be inadequate when annual volume is too low for the overhead structure, while a lower-margin job may be useful when it contributes strong gross profit dollars without displacing better work.

Build an annual plan using realistic revenue or capacity by job type. Compare projected gross profit dollars with annual overhead and the intended operating result. Then test whether the target margins and job mix can produce that amount. Do not derive the target from a competitor’s advertised markup without knowing its cost definitions.

Worked mixed-job example

Job A sells for $1,500 with $900 cost, producing $600 gross profit and 40 percent margin. Job B sells for $8,000 with $5,600 cost, producing $2,400 gross profit and 30 percent margin. Together, revenue is $9,500, cost is $6,500, and gross profit is $3,000. The combined margin is $3,000 ÷ $9,500, or about 31.6 percent—not the simple average of 40 and 30.

Weight results by dollars and review the capacity each job consumes. If Job B occupies many more crew days, gross profit per constrained day may change the scheduling decision.

Work Revenue Cost Gross profit Margin
Job A $1,500 $900 $600 40%
Job B $8,000 $5,600 $2,400 30%
Combined $9,500 $6,500 $3,000 31.6%

Troubleshoot an unexpected margin result

First confirm that price and cost use the same job and period. Then check credits, discounts, tax, returned material, owner labor, overtime, change orders, callbacks, and unposted purchases. Confirm that a formula did not treat 30 as 30 percent when the spreadsheet expected 0.30.

Correct the underlying record before changing a target. A calculation error, missing cost, and production problem require different fixes.

Set approval rules for low-margin work

Define a margin or gross-profit threshold that requires review, then list legitimate reasons an exception might be considered: strategic customer work, schedule utilization, bundled scope, reduced risk, or verified follow-on value. Require the reviewer to see cost, price, gross profit dollars, capacity, payment terms, and the written reason.

Do not judge an exception only by percentage. A project can clear the percentage threshold while producing too few gross profit dollars for its crew-days, cash exposure, warranty risk, or schedule disruption. Review the completed exception separately so the next decision uses evidence instead of the original assumption. Keep that review with the job record.

Free editable tool

Put this guide into practice

Use a practical Goopuh template to capture the details while they are fresh. Email updates are optional.

Download the free Job Costing & Profit Tracker
Browse all free resources

From template to operating system

Run the workflow in Goopuh Trade Profit OS

Goopuh is building the connected system for estimates, job records, actual costs, customer follow-up, and clearer profit decisions.

Explore Goopuh Trade Profit OS

Continue building the system

Frequently asked questions

Is a 30% markup the same as a 30% margin?

No. A 30% markup produces about a 23.1% gross margin. A 30% margin requires about a 42.9% markup on cost.

What formula prices from a target margin?

Divide estimated cost by one minus the target margin expressed as a decimal.

Does gross margin include overhead?

That depends on how costs are classified. Most job-costing systems show gross profit before general overhead, so the business needs enough gross profit dollars to cover overhead and still earn operating profit.

Pricing note: Examples explain the method; they are not guaranteed market rates. Use your actual labor, overhead, taxes, insurance, licensing requirements, risk, and local conditions before quoting work.