Bookkeeping Exercises
Menu

Accounting concepts

Gross margin vs markup: the difference with examples

Gross margin divides gross profit by price; markup divides it by cost. See both formulas, a conversion table and the pricing error from mixing them up.

By TNas · · 7 min read

Gross margin and markup both measure the profit on a sale, but they divide it by different numbers. Gross margin is gross profit divided by the selling price, and markup is the same gross profit divided by the cost. A product bought for $50 and sold for $75 has a $25 gross profit, which is a 50% markup but only a 33.3% gross margin.

The difference sounds academic until someone prices a product list with the wrong one. Then it shows up on the P&L as a gross margin several points lower than planned. The examples below use fictional products and figures.

The two formulas side by side

Both start from the same dollar figure: selling price minus cost. In bookkeeping terms, that is the sale's contribution to gross profit, and cost means the item's cost of goods sold.

Gross margin Markup
Formula (Price − Cost) ÷ Price (Price − Cost) ÷ Cost
Answers What share of each sales dollar is gross profit? How much was added on top of cost?
Used for Reading the P&L, comparing periods Setting prices from supplier cost
Can it exceed 100%? No Yes

OpenStax's Principles of Marketing defines markup as the additional amount added to the price retailers purchase goods for, and calculates it on cost. Its example is a pair of shoes bought for $50 and sold for $75, a 50% markup. The same chapter calls doubling the wholesale price "keystone" pricing, a 100% markup.

On the accounting side, OpenStax's Principles of Accounting computes the gross profit margin ratio as net sales minus cost of goods sold, divided by net sales. That is the margin formula applied to a whole period instead of one item.

A worked example with one product

A fictional shop, Fern Street Supply, buys a ceramic planter for $30 and sells it for $50.

  • Gross profit: $50 − $30 = $20
  • Markup: $20 ÷ $30 = 66.7%
  • Gross margin: $20 ÷ $50 = 40.0%

Both percentages describe the same $20. In the books, a perpetual inventory system records the sale and its cost as two entries:

Journal entries
AccountDebitCredit
Sell one planter for $50 cash
Cash$50.00
Sales Revenue$50.00
Move the planter's $30 cost out of inventory
Cost of Goods Sold$30.00
Inventory$30.00

The income statement only ever shows revenue and cost of goods sold, so it reports margin, not markup. A gross margin of 40% on the P&L is the 66.7% markup seen from the other side. The perpetual inventory lesson covers the cost entry in detail.

How to convert between margin and markup

Because both percentages come from the same price and cost, one converts to the other with a single step:

  • Margin from markup: margin = markup ÷ (1 + markup)
  • Markup from margin: markup = margin ÷ (1 − margin)

Check with the planter: 0.667 ÷ 1.667 = 0.40, and 0.40 ÷ 0.60 = 0.667.

Markup on cost Gross margin on price
25% 20.0%
33.3% 25.0%
50% 33.3%
66.7% 40.0%
100% 50.0%
150% 60.0%
200% 66.7%
300% 75.0%

Two patterns stand out. Markup is always the larger number for the same sale: a 100% markup, for example, is only a 50% margin. And as markup rises, margin climbs more and more slowly toward 100% without reaching it: even a 300% markup is only a 75% margin.

The pricing error from confusing them

The most expensive mistake is adding a target margin to cost as if it were a markup. Suppose Fern Street wants a 40% gross margin on a lantern that costs $30.

Wrong: $30 + 40% of $30 = $42. Gross profit is $12, and the margin is $12 ÷ $42 = 28.6%.

Right: divide cost by one minus the target margin. $30 ÷ (1 − 0.40) = $50. Gross profit is $20, and the margin is $20 ÷ $50 = 40%.

Over 1,000 lanterns, the wrong method produces $12,000 of gross profit instead of $20,000. That $8,000 gap never appears as an error in the books. Every entry is correct; the price was simply set too low, and the P&L shows a margin of 28.6% where the owner expected 40%.

Method Price Gross profit per unit Margin Gross profit, 1,000 units
40% added to cost $42.00 $12.00 28.6% $12,000
Price for a 40% margin $50.00 $20.00 40.0% $20,000

The reverse confusion happens too. A supplier offering "a 50% margin" at a suggested retail price may mean 50% markup, which is only a 33.3% margin. When a percentage matters to a decision, ask which base it uses.

