Profit margin formula · 2026

How do you calculate profit margin?

Profit margin is revenue minus cost, divided by revenue. On the Classic Longboard, the base margin is 23.0% of $23,382. That figure is after product cost only. Shared expenses on the audit were $8,280 across 92 units, $90 each. Eighteen of those units were longboards, so $1,620 landed on that product. The true margin is 16.1%.

The calculator does this for a store total. It does not split the bill by product. The audit does.

Worked on the longboard

Four steps, from the audit.

Step Formula Longboard
Base margin (revenue − product cost) / revenue 23.0% of $23,382
Share the bill shared expenses / units sold $8,280 / 92 = $90
This product’s share $90 × units of this product 18 × $90 = $1,620
True margin (revenue − product cost − share) / revenue 16.1%

Questions

In short.

How do you calculate profit margin?

Subtract the cost from the revenue, then divide by the revenue. A base margin uses the product cost. A true margin also subtracts that product’s share of salaries, rent, and ads. The longboard moves from 23.0% to 16.1% when you do the second step.

How do you split a shared cost across products?

Add the salaries, rent, and ads for the period, divide by the units sold, and multiply by the units of that product. On the audit, $8,280 / 92 units is $90. The longboard sold 18 units, so its share is $1,620.

What is the difference between markup and margin?

Margin is profit divided by the selling price. Markup is profit divided by the cost. A 23% margin is a markup of about 29.9%, because 23 divided by 77 is about 0.299. Same dollars, two denominators.

Where can I calculate this for my own numbers?

Use the profit calculator for a store total. Connect Shopify when you want the same steps on each product. The audit page is the worked example.

Free ecommerce audit

We do ecommerce audits.

See which products stay profitable after salaries, rent, and ads, using a real two-week store example.

Open the free audit

Your store

Connect Shopify for free.

Magnorus reads paid orders and product cost, then subtracts fees, ads, and expenses you add. Free while you tell us what is missing.

Connect with Shopify