StoreTurnAI

Retail analytics guide

Retail gross margin: formula, example and the levers that actually move it

Margin dollars pay your bills; margin percent explains how efficiently sales produce them. Reading only one of the two is how good months get misdiagnosed.

Gross margin is the money left from a sale after the cost of the product itself. It comes before rent, payroll and everything else, which is why it is the first profitability measure worth managing at the category level. Two versions matter, and they answer different questions.

The two formulas

Gross profit dollars = net sales − cost of goods sold

Gross margin percent = gross profit dollars ÷ net sales

Net sales means gross sales less returns, discounts and allowances. Cost of goods sold means the cost of the product actually sold in the period — not the cost of everything you purchased, and not inventory value.

Margin percent is not markup

Markup is expressed on cost; margin is expressed on the selling price. An item bought at $10 and sold at $15 carries a 50 percent markup and a 33.3 percent margin. Mixing these is one of the most common and most expensive arithmetic errors in independent retail pricing, because a target set as markup and reported as margin will always disappoint.

CostRetailMarkup on costMargin on retail
$10.00$15.0050%33.3%
$10.00$20.00100%50.0%
$10.00$16.6766.7%40.0%

What moves margin

Markdowns

A markdown reduces the selling price with no change in cost, so it lands entirely on margin. Because markdown dollars are usually the consequence of a buying decision made earlier, a rising markdown rate is best read as feedback on purchasing and pricing rather than as a standalone problem. Note also the trade: refusing a markdown protects reported margin percent while depressing inventory turnover and holding cash in unsold goods.

Mix

Total margin percent is the weighted average of your categories. If a lower-margin category grows faster than a higher-margin one, your blended margin falls even though no individual price or cost changed. This is why an unexplained margin drift should send you to a category-level view before you touch pricing.

CategoryNet salesMargin %Gross profit
Accessories$40,00052%$20,800
Core goods$60,00038%$22,800
Blended$100,00043.6%$43,600

In this illustrative mix, shifting $10,000 of sales from accessories to core goods lowers blended margin by roughly 1.4 points with no pricing change at all.

Vendor cost and freight

Cost increases erode margin silently unless retails are reviewed. Landed cost — including inbound freight, duties and any handling — is the cost that belongs in the calculation. Retailers who omit freight consistently overstate margin on heavy or imported goods.

Shrink and returns

Product that is lost, damaged or stolen still carries its cost. Shrink therefore shows up as margin pressure even when pricing is intact, which is why a margin decline with stable prices, stable costs and stable mix should trigger a count rather than a price change.

Common mistakes

  • Using purchases instead of cost of goods sold, which makes margin swing with receipt timing.
  • Comparing margin percent across categories as if they should match.
  • Reporting markup as margin.
  • Excluding freight and other landed costs.
  • Judging a month on percent alone, or on dollars alone.
  • Setting a single company-wide margin target and pricing every category to it.

Read margin with sales and inventory

Three numbers together tell you what one cannot: gross profit dollars, net sales, and inventory value at cost. Rising dollars with flat inventory is healthy growth. Rising percent with falling dollars usually means you stopped clearing goods. Rising dollars with sharply rising inventory means you funded growth with cash that has not come back yet. The framework for that weekly reading is in the retail KPI guide.

Practical actions

  1. Rebuild margin by category for the last three months using net sales and landed cost of goods sold; find the categories where dollars and sales moved in opposite directions.
  2. Review retails on your top gross-profit SKUs first — small changes there move more dollars than broad repricing.
  3. Set markdown timing rules by category so clearance is a scheduled decision, not a year-end event.
  4. Re-check retails whenever landed cost changes, especially where freight is significant.
  5. Where margin fell without price, cost or mix explanations, schedule a count in that department.
  6. Feed the results into your next buy — the margin you will earn in three months is being decided by today's purchase orders and open-to-buy plan.

The StoreTurnAI perspective

We treat margin as a decision input rather than a grade. The useful output is not "margin is 42.1 percent" — it is "these three categories lost gross profit dollars while sales grew, and here is the pricing, markdown or buying step that addresses each." Analysis should end where action begins.

What to do next: recompute margin by category with landed costs, then look at the same categories' turnover. See how StoreTurnAI links margin, pricing and buying in the feature overview, review the process in how it works, or check pricing.

See these numbers with your own data

The StoreTurnAI Playground is a self-guided walkthrough with a sample retail dataset — no signup, appointment, or sales call. When you are ready to load your own exports, start a free trial.