Gross profit margin is the percentage of revenue a business keeps after paying the direct cost of the goods it sold. It is calculated as revenue minus cost of goods sold, divided by revenue. It shows whether products are priced high enough above their cost to fund everything else the business has to pay for.
Reading the ratio
The formula is short: gross profit margin = (revenue − cost of goods sold) ÷ revenue × 100. A 40 percent gross margin means that for every 100 of sales, 60 went on the products themselves and 40 is left to cover rent, salaries, marketing and profit.
Because the result is a share of the selling price, it cannot reach 100 percent unless the goods cost nothing. That separates it from markup, which measures the same gap as a share of cost and can run far above 100 percent. The Markup entry explains how to convert between the two; here it is enough to remember that margin always uses price as the base.
Gross profit margin can be measured for a single product, a category, a channel or the whole business. The calculation is the same at every level; only the revenue and costs included change. Measuring it at several levels is what turns one percentage into a map of where money is made.
What belongs in cost of goods sold
For a retailer, cost of goods sold usually includes the purchase price of stock, inbound freight and import duties. A manufacturer adds raw materials, direct labour and production overheads. Rent for the head office, advertising and general salaries are left out, since they belong to operating expenses.
Some items are judgement calls. Outbound shipping, payment fees and marketplace commissions are counted in cost of goods sold by some businesses and in operating expenses by others. Either choice can work, but it must stay the same from period to period and across products, or the margin will move for accounting reasons rather than commercial ones.
Category margins in a pet supplies store
Consider an assumed online pet supplies store. The numbers are illustrative only. A large bag of dog food sells for 60 and costs the store 48, so its gross margin is 12 ÷ 60, or 20 percent. A rubber chew toy sells for 12 and costs 4.20, giving a gross margin of 7.80 ÷ 12, or 65 percent.
Both products are worth stocking, but for different reasons. Dog food brings regular, predictable orders and is easy for shoppers to compare across shops, which keeps its margin thin. Toys are bought less often and compared less closely, which leaves room for a higher margin.
Product mix and the blended margin
A store’s overall gross margin is a weighted average of its categories. If dog food makes up 70 percent of the pet store’s revenue and toys 30 percent, the blended margin is 0.7 × 20 + 0.3 × 65, or 33.5 percent. Shift the mix to 60 percent food and 40 percent toys, and the blended margin rises to 38 percent without a single price changing.
This is why a falling gross margin is not always a pricing problem. It can mean customers are buying more of the low-margin lines. Check the mix before deciding that prices need to rise.
How discounts hit low-margin lines hardest
The same discount does very different damage depending on the starting margin. Apply 10 percent off to both pet store products. The chew toy drops to 10.80 and keeps a margin of about 61 percent. The dog food drops to 54 and its margin falls to about 11 percent, with gross profit per bag halved from 12 to 6.
A storewide percentage discount therefore costs far more on staple items than the headline suggests. Many sellers exclude thin-margin lines from broad promotions, or give a smaller discount on them, for exactly this reason.
Setting prices from a target margin
To reach a chosen gross margin, divide cost by one minus the target. If a bag of cat litter costs the store 9 and the target margin is 35 percent, the price is 9 ÷ 0.65, or about 13.85. A common mistake is to add 35 percent to cost instead, which gives 12.15 and a margin of only about 26 percent.
The target price is a starting point, not the answer. Before publishing it, check where it sits against competitors for the same item. A price index that compares each product with the market shows whether the target margin leaves the price competitive or far above what shoppers see elsewhere.
Pitfalls when using gross margin
- Treating gross profit as the money the business keeps, when operating costs still have to be paid
- Comparing margins with businesses that put shipping or fees in a different cost line
- Using list prices instead of the prices actually paid after coupons and returns
- Valuing stock at an old purchase cost after a supplier has raised prices
Tracking it over time
Watch gross margin by product, by category and for the whole business, ideally each month. A sudden drop on one product often points to a supplier price rise or an unplanned discount. A slow decline across a category often points to competitors lowering prices and the store following them.
Record the reason whenever a price or cost changes. When the margin moves later, the team can see whether it was a deliberate choice, a change in mix or pressure from the market.
Key takeaways
- Gross profit margin is revenue minus cost of goods sold, divided by revenue.
- It always uses the selling price as the base, unlike markup.
- The blended margin depends on product mix as much as on individual prices.
- Percentage discounts damage thin-margin products the most.
- Price from a target margin by dividing cost by one minus the target.
Frequently asked questions
What is the difference between gross profit and gross profit margin?
Gross profit is an amount: revenue minus cost of goods sold. Gross profit margin is that amount divided by revenue, expressed as a percentage, which makes it comparable across products and periods.
Does gross margin include shipping costs?
Inbound freight is normally included in cost of goods sold. Outbound shipping to customers is treated differently by different businesses. Choose one method and apply it consistently.
Why can gross margin fall when prices did not change?
Supplier costs may have risen, more discounts may have been used, or sales may have shifted toward lower-margin products. Check each of these before changing prices.
Related terms
In BlackAha, Pricing Reports helps you analyze price index, position and price changes by category, brand and store.