All calculators
Free calculator

Shopify Profit Margin Calculator

Find out what you actually keep on every Shopify order. Enter your revenue, cost of goods, transaction fees, shipping and ad spend to get your gross margin, net margin and net profit in real time.

Your numbers

$

Gross sales for the period.

$
$
$
$
$

Apps, software, salaries allocated to this period.

Results

Gross profit
$6,500.00

Revenue minus COGS.

Gross margin
65.0%
Net profit
$2,700.00

What you actually keep after every cost.

Net margin
27.0%

Calculations run live in your browser. Nothing is stored.

What this measures

Profit margin tells you how much of each sales dollar you keep after costs. Gross margin looks only at the cost of the product itself; net margin accounts for everything — fees, shipping, ads and overhead.

For Shopify and DTC brands, net margin is the number that matters. A store can post strong revenue and a healthy gross margin while quietly losing money once ad spend and fulfillment are included.

The formula

Gross margin % = (Revenue − COGS) ÷ Revenue × 100. Net margin % = (Revenue − all costs) ÷ Revenue × 100.

Worked example

On $10,000 revenue with $3,500 COGS, gross profit is $6,500 and gross margin is 65%. Subtract $300 fees, $900 shipping, $2,000 ads and $600 overhead and net profit is $2,700 — a net margin of 27%.

Frequently asked questions

Stop calculating profit by hand.

Keelvia connects your store and ad accounts and shows your true net profit automatically — with an AI copilot for what to do next.

Free plan · no credit card required