Setting prices for a target margin, step by step

Pricing from a target margin takes four steps. Suppose Fern Street orders 200 lanterns. The supplier's invoice is $5,600 for the goods plus $400 shipping, all on 30-day terms.

  1. Find the full cost per unit. Shipping to bring goods in (freight-in) is part of the inventory cost, so the cost is $6,000 ÷ 200 = $30 per lantern.
  2. Choose the target margin. Fern Street wants 40%.
  3. Divide cost by one minus the margin. $30 ÷ 0.60 = $50.
  4. Check the result. ($50 − $30) ÷ $50 = 40%.

The purchase itself goes to inventory, not to an expense, because nothing has been sold yet:

Journal entry
AccountDebitCredit
Receive 200 lanterns on account, including freight
Inventory$6,000.00
Accounts Payable$6,000.00

Each lantern's $30 moves to cost of goods sold only when it sells. At the end of the month, compare the margin on the P&L with the 40% target. A shortfall usually points to causes such as discounts, damaged or missing stock, or a supplier price rise that hasn't reached the price list yet. The lesson on recording supplier bills covers the payable side.

Discounts hit margin harder than they seem

A discount comes straight off the price while the cost stays the same, so the margin falls faster than the discount percentage suggests. Take the $50 planter that costs $30:

Discount Price Gross profit Gross margin
None $50.00 $20.00 40.0%
10% $45.00 $15.00 33.3%
20% $40.00 $10.00 25.0%
25% $37.50 $7.50 20.0%

A 20% discount halves the gross profit on each unit. To earn the same total gross profit at 20% off, the shop would need to sell twice as many planters. If discounts are recorded in a sales discounts contra account, net sales on the P&L already reflect them, so the reported margin will show the effect. The lesson on credit notes, returns and discounts shows those entries.

Blended margin across products

A business with several products has one overall gross margin on its P&L, and it is not the average of the product margins. It is total gross profit divided by total net sales, so products with more sales count for more.

Product Net sales Gross profit Margin
Planters $10,000 $5,000 50.0%
Potting soil $30,000 $6,000 20.0%
Total $40,000 $11,000 27.5%

A simple average of 50% and 20% would suggest 35%, but the real blended margin is 27.5%. This is also why the overall margin can fall even when no price changed: if customers buy relatively more low-margin products, the mix shifts and the blended margin drops. The sibling post on reading a profit and loss statement shows how to spot a falling margin when comparing periods.

Which number to use when

Situation Use
Setting a price from a supplier invoice Markup, or price = cost ÷ (1 − target margin)
Reading the P&L or comparing periods Gross margin
Comparing your results with a lender's or buyer's expectations Gross margin, unless they say otherwise
Checking a supplier's "suggested margin" Ask which base it uses, then convert

Whichever you use, the cost side must be right. If inventory counts, freight-in or returns aren't recorded properly, both percentages are wrong. The net sales and gross profit lesson and the inventory and COGS examples show how cost of goods sold is built up, and the sibling post on ecommerce bookkeeping covers the marketplace fees and returns that eat into online margins.

Frequently asked questions

Is gross margin the same as gross profit?

They are closely related. Gross profit is the dollar amount (net sales minus cost of goods sold). Gross margin is often used for the same dollar figure, and "gross margin percentage" is that amount divided by net sales. When someone quotes a percentage, they mean the ratio.

Can markup be higher than 100%?

Yes. A product bought for $10 and sold for $30 has a 200% markup. Gross margin, by contrast, can't reach 100%, because that would need a cost of zero.

Does gross margin include rent and wages?

No. Gross margin only subtracts the cost of the goods sold. Rent, wages, advertising and other operating expenses come after it on the income statement and are reflected in operating income and net income.

What to practice next

Margins are only as accurate as the cost of goods sold behind them. Work through the inventory and COGS exercises to practice recording sales and their cost, then the income statement practice set to calculate gross profit from a full set of balances.

Sources

  1. Principles of Marketing, 18.3 Retailing Strategy Decisions — OpenStax
  2. Principles of Accounting, Volume 1, 6.6 Describe and Prepare Multi-Step and Simple Income Statements for Merchandising Companies — OpenStax

Educational content for US small-business bookkeeping, not tax, legal or accounting advice. Example businesses and figures are fictional. See our editorial policy for how we write and correct content.