Gross Margin
vs Markup
Gross margin and markup use the same numbers—but they tell completely different stories.
Markup measures how much you add to product cost. Gross margin measures how much revenue remains after that cost. This lesson shows why confusing them leads to weak pricing decisions—and how Shopify merchants can use the right metric to protect profitability.
The entire lesson in 60 seconds.
Gross margin and markup use the same three numbers but measure profitability from completely different perspectives. Confusing them can lead to prices that look profitable while leaving far less revenue than expected.
Gross margin and markup are not the same
Gross margin measures profit as a percentage of selling price. Markup measures how much was added to product cost. The percentages are never interchangeable.
They answer different business questions
Markup helps explain how a price was built from cost. Gross margin reveals how much of every sales dollar remains after paying for the product.
A 100% markup does not mean a 100% margin
A product that costs $50 and sells for $100 has a 100% markup but only a 50% gross margin. The difference becomes critical when setting prices and profit targets.
Markup alone can create pricing mistakes
Applying the same markup to every product ignores discounts, fees, returns and different cost structures. A familiar markup can still produce an inadequate margin.
Gross margin is the better profitability metric
Shopify merchants should monitor gross margin by product, order and period. It shows which sales actually strengthen the business and which only increase revenue.
Markup tells you how much you added to cost. Gross margin tells you how much of the selling price remains after that cost.
The same percentage can mean two very different prices.
Gross margin and markup can both describe the relationship between cost and price, but they use different starting points. Applying a 60% markup does not create a 60% gross margin — and that misunderstanding can leave a Shopify product priced far below its intended profitability target.
Which price actually delivers a 60% margin?
A 60% margin requires a 150% markup.
With the same $40 product cost, a 60% markup produces a $64 selling price and a 37.5% gross margin. To retain 60% of the selling price as gross profit, the product must sell for $100.
Equal percentages do not mean equal profitability.
Markup starts with cost; gross margin starts with revenue. If your target is to retain 60% of the selling price after COGS, adding 60% to cost will not get you there. The correct pricing decision begins with the gross margin the business needs to protect.
Gross margin and markup measure the same product from opposite directions.
Both calculations use selling price, product cost and gross profit. The difference is the number used as the reference point: gross margin divides by revenue, while markup divides by cost.
The anatomy of a $100 Shopify product
Follow the same three values through both formulas to see why a 60% gross margin becomes a 150% markup.
Selling price
The customer pays $100 for the product.
Product cost
The product costs the merchant $40 to source.
Gross profit
Selling price minus product cost leaves $60.
Margin denominator
Gross margin compares profit with the $100 selling price.
Gross margin
$60 gross profit divided by $100 revenue equals 60%.
Markup denominator
Markup compares the same $60 profit with the $40 cost.
Markup
$60 gross profit divided by $40 product cost equals 150%.
The revenue generated when one unit is sold to the customer.
The direct cost used to calculate gross profit and markup.
Gross profit expressed as a percentage of the $100 selling price.
The same gross profit expressed as a percentage of the $40 cost.
The denominator changes the meaning.
Gross margin asks how much of the selling price remains after product cost. Markup asks how much profit was added relative to that cost. The dollar profit is identical, but the percentages are not.
Same numbers. Two different metrics.
Gross margin and markup both compare selling price with product cost, but they use different denominators. Understanding that difference prevents one of the most common pricing mistakes in ecommerce.
Gross Margin
Gross margin measures gross profit as a percentage of the selling price. It shows how much of every sales dollar remains after paying the direct cost of the product.
($100 selling price − $40 COGS) ÷ $100 selling price = 60%. The denominator is revenue, so the result expresses profit retained from each sale.
What gross margin tells you
Markup
Markup measures gross profit as a percentage of product cost. It shows how much the selling price exceeds what the merchant paid to acquire or produce the item.
($100 selling price − $40 COGS) ÷ $40 COGS = 150%. The denominator is cost, so the percentage can exceed 100% without meaning that the sale has a 150% margin.
What markup tells you
Why the Percentages Differ
Gross margin and markup begin with the same selling price, product cost and gross profit. Their percentages differ because each formula compares that profit with a different base.
Gross margin divides the $60 gross profit by $100 of revenue, producing 60%. Markup divides the same $60 profit by the $40 product cost, producing 150%.
Read the formulas correctly
The Pricing Conversion Trap
Using the desired gross margin as if it were a markup produces a price that is too low. The percentage may look familiar, but the store retains much less revenue than intended.
A 60% markup on a $40 cost adds $24 and creates a $64 price. That leaves a 37.5% gross margin—not the 60% margin the merchant may have intended.
Convert the target correctly
Four essential concepts explained. Three remain.
You can now distinguish the two metrics, identify their denominators and avoid the most common pricing conversion error. The next examples will apply this logic to real Shopify products and pricing decisions.
How MarginLab evaluates a Shopify pricing method.
Pricing analysis should do more than show how much was added to product cost. It should reveal the gross margin each price actually produces and identify where markup-based decisions leave less revenue than the merchant intended.
The figures below are a mathematically consistent educational example, not live data from the visitor’s store.
The pricing method is usable, but confusing markup with gross margin and applying one standard markup across the catalog can produce weaker margins than intended.
Active Shopify products included in the example.
Average increase applied above product cost.
Average share of selling price retained after COGS.
Three pricing assumptions require merchant attention.
Markup Mistaken for Margin
A 60% markup and a 60% gross margin are not equivalent. When the markup percentage is mistakenly used as the margin target, the resulting selling price is too low to retain the expected share of revenue.
Validate every markup-based price with the gross margin formula before publishing or discounting the product.
One Markup Applied to Every Product
A standard markup may simplify pricing, but it assumes every product has the same economics. Differences in discount exposure, return rates and selling costs mean the same markup does not create the same level of profitability.
Use markup as a starting point, then validate gross margin product by product against the economics and profit target of each item.
Gross Margin Target Not Converted Correctly
Reaching a target gross margin requires dividing cost by the share of revenue that may remain as cost. Adding the target percentage directly to COGS produces the wrong price because markup and margin use different denominators.
Convert the margin target with Price = Cost ÷ (1 − Target Margin). For a $40 cost and a 60% target margin, the correct price is $100.
Build prices with markup. Validate them with gross margin.
Markup can be useful for constructing a selling price from cost, but it should never be treated as proof of profitability. Validate every price through gross margin, because gross margin shows the share of revenue actually left after COGS.
This sample diagnosis shows how markup-based prices can be translated into actual gross margins. MarginLab evaluates gross margin using each merchant’s connected Shopify sales and product cost data, so apparently high markups are not mistaken for real profitability.
How to price Shopify products using gross margin.
Profitable pricing starts with accurate product cost, a deliberate gross margin target and the correct conversion from that target into a selling price. Markup can help build the price, but gross margin must validate the result.
A practical six-step action plan
Follow these six steps to turn product cost into a defensible selling price and protect the gross margin that your Shopify store actually earns.
Start with accurate product cost
Accurate Cost of Goods Sold is the foundation of every pricing decision. If product or variant costs are missing or outdated, both markup and gross margin calculations become misleading.
Choose a target gross margin
Decide how much of the selling price should remain after product cost. The target must leave enough room for payment fees, discounts, fulfillment, acquisition and operating expenses.
Convert the margin target into a selling price
Use the correct gross margin formula rather than adding the target percentage to cost. For a $40 product cost and a 60% target gross margin, the required selling price is $100.
Calculate the resulting markup
Once the price is set, calculate its markup to understand how far it sits above cost. A $100 price on a $40 cost creates a 150% markup—not 60%.
Stress-test discounts and cost changes
A price that reaches its margin target today may miss it after a discount or supplier increase. Test realistic scenarios before approving promotions or relying on the current price.
Monitor actual gross margin over time
Pricing is not a one-time calculation. Track gross margin by product and period because costs, discounts, refunds and sales mix can change the percentage your store actually retains.
Use markup to build a price. Use gross margin to judge it.
Start with accurate cost, define the margin you need, convert it into the correct selling price and then monitor the result on real Shopify sales. Markup explains the price above cost; gross margin shows whether that price supports the business.
How confusing markup with margin can underprice a Shopify product.
Markup and gross margin can look similar while producing very different prices. This educational example shows how treating a 60% markup as a 60% gross margin can leave a Shopify product significantly underpriced.
The figures below describe a mathematically consistent pricing example and do not represent guaranteed MarginLab results.
Correct pricing leaves $36 more gross profit on every full-price unit sold.
Gross margin increases from 37.5% to the intended 60%.
A $40 cost requires a $100 price to preserve a 60% gross margin.
Gross profit rises from $24 to $60 per unit in this pricing example.
How the correct selling price was calculated
The correction follows five simple checks that keep markup and gross margin separate.
Confirm product cost
Start with the complete and accurate product cost before building the selling price.
$40 costChoose target gross margin
Define the share of selling price that should remain after paying product cost.
60% targetCalculate the required price
Divide product cost by one minus the target gross margin: $40 ÷ (1 − 60%).
$100 priceVerify the resulting markup
Compare the $60 gross profit with the $40 product cost to calculate markup.
150% markupStress-test a 20% discount
A 20% discount lowers the price to $80, leaving $40 gross profit after product cost.
50% marginThe problem was not using markup. It was treating markup as if it were gross margin.
Markup remains useful for understanding how far a price sits above cost, but it cannot be substituted for gross margin. Use markup to build a price. Use gross margin to judge whether that price is profitable.
Is your Shopify pricing built correctly?
Use this checklist to verify that markup and gross margin are calculated separately, converted correctly and monitored consistently. A price is not fully validated until you know both how it was built and how much revenue remains after product cost.
Product cost foundation
Every product has an accurate cost
Every product and variant needs a reliable COGS value before markup, margin or selling price can be calculated.
Costs are updated when suppliers change prices
Pricing calculations should always reflect the latest supplier, manufacturing and packaging costs.
COGS is separated from operating expenses
Product cost should remain distinct from advertising, software, salaries and other operating expenses.
Gross margin calculation
Gross profit is calculated correctly
Gross profit must equal selling price minus product cost before any percentage is calculated.
Gross margin uses selling price as denominator
Gross margin is gross profit divided by selling price, showing how much of revenue remains after COGS.
Margin is reviewed product by product
Store averages should not hide products whose individual gross margin falls below the target.
Markup calculation
Markup uses product cost as denominator
Markup is gross profit divided by product cost, measuring how much the selling price exceeds that cost.
Markup is not confused with gross margin
The two percentages answer different questions and must never be treated as interchangeable.
The resulting selling price is verified
After applying a markup, calculate the gross margin produced and confirm that it meets the profitability target.
Margin target conversion
A target gross margin is defined
Each product should have a margin target based on its economics, market position and remaining expenses.
The target is converted into the correct price
Use selling price = product cost ÷ (1 − target gross margin), rather than applying the same percentage as markup.
The corresponding markup is calculated
Verify the markup required by the target margin so the relationship between cost, price and profit is fully understood.
Pricing stress test
Discounts are tested before launch
Simulate planned promotions to see the gross margin that remains after the selling price is reduced.
Supplier cost increases are simulated
Test how higher COGS changes both gross margin and the selling price required to preserve the target.
Fees and other costs are considered separately
Gross margin covers product cost only; payment fees, shipping, advertising and overhead must still be evaluated.
Ongoing margin monitoring
Actual gross margin is reviewed regularly
Review the margin produced by real Shopify sales instead of relying only on the markup used when pricing.
Margin changes are compared over time
Period comparisons reveal whether supplier changes, discounts or product mix are weakening profitability.
Pricing insights lead to concrete actions
Each finding should lead to a pricing, sourcing, promotion or product-level decision.
A price needs two separate answers.
Do you know the markup used to build the price and the gross margin that price actually produces? A price is not validated until both percentages have been calculated separately.
Build the price
Confirm product cost, choose the target gross margin and calculate the selling price with the correct formula.
Stress-test the margin
Simulate discounts, supplier increases and other costs before changing the price offered to customers.
Monitor actual results
Review actual gross margin by product and period, then update pricing when the economics change.
Gross margin and markup questions Shopify merchants should understand.
These frequently asked questions explain why gross margin and markup produce different percentages, how to calculate each metric and why confusing them can lead to underpriced Shopify products.
01 Metric fundamentals What is the difference between gross margin and markup? +
Gross margin and markup use the same selling price, product cost and gross profit, but measure that profit from different perspectives. Gross margin expresses gross profit as a percentage of the selling price, while markup expresses gross profit as a percentage of product cost.
The difference comes from the denominator. Gross margin asks how much of every sales dollar remains after paying for the product. Markup asks how much the selling price exceeds the original cost. Because selling price is normally higher than cost, the markup percentage is higher than the gross margin percentage for the same product.
For example, a product that costs $40 and sells for $100 generates $60 of gross profit. Its gross margin is 60%, but its markup is 150%. The percentages are not interchangeable even though the underlying dollar values are identical.
Calculate your gross margin →02 Metric calculation How do you calculate gross margin and markup? +
Begin by subtracting product cost from selling price to calculate gross profit. Then divide that gross profit by selling price for gross margin, or by product cost for markup:
Markup = (Selling Price − Product Cost) ÷ Product Cost × 100
Using a selling price of $100 and a product cost of $40, gross profit is $60. Gross margin is therefore $60 ÷ $100 = 60%, while markup is $60 ÷ $40 = 150%.
Both calculations are correct, but they answer different questions. Use markup to understand how a price was built from cost. Use gross margin to evaluate how much revenue remains after the product cost has been paid.
Try the Markup Calculator →03 Pricing misconception Why does a 60% markup not produce a 60% gross margin? +
A 60% markup is calculated from product cost, not from selling price. If a product costs $40, applying a 60% markup adds $24 to that cost and produces a selling price of $64.
The product generates $24 of gross profit, but that profit must be divided by the $64 selling price to calculate gross margin. The result is $24 ÷ $64 = 37.5%, not 60%.
To achieve a 60% gross margin on a product that costs $40, the correct formula is Product Cost ÷ (1 − Target Gross Margin). That produces a selling price of $100 and a corresponding markup of 150%. Treating a desired margin as a markup can therefore set the price far below the intended profitability target.
Calculate the correct selling price →Three questions answered. Three remain.
Continue with converting a margin target into a selling price, choosing the right metric and measuring how discounts affect gross margin.
04 Margin target conversion How do you convert a target gross margin into a selling price? +
To convert a target gross margin into a selling price, divide the product cost by one minus the target margin expressed as a decimal:
Selling Price = Product Cost ÷ (1 − Target Gross Margin)
For example, a product that costs $40 and must achieve a 60% gross margin requires a selling price of $100: $40 ÷ (1 − 0.60) = $100. At that price, gross profit is $60 and the corresponding markup is 150%.
This is why adding 60% to cost does not produce a 60% margin. A 60% markup would create a price of only $64 and an actual gross margin of 37.5%. The margin target must always be converted with the correct formula.
Calculate the required selling price →05 Choosing the metric Should Shopify merchants use gross margin or markup? +
Shopify merchants should use both metrics because they answer different questions. Markup is useful for building a selling price from product cost. Gross margin is useful for measuring how much of the selling price remains after paying for that product.
For example, if a product costs $40 and sells for $100, its markup is 150% while its gross margin is 60%. Both figures are correct, but they describe the same profit from different perspectives because markup divides by cost and gross margin divides by revenue.
For profitability analysis, gross margin should be the primary metric. It shows the share of revenue available to absorb payment fees, fulfillment, advertising and operating expenses. Markup alone cannot reveal how much revenue remains.
Use markup to build the price, then validate that price with gross margin. This prevents a familiar markup percentage from being mistaken for the profitability percentage the business actually needs.
Calculate your gross margin →06 Discount impact How do discounts affect gross margin and markup? +
Discounts reduce the selling price while product cost usually remains unchanged. As a result, both gross profit and gross margin fall faster than many merchants expect, and the effective markup also decreases.
In this example, the selling price falls from $100 to $80 while cost remains $40. Gross margin declines from 60% to 50%, and markup falls from 150% to 100%. The discount is 20%, but gross profit per unit decreases by $20, or 33.3%.
Always stress-test promotions before launch. A product can still appear profitable after a discount while leaving far less money to cover advertising, fulfillment, payment fees and operating expenses.
Calculate discount impact →All six gross margin and markup questions answered.
You now know how to calculate both metrics, convert a target gross margin into the correct selling price and evaluate how discounts change the profitability of a Shopify product.
Continue building your Shopify profitability foundation.
Now that you understand the difference between gross margin and markup, continue with the costs and product-level analysis that turn pricing formulas into a reliable Shopify profitability system.
Understanding Cost of Goods Sold
Identify the direct costs that belong inside COGS, calculate product cost accurately and understand how incomplete cost data distorts gross margin and pricing decisions.
Product Profitability Analysis
Evaluate which products genuinely support store profit by comparing revenue, product cost, gross profit and gross margin at product level.
Operating Costs Explained
Understand the expenses that sit beyond product and inventory cost, and how they affect the profitability of your Shopify business.
Stop confusing markup. Start monitoring real margin.
MarginLab analyzes actual gross margin across your Shopify data, helping you identify weak-margin products, deteriorating profitability and realistic recovery opportunities. Connect your store and turn pricing data into continuous product margin and profitability monitoring.