Gross margin expresses gross profit as a percentage of the sales revenue used in the calculation. Calculate it by dividing gross profit by revenue and multiplying by one hundred. Its denominator is revenue, which distinguishes it from markup, whose denominator is cost. The same transaction therefore usually has different margin and markup percentages. A useful margin figure states the period, currency basis and included direct costs, and it does not establish net earnings after every business expense. If revenue is zero, the ordinary percentage formula is undefined rather than a meaningful zero-percent result, so software should handle that case explicitly.
Gross margin and Markup
Markup divides the added amount by cost; margin divides gross profit by revenue.
Check the denominator before setting a price
Suppose a sale brings in 40 units of currency and its assigned direct cost is 25. Gross profit is 15, and gross margin is 15 divided by 40, or 37.5 percent. Dividing by 25 instead gives a 60 percent markup. Both percentages can be correct for that transaction, but labeling one as the other changes the pricing conclusion.
Totals need a weighted calculation
To calculate a combined gross margin, add the relevant gross profit amounts and divide by the corresponding total revenue. A simple average of individual percentages can be misleading when sales have different values. Keep cost classification and treatment of discounts or refunds consistent across the included transactions. Comparing a margin before payment fees with another after those fees needs an explicit explanation of the different scope.
A gross percentage has limits
A positive gross margin still needs to cover expenses outside the selected direct-cost definition. A high percentage on a small amount of sales may leave little money for overhead. The percentage also does not measure service quality or predict demand. Review the actual amounts, transaction mix and cost assumptions before treating a calculated margin as evidence that a reseller activity is commercially sustainable.
An illustrative example
An illustrative sale of USD 40 with USD 25 direct cost leaves USD 15 gross profit and a 37.5 percent gross margin. Calling that a 60 percent margin would use the cost denominator and confuse markup with margin. Any remaining overhead still needs to be deducted under the broader business calculation.
Practical actions
- Divide gross profit by the corresponding revenue when calculating margin.
- Use total profit divided by total revenue for a combined percentage.
- Handle zero revenue and disclose the direct costs included in the model.
