The quick answer
Markup and gross margin use different denominators. Markup compares gross profit with cost. Gross margin compares gross profit with revenue, or selling price for the item being calculated. Intuit’s invoice-profitability documentation gives these formulas.
For a fictional part with an $80 cost and $120 selling price, the $40 difference gives a 50% markup and 33.33% gross margin. Calling both “50% profit” would hide an important difference.
This article teaches arithmetic for a clearly defined cost basis. It does not recommend a selling price, target margin or accounting treatment for an HVAC business.
Write down the cost before choosing a percentage
For the examples below, “cost” means the specified amount assigned to the example item. State what your real calculation includes. A supplier’s part price, the delivered part cost and the total cost assigned to a job may be different amounts.
Do not compare a parts-only calculation with a job calculation that includes labor and other direct costs and assume the percentages measure the same thing. Use consistent inputs and have your accountant help define the categories for business reporting.
The SEC’s financial-statement guide distinguishes revenue, cost of sales and gross profit, followed by other expenses in arriving at net income. A markup calculation alone cannot show what remains after all business expenses.
Calculate markup and gross margin
Use these formulas when selling price and cost are positive:
- Gross profit amount = selling price − cost
- Markup % = (selling price − cost) ÷ cost × 100
- Gross margin % = (selling price − cost) ÷ selling price × 100
For the fictional $80 item sold at $120:
| Calculation | Arithmetic | Result |
|---|---|---|
| Gross profit amount | $120 − $80 | $40 |
| Markup | $40 ÷ $80 × 100 | 50% |
| Gross margin | $40 ÷ $120 × 100 | 33.33% |
The dollar difference is the same in both percentages. Changing the denominator changes the percentage. If cost is zero, the markup formula is undefined; if selling price is zero, the margin formula is undefined. Do not replace either result with a meaningful-looking percentage.
See why the same percentage gives different prices
These are invented comparisons using the same $80 cost, with percentages rounded to two decimal places:
| Markup applied to cost | Selling price | Gross margin |
|---|---|---|
| 25% | $100 | 20% |
| 50% | $120 | 33.33% |
| 100% | $160 | 50% |
Adding 40% to $80 gives $112. Its gross margin is $32 ÷ $112 = 28.57%, not 40%. This is a calculation error worth catching before applying a pricing formula across a parts list.
A discount also changes the result. If the $120 example price becomes $108 while cost stays $80, gross profit becomes $28 and gross margin becomes approximately 25.93%. Record the actual selling price when reviewing the completed job.
Work backward from an illustrative target
To solve for a selling price at a chosen gross margin:
Selling price = cost ÷ (1 − target margin as a decimal)
At a purely illustrative 40% target and $80 cost, the calculation is $80 ÷ 0.60 = $133.333…. Rounding the selling price to $133.33 produces a margin of approximately 40%; it is not mathematically exact after cent rounding.
A 40% example is not an industry benchmark. Choosing a real target requires the business’s own costs, capacity and financial judgment. A gross-margin target also does not guarantee that the business covers its overhead or earns a net profit.
Keep pricing calculations separate from field findings
Retain the cost basis and calculation assumptions with your internal pricing records. Customer documents should explain the proposed or billed scope clearly, while the service report records the equipment findings.
See estimate vs. invoice vs. service report for those document roles. For another input that is easy to misread, review working hours vs. billable hours. Neither a margin percentage nor a count of billed hours tells the whole financial story on its own.
Scope of this guide
Educational arithmetic with fictional costs; not a pricing benchmark or financial recommendation.
Sources & editorial notes
Sources checked October 9, 2026. Examples and document layouts are original CoolOps editorial material.
- Intuit: Invoice profitability formulas
Accounting software publisher distinguishes markup as profit divided by cost and margin as profit divided by revenue. No software endorsement or target margin is implied.
- SEC: Beginners’ guide to financial statements
Distinguishes revenue, cost of sales, gross profit and later expenses. This article uses original fictional arithmetic, not financial forecasts.
These guides are published by the team behind CoolOps. No independent technical review is claimed. How we write and correct our guides.