Ecommerce Margin Calculator

Calculate gross margin, contribution margin, net margin, markup and break-even ROAS for an ecommerce product in one view.

FreeInstant resultsNo signupPrivate

Loading Ecommerce Margin Calculator…

What is the Ecommerce Margin Calculator?

An ecommerce profit margin calculator shows the three margins online sellers track: gross margin = (price − product cost) ÷ price; contribution margin, after shipping, platform and payment fees and marketing; and net margin, after overhead. It also gives markup on cost and break-even ROAS.

Example: a $50 product costing $18, with $6 shipping, 6% fees, $9 marketing and $2 overhead per order, has a 64% gross margin ($32), a 28% contribution margin ($14) and a 24% net margin ($12). Markup is 178% and break-even ROAS is 2.17×.

How to use the Ecommerce Margin Calculator

  1. Enter Selling price and Product cost (COGS).
  2. Add Shipping & packaging, Platform + payment fees (%) and Marketing per order.
  3. Add Overhead per order — monthly overheads divided by monthly orders.
  4. Compare net margin with gross margin, contribution margin, markup and break-even ROAS; the bar shows where each dollar goes.

Why use AnyShift's Ecommerce Margin Calculator

Instant resultsNumbers update as you type — no submit button, no page reloads.
Formula shownEvery result shows how it was calculated so you can check the maths.
Editable assumptionsRates, fees and defaults are pre-filled but always adjustable.
Private by designCalculations run in your browser. Nothing is stored or sent.

Popular use cases

  • Checking a new product’s margins before listing it
  • Explaining the difference between gross and net margin to a partner
  • Finding which cost line squeezes profit the most
  • Setting a break-even ROAS for ad campaigns

The three ecommerce margins

MarginFormulaExample ($50 price)
Gross margin(Price − COGS) ÷ price64% ($32)
Contribution margin(Gross profit − shipping − fees − marketing) ÷ price28% ($14)
Net margin(Contribution − overhead) ÷ price24% ($12)
Markup on costGross profit ÷ COGS178%

For a quick single-margin check on any product, use the profit margin calculator.

Frequently asked questions

What is the difference between margin and markup?
Margin is profit ÷ price; markup is profit ÷ cost. A 50% margin equals a 100% markup, and the 64% gross margin in the example is a 178% markup. See the markup calculator to convert between them.
What is a good ecommerce gross margin?
It depends on the model: own-brand and private-label products often run 50% or more, while resellers of commodity goods may work on 20–30%. What matters is that contribution margin leaves room for ads and overhead.
What is contribution margin in ecommerce?
The share of the price left after all variable costs of an order — product, shipping, fees and marketing. It pays for overhead and profit; with the defaults it is 28%, or $14 per order.
How do I calculate net profit margin for an online store?
Net margin = (price − product cost − shipping − fees − marketing − overhead) ÷ price. Spread fixed costs such as software, rent and salaries across monthly orders to get the overhead-per-order figure.
How is break-even ROAS worked out here?
Price ÷ (contribution + marketing), because marketing is the cost ads are allowed to consume. With the defaults that is $50 ÷ $23 = 2.17×.

People also search for

ecommerce marginonline store profit margincontribution margin calculatorgross margin ecommercenet margin calculator ecommerceproduct margin calculatorecommerce markup calculatormargin calculator for online sellersdtc margin calculator

Last reviewed: Built for: United States, United Kingdom, Canada, Australia Part of Ecommerce & Sellers

Related tools

More Ecommerce & Sellers tools

View all

Etsy Fee Calculator

See every Etsy fee on a sale — listing, 6.5% transaction, payment processing and Offsite Ads — plus the exact payout you receive.

Amazon Seller Fee Calculator

Calculate Amazon seller fees per unit — referral fee, media closing fee and Individual vs Professional plan costs — and your payout.

TikTok Shop Fee Calculator

Calculate TikTok Shop referral fees, affiliate creator commissions and your profit per order before you set a price.

eBay Fee Calculator

Calculate eBay final value fees, the per-order fee, Promoted Listings and the international fee — and your profit after costs.

Walmart Marketplace Fee Calculator

Estimate Walmart Marketplace referral fees and optional WFS fulfilment costs, then see profit and margin on every order.

Stripe Fee Calculator

Calculate Stripe processing fees, what you receive, and how much to charge to net an exact amount — with international and FX add-ons.

PayPal Fee Calculator

Calculate PayPal fees for checkout, goods and services, invoices and international payments — or how much to ask for to receive a set amount.

Print on Demand Profit Calculator

Calculate print-on-demand profit per item for Printful, Printify or Gelato products sold on Etsy, Shopify, Amazon or your own store.

Break-even ROAS Calculator

Calculate the break-even ROAS and break-even CPA your ads must hit so ad-driven orders stop losing money.

Target ROAS Calculator

Calculate the target ROAS to set in Google or Meta Ads so you keep a chosen profit margin after ad spend.