← Back to Blog
Guide

Forthcast: Keyword gap: 'margin calculation' —...

Forthcast — TL;DR: Margin calculation separates revenue from actual profit by accounting for product cost, shipping, fees, and overhead. Most merchants...

By Forthsuite Editorial
14 min read
In this article
  1. Why Markup and Margin Are Not Interchangeable
  2. The Components of True Landed Cost
    1. Hidden Costs That Compress Margin
  3. How to Calculate Margin Step by Step
    1. Margin Calculation Across Sales Channels
  4. When Low Margin Products Make Sense
  5. How to Improve Margin Without Raising Prices
    1. Margin Forecasting and Inventory Decisions
  6. Using Margin Data to Prioritise Reorders
  7. Margin Monitoring Tools for Shopify Merchants
  8. Frequently Asked Questions
    1. What is the difference between gross margin and contribution margin?
    2. How do I calculate margin when I offer free shipping?
    3. Should I calculate margin before or after discounts?
    4. Why does my margin change between sales channels?
    5. How often should I recalculate margin for each product?
    6. Can I use markup instead of margin for pricing decisions?
    7. What margin percentage should I target for a healthy Shopify business?
    8. Further reading

Margin Calculation: How Shopify Merchants Track Profit Without Breaking Even

TL;DR: Margin calculation separates revenue from actual profit by accounting for product cost, shipping, fees, and overhead. Most merchants confuse markup with margin, leading to unprofitable pricing decisions. A 50% markup delivers only 33% margin, and without accurate cost tracking, you cannot know whether a SKU is worth reordering.

Margin calculation tells you how much money you keep after covering the cost of goods sold. Revenue minus cost of goods sold, divided by revenue. The formula looks simple until you add Shopify transaction fees, shipping subsidies, payment processing, return costs, and warehousing overhead.

Merchants who track only markup price products based on cost multiplied by a fixed percentage. A $10 product with 50% markup sells for $15. But margin on that transaction is 33%, not 50%. When you run ads or offer free shipping, that 33% margin disappears before you pay rent.

Why Markup and Margin Are Not Interchangeable

Markup calculates profit as a percentage of cost. Margin calculates profit as a percentage of selling price. A product that costs $40 and sells for $100 has a 150% markup but only 60% margin. The difference matters when you set discounts, evaluate channel performance, or decide which products to promote.

A 20% discount on a product with 60% margin leaves you with 40% margin. The same 20% discount on a product with 25% margin puts you at 5% margin, barely enough to cover fulfilment variability. Merchants who conflate the two terms run promotions that erase profit without realising it until the month closes.

Markup is useful when you price a product for the first time. Margin is useful when you evaluate whether that product should stay in the catalogue. A high-margin product can subsidise customer acquisition cost. A low-margin product cannot, unless it drives repeat purchases or cross-sells to high-margin SKUs.

The Components of True Landed Cost

Cost of goods sold includes more than the invoice from your supplier. Landed cost adds import duties, freight, customs brokerage, and the cost of capital tied up in inventory. A $20 product that sits in a warehouse for four months accrues holding cost, and if you borrow to finance inventory, interest expense compounds.

Shopify transaction fees range from 0.5% to 2% depending on your plan. Payment processing adds another 2.9% plus 30 cents per transaction in most regions. If you sell a $50 product and pay 2.9% plus $0.30, you lose $1.75 to payment processing before accounting for any other cost.

Shipping cost includes the carrier rate, packaging materials, and labour to pick and pack. If you offer free shipping, that cost comes directly out of margin. A $10 shipping subsidy on a product with $15 gross profit cuts your margin by two-thirds. Merchants who do not track shipping cost per order cannot calculate true margin.

Hidden Costs That Compress Margin

Returns reduce margin twice: once when you refund the customer, and again when you restock or discard the returned unit. According to Shopify Research (2024), handling a return costs merchants an average of 66% of the original order value when accounting for reverse logistics, restocking labour, and lost selling time.

Chargebacks cost $15 to $100 in dispute fees on top of the lost product and shipping. Payment gateway fees on the original transaction are rarely refunded. If you lose a chargeback, you lose the product, the shipping, the payment processing fee, and the dispute fee.

