Profitability · Free calculator for online stores

Profit Margin Calculator for Online Stores

A profit margin calculator prefilled with an example for online stores. With the example inputs, gross margin is 55% and net margin is 20%. Change any field to use your own numbers.

Example inputs, not data. The example is one illustrative month: $20,000 of sales, $9,000 of product and shipping costs, and $7,000 of other costs. Not a typical e-commerce figure.

Materials, direct labor, payment fees: costs that scale with each sale.

Rent, software, salaries, marketing. Used for net margin.

We will show the price needed at your current cost.

Your result

Gross margin55%
Gross profit
$11,000.00
Net margin
20%
Net profit
$4,000.00
Markup on cost
122.22%
Price needed for 55% gross margin
$20,000.00

Estimate for information only, not financial, tax or legal advice.

What the example shows

With the example inputs, gross margin is 55% and net margin is 20%. The table keeps the other example inputs fixed and changes one, so you can see which lever matters most.

Revenue needed for each gross margin, at the example cost of goods sold ($9,000.00)
Target gross marginRevenue neededEquivalent markup on cost
30%$12,857.1442.86%
40%$15,000.0066.67%
50%$18,000.00100%
60%$22,500.00150%
70%$30,000.00233.33%
80%$45,000.00400%

Usually cost of goods sold (direct costs)

  • Product purchase or manufacturing cost
  • Inbound freight and import duties per unit
  • Outbound shipping and packaging you pay
  • Payment processing fees per order

Usually operating expenses

  • Store platform plan and apps
  • Advertising and marketing
  • Warehouse or storage, software and wages
  • Returns handling, if not tracked per order

A note for online stores

Ad spend can swing an online store’s net margin more than any other line. Look at gross margin first to see if the product can carry its marketing, then net margin for the month as a whole.

How the calculation works

  • Gross margin % = (Revenue − COGS) ÷ Revenue × 100
  • Net margin % = (Revenue − COGS − Opex) ÷ Revenue × 100
  • Markup % = (Revenue − COGS) ÷ COGS × 100
  • Price for target margin = COGS ÷ (1 − Target margin)

For information only, not financial, legal or tax advice. Results are estimates based on the numbers you enter. Last reviewed .

Frequently asked questions

Is advertising cost of goods sold?

Usually not; it is an operating expense. If you want profit per order after ads, the dropshipping profit calculator models ad cost per order directly.

How do returns affect margin?

Refunds reduce revenue and returned items may not be resellable. Use revenue after refunds and include the cost of items you could not resell.

Are the example numbers averages for online stores?

No. They are illustrative inputs chosen to show how the calculation works, not averages, benchmarks or market figures for online stores. Replace every field with your own numbers.

Related guides