Skip to content

Shopify profitability analysis

Shopify Profit Margin: Understand Product Costs Before You Discount

Revenue tells you what customers spend. Product margin tells you how much a sale contributes before the remaining costs of running your store. Learn the calculations, compare a realistic discount example and use SafeMargin to plan your next promotion.

View SafeMargin on Shopify

$4.99 USD/month · 7-day free trial · English app interface

How to calculate Shopify product margin

Choose a consistent basis for your calculation: the same currency, the actual selling price after discounts and a product cost measured on the same tax basis. Do not treat tax collected on behalf of an authority as extra profit. Make sure your treatment of tax and shipping matches your business records.

For a simple gross product margin, subtract the product cost from selling price, then divide by selling price:

Gross margin (%) = (Selling price − Product cost) ÷ Selling price × 100

If a product sells for $50 and costs $30, its gross profit is $20 and gross margin is 40%. This does not yet deduct payment processing, packaging, fulfillment, advertising, returns or fixed overhead.

Margin and markup use different denominators

The same $20 difference is a 66.7% markup on a $30 cost. A 40% markup and a 40% margin therefore lead to different selling prices. When setting a promotion target, confirm which percentage you are using.

Include fees for a more useful profitability analysis

A product can show a healthy gross margin while leaving little contribution after selling costs. Create a cost checklist before comparing products or discount scenarios.

  • Product acquisition or manufacturing cost, including relevant landed costs.
  • Percentage payment fees and any fixed fee attributed to the sale.
  • Packaging, shipping subsidies and other variable costs per item.
  • Expected acquisition costs or returns, when you can reasonably allocate them.

Fixed order fees need a clear allocation rule when an order contains several items. Avoid counting the entire order fee against every item, and avoid subtracting a fee twice if it is already included in your cost assumptions.

For planning, a simplified unit contribution model is:

Contribution = Price × (1 − fee rate) − unit cost − allocated fixed fee − extra unit costs

This is an illustrative model. Your payment contract, discounts, tax treatment and rounding rules may require a different calculation. Contribution margin helps assess a sale; net business profit also depends on overhead and the rest of your business activity.

What a 20% discount does to product margin

Consider an illustrative product sold for $50, with a $25 unit cost, a 3% fee on selling price, a $0.30 fixed fee allocated to the unit and $2 in extra variable costs.

Illustrative calculation, not a SafeMargin screenshot or a sales forecast
MetricRegular price20% discount
Selling price$50.00$40.00
Percentage fee$1.50$1.20
Other included costs$27.30$27.30
Contribution per unit$21.20$11.50
Contribution margin42.4%28.75%

The selling price falls by 20%, but contribution per unit falls by about 45.8%. You would need about 1.84 times as many units to produce the same total contribution, assuming costs stay unchanged and no additional promotion spending is required. That is an arithmetic comparison, not a prediction that the discount will generate more sales.

Find a minimum price for your target margin

Set a target that leaves enough contribution to cover your remaining expenses. Under the simplified model above, let C be unit cost plus allocated fixed fees and extra unit costs, r the percentage fee rate and m the target contribution margin. Express rates as decimals.

Minimum price = C ÷ (1 − r − m)
Maximum discount (%) = (1 − Minimum price ÷ Regular price) × 100

With C = $27.30, r = 0.03 and a target of 0.30, the minimum price is about $40.75 when rounded upward to cents. Against a $50 regular price, a conservative discount limit is about 18.5%. The proposed 20% discount would fall below this illustrative target.

The formula requires 1 − r − m to be positive. If the regular price is already below your minimum price, no positive discount meets the target. Check your costs or price assumptions before planning the promotion. Recheck the final rounded price and actual fee calculation before publishing it.

Use SafeMargin to review product margins before a promotion

SafeMargin brings product margin estimates and discount planning into Shopify. Review variants, maintain cost-per-item information, compare current and simulated margins, and examine minimum prices and discount limits. Collection filters, configurable cost assumptions and CSV exports help you review the products involved.

  1. Check costs for the variants you intend to promote.
  2. Set your fee assumptions and margin target.
  3. Compare your proposed discount with the estimated margin remaining.
  4. Review exceptions and missing data before deciding which prices to change.

Simulations do not change live product prices. Estimates depend on the data and assumptions you provide; they are a planning aid rather than a guarantee of profit.

Explore SafeMargin and its free trial

Connect margin analysis with slow-moving inventory decisions

Clearance planning has two questions: which products need attention, and how much room is there to discount? Start with our guide to dormant inventory and dead stock in Shopify for stock selection, then evaluate the margin consequences of a proposed offer.

Stock Revival and SafeMargin address complementary decisions. This workflow does not imply an automatic data integration between the apps. You remain responsible for selecting products and approving promotions.

A practical checklist before publishing a discount

  • Resolve missing or outdated unit costs.
  • Check whether shipping, advertising and returns are included or excluded.
  • Compare variant-level results rather than relying only on a store-wide average.
  • Review existing promotions and how discounts combine.
  • Estimate the extra unit volume needed to preserve total contribution.
  • After the promotion, compare actual fees and results with your assumptions.

Shopify profit margin FAQ

How do I calculate product margin in Shopify?

Start with a consistent selling price and unit cost. Gross product margin is (selling price minus product cost) divided by selling price, multiplied by 100. Subtract the relevant fees and variable costs to estimate contribution margin.

What is a good Shopify profit margin?

There is no universal target. Your category, returns, acquisition costs, overhead and sales volume all affect the margin you need. Choose a target that leaves enough contribution to cover the costs excluded from your product calculation.

Is profit margin the same as markup?

No. Margin divides profit by selling price; markup divides profit by cost. An item costing $30 and selling for $50 has a 40% gross margin and a 66.7% markup.

Can a discount increase sales and still reduce profitability?

Yes. A lower selling price can reduce contribution per unit much faster than it increases unit volume. Compare expected contribution before and after the promotion, including any additional advertising and fulfillment costs.

Does a SafeMargin simulation change live prices?

No. SafeMargin lets you evaluate discounts before changing live product prices. Updating product cost information is a separate action and should use accurate cost data.

Does SafeMargin calculate my complete business net profit?

SafeMargin estimates product margins and discount scenarios from catalog data and the costs and fees you provide. Product-level estimates do not automatically account for every business expense, tax, refund or advertising cost.

How much does SafeMargin cost?

The current public Shopify listing shows $4.99 USD per month with a 7-day free trial. Review the Shopify listing and approval screen for current terms before subscribing.

Plan your next discount with clearer numbers

Review the SafeMargin listing, check the current plan and try a product scenario using your own costs.

View SafeMargin on the Shopify App Store