Marketing attribution is imperfect, so merchants often under-allocate acquisition cost to individual SKUs. A product with 45% margin looks profitable until you realise you spent $30 in Facebook ads to acquire a $60 order. Blended customer acquisition cost hides which products actually pay for growth.

How to Calculate Margin Step by Step

Start with revenue per unit. Subtract cost of goods sold, including landed cost and payment processing fees. Subtract allocated shipping cost if you offer free or subsidised shipping. Subtract platform fees, including Shopify subscription cost divided by monthly order volume. The result is gross profit per unit.

Divide gross profit by revenue to get margin percentage. A product that sells for $100, costs $50 to acquire and ship, and incurs $4 in fees delivers $46 gross profit and 46% margin. If you spend $20 on advertising to sell that unit, contribution margin after CAC falls to 26%.

Track margin at SKU level, channel level, and blended across the business. A product with 50% margin on your Shopify store might deliver only 30% margin on Amazon after referral fees and fulfilment costs. Channel-level margin tells you where to focus inventory and marketing spend.

Margin Calculation Across Sales Channels

Channel Typical Fees Fulfilment Model Margin Impact
Shopify Direct 2–3% transaction + payment Self-managed Highest margin if CAC is controlled
Amazon FBA 15% referral + FBA fees Amazon handles Margin compresses 20–30%
Wholesale 50% wholesale discount Retailer handles Low margin, high volume
Retail Pop-Up Rent + labour Self-managed Varies; fixed costs per event

Margin per channel determines where you allocate inventory. If Amazon compresses margin to 20% but your Shopify store delivers 50%, prioritise stock for owned channels unless Amazon volume justifies the tradeoff. Many merchants over-invest in marketplaces because revenue looks strong, but profit tells a different story.

When Low Margin Products Make Sense

A loss leader brings customers into your catalogue with the expectation that they will buy high-margin items next. Coffee subscriptions often operate at thin margin on the first bag because lifetime value justifies the acquisition cost. If your average customer orders four times and each subsequent order costs nothing to acquire, first-order margin can approach zero.

Bundling low-margin products with high-margin products raises blended margin per transaction. A $10 accessory with 15% margin paired with a $100 core product at 55% margin delivers 50% margin on the bundle. Customers perceive value, and you protect profit.

High-velocity products with low margin can improve cash conversion cycle if you turn inventory faster than you pay suppliers. A product with 20% margin that sells in seven days generates more annual profit than a 60% margin product that sits for 120 days, because you reinvest the cash nine times faster.

How to Improve Margin Without Raising Prices

Negotiate better terms with suppliers. A 5% reduction in landed cost flows directly to margin. Suppliers often grant discounts for prepayment, volume commitments, or annual contracts. If you cannot negotiate cost, negotiate payment terms to improve working capital.

Reduce shipping cost by switching carriers, negotiating rates, or raising the free-shipping threshold. A $75 free-shipping minimum instead of $50 forces customers to add items, raising average order value and spreading fixed shipping cost across more revenue.

Cut SKU count to focus inventory dollars on high-margin products. Every additional SKU adds complexity, holding cost, and markdowns when trends shift. A streamlined catalogue with 50 SKUs at 50% margin outperforms 200 SKUs at 35% margin because you reduce waste and improve turn.

Margin Forecasting and Inventory Decisions

Forecasting future margin requires knowing how cost and price will change. If your supplier raises prices 10% next quarter, you must either pass the increase to customers or accept lower margin. Passing price increases during slow seasons risks volume loss. Absorbing them compresses margin and reduces reinvestment capacity.

Inventory carrying cost rises with holding time. A product that costs $30 and sits for six months accrues warehousing, insurance, and opportunity cost. If your cost of capital is 12% annually, six months of holding adds $1.80 per unit. Margin erodes the longer inventory ages.

Markdown cost is the inverse of margin. A product with 50% margin marked down 30% leaves 20% margin if it sells. A product with 25% margin marked down 30% becomes a loss. Merchants who do not track margin by SKU cannot evaluate which markdowns are survivable.

