Craftshift logo

How to calculate Shopify profit margins correctly

How to calculate Shopify profit margins correctly

A shopify profit margin calculator tells you what you actually keep after Shopify fees, payment processing, COGS, shipping, and returns eat into the sticker price. Most merchants think they have a 40% margin and discover they have 12%.

The math is not hard. The hard part is being honest about every cost line, including the ones that feel small until you multiply them by 10,000 orders.

This guide walks through margin vs markup, how to calculate true COGS, how to fold Shopify’s transaction fees into the formula, healthy benchmarks by industry, and when raising prices is the right call.

If you want to skip ahead and run the numbers, our free Profit Margin Calculator handles every variable below.

In this post

Margin vs markup (they are not the same)

Markup is the percentage you add on top of cost. Margin is the percentage of the selling price that is profit. A product that costs $50 and sells for $100 has a 100% markup but only a 50% margin.

Mixing the two is the most common pricing mistake we see. A founder hears “use a 3x markup” and assumes that means a 66% margin. It does not. A 3x markup gives you a 66.6% gross margin only before fees, returns, and shipping.

Formulas to memorize:

Calculating your true COGS

COGS is more than the unit price your supplier invoices. A complete COGS line includes the manufacturing cost, inbound freight, import duties, customs brokerage, inspection or QC fees, packaging, and any per-unit labor.

If you import from China at $8 per unit, but pay $1.20 freight, $0.80 duty, $0.40 packaging, and $0.30 per-unit QC, your real COGS is $10.70, not $8. Pricing off the wrong number kills 25% of your gross profit before you ship a single order.

Fashion and beauty brands often forget hangtags, polybags, and tissue paper. Electronics brands forget warranty reserves. Food brands forget temperature-controlled freight surcharges.

Including Shopify and payment fees

Shopify Payments charges 2.9% + 30 cents on Basic, 2.7% + 30 cents on Shopify, and 2.5% + 30 cents on Advanced for online card transactions in the US. If you use a third-party gateway like Stripe or PayPal, Shopify adds a 2% transaction fee on Basic, 1% on Shopify, and 0.5% on Advanced on top of the gateway’s own rate.

That fixed 30 cents matters more on low-AOV stores. A $15 sale loses 5% to the flat fee alone. A $150 sale loses 0.2%. We break the math down in detail in our guide on Shopify transaction fees explained.

For an honest margin number, plug your actual gateway and plan into the Shopify Fee Calculator. If your AOV is under $30, the plan you pick changes your true margin by 1 to 3 percentage points. Our breakdown of which Shopify plan to choose in 2026 explains where the break-even sits.

Shipping costs and returns

Free shipping is not free. If you offer it, the shipping cost is a margin line, not a marketing line. A typical apparel brand spends $6 to $9 per outbound parcel domestically. International orders run $18 to $35.

Returns are the second forgotten cost. Apparel sees 20% to 40% return rates. If a returned item comes back damaged, repackaged, or unsellable, write it off. A 30% return rate with a 50% restock recovery means 15% of your gross sales evaporate.

Add an effective return cost line of 5% to 12% to apparel and footwear COGS. Beauty and supplements run lower (1% to 4%). Electronics sit around 8% to 15%.

Use the Break-Even Calculator to find the order volume where your fixed costs are covered. Below break-even, every shipped order loses you money even if the per-unit margin looks fine.

Healthy margins by industry

Margins vary wildly by category. Here are realistic gross margin ranges (after COGS, fees, and shipping, before marketing):

If your category lands below the bottom of this range, you do not have a margin problem. You have a pricing or sourcing problem.

Pricing for profitability

Cost-plus pricing (COGS times a markup multiple) is the floor, not the answer. The answer is value-based pricing: what does this product solve for the customer, and what is that solving worth?

If a $12 supplement helps a customer sleep, they will pay $39. If a $4 phone case prevents a $1,200 phone repair, they will pay $35. The COGS multiple is irrelevant.

Test pricing in 10% increments. Run a single product at a higher price for two weeks and watch conversion rate, AOV, and total revenue. If revenue holds at the higher price, you left money on the table.

Variant-level pricing also matters. A bundled 3-pack at a 15% discount looks generous to the customer and lifts AOV by 40%. Stores that show variant options well (with proper swatches and per-variant pricing) convert higher: see the Rubik Variant Images approach for product page swatch UX.

When to raise prices

Raise prices when any of these are true:

Most stores can raise prices 8% to 12% with no measurable conversion drop. The customers who would have churned at the higher price were the wrong customers anyway.

If you sell across multiple collections, separate listings with cleaner catalog structure usually convert better than one mega-product with 30 variants. Tools like Rubik Combined Listings help you split SKUs without losing collection page swatch UX.

Once your pricing is solid, the next lever is technical SEO. Our Shopify SEO checklist for 2026 covers product page indexing and structured data. The JSON-LD Product Schema Generator writes the schema for you.

FAQ

What is a good profit margin for a Shopify store?

A healthy gross margin for most Shopify stores is 50% to 70% before marketing. After ad spend and overhead, net margin typically lands at 10% to 20% for established brands.

How do I calculate margin including Shopify fees?

Subtract COGS, payment processing fees (2.4% to 2.9% plus 30 cents), shipping cost, and a returns reserve from the selling price. Divide the result by the selling price.

Is markup the same as margin?

No. Markup is profit divided by cost. Margin is profit divided by selling price. A 100% markup equals a 50% margin.

Should free shipping be a marketing or COGS expense?

Treat free shipping as a COGS line. It is a per-unit cost that scales with order volume, not a fixed marketing budget.

How often should I recalculate margins?

Quarterly at minimum. Recalculate any time a supplier raises prices, freight rates change, or you switch Shopify plans.

What return rate should I plan for?

Apparel and footwear: 20% to 40%. Beauty: 1% to 4%. Electronics: 8% to 15%. Add the unrecoverable portion to your cost basis when pricing.

Can I improve margin without raising prices?

Yes. Renegotiate supplier terms at higher volume, consolidate shipments to cut freight, switch to Shopify Payments to avoid third-party transaction fees, and reduce returns through better sizing and product images.

Run your numbers now

Stop guessing. Plug your real COGS, fees, and shipping into the Profit Margin Calculator and find out what you actually keep on every order.

Our Shopify Apps

Smart Bulk Image Upload

Bulk upload product images from Google Drive & save time!

Rubik Variant Image & Swatch

Show only relevant variant images on your product pages.

Rubik Combined Listings Swatch app

Rubik Combined Listings

Link separate products as variants with beautiful swatches

CS – Export Product Images

Bulk export product images by vendor, collection or status

Blog Posts