Using Margin Data to Prioritise Reorders

Reorder the SKUs with the highest margin per day of inventory, not the highest margin percentage. A product with 60% margin that sells one unit per week generates less profit than a 40% margin product that sells ten units per week. Margin multiplied by velocity equals profitability.

Track margin trend over time. If margin on a SKU drops from 50% to 35% over six months due to rising freight or increased returns, investigate root cause. Declining margin signals a problem with the product, the supplier, or customer expectations.

Compare margin to customer acquisition cost by cohort. Products that attract high-CAC, low-LTV customers destroy profit even at high margin. A 55% margin product that costs $40 to acquire and generates one $80 purchase leaves $4 profit after CAC. A 40% margin product with $10 CAC and three repeat purchases wins.

Margin Monitoring Tools for Shopify Merchants

Spreadsheets work until SKU count exceeds 50 or you sell across multiple channels. Manual margin calculation misses real-time cost changes, promotional discounts, and return rate variability. A product that shows 45% margin in your spreadsheet might deliver 28% after accounting for actual returns and shipping overages.

Shopify's native reports show gross sales and cost of goods sold if you enter product costs. But Shopify does not allocate shipping cost, payment fees, or marketing spend to individual SKUs. You see revenue and basic margin, not contribution margin after all variable costs.

Third-party analytics tools import Shopify order data and layer in advertising spend, shipping cost, and fees. Some tools allocate CAC to individual products using attribution models. The best tools update margin daily so you catch compression before it compounds.

Forthcast calculates true margin per SKU by combining Shopify order data, supplier cost, shipping actuals, and allocated overhead. You see which products are profitable, which channels compress margin, and when cost increases will erode pricing power. Margin visibility prevents you from reordering products that look successful but lose money.

Frequently Asked Questions

What is the difference between gross margin and contribution margin?

Gross margin is revenue minus cost of goods sold, divided by revenue. Contribution margin subtracts variable costs like shipping, payment processing, and allocated marketing spend. Contribution margin tells you whether a product pays for customer acquisition and overhead after covering direct costs.

How do I calculate margin when I offer free shipping?

Subtract the actual shipping cost from revenue before calculating margin. If a product sells for $50 and shipping costs $8, treat revenue as $50 and subtract both $8 shipping and product cost. Free shipping is a cost you absorb, and it must come out of margin.

Should I calculate margin before or after discounts?

Calculate margin on the actual selling price after discounts. A 20% discount changes both revenue and margin. Tracking pre-discount margin hides the true cost of promotions and makes unprofitable sales look healthy. Always use the price the customer paid.

Why does my margin change between sales channels?

Each channel has different fee structures, shipping costs, and return rates. Amazon charges referral and FBA fees that Shopify does not. Wholesale requires a 50% discount. Retail pop-ups add event costs. Margin per channel reveals where your business is most profitable.

How often should I recalculate margin for each product?

Recalculate margin monthly or whenever costs change. Supplier price increases, shipping rate hikes, and rising return rates all compress margin. Waiting until quarter-end to discover margin erosion costs you weeks of unprofitable sales you could have avoided.

Can I use markup instead of margin for pricing decisions?

Markup helps you set initial prices, but margin tells you whether those prices are sustainable. A 100% markup sounds strong, but if margin is only 30% after fees and shipping, you cannot afford acquisition cost or discounts. Always convert markup to margin before making strategic decisions.

What margin percentage should I target for a healthy Shopify business?

Target 40–50% gross margin for products with moderate CAC and repeat purchase potential. Higher margin allows reinvestment in growth. Lower margin works only if you achieve high volume or strong repeat rates. Contribution margin after CAC should remain above 20% to fund operations and scale.

Forthcast gives you real-time margin visibility across every SKU and sales channel, so you know which products fund growth and which ones drain profit. Stop guessing whether a reorder makes sense. Track true margin, allocate costs accurately, and prioritise inventory that pays for itself.

margin calculation
← Back to Blog

Ready to stop guessing your inventory?

Join Shopify merchants using Forthcast to predict demand and automate purchase orders.

Start Free Trial