Free ecommerce tool

See what you really make on every sale

The Ecommerce Profit Margin Calculator is a free tool from Ergora for online sellers that works out gross margin, net margin, profit per unit, markup and the price needed for a target margin, from the selling price, VAT, cost price, shipping, platform fees, payment fees and ad cost.

Enter your selling price, what the product costs you and the costs that come with each sale. See your gross and net margin, profit per unit and markup, and the price you would need to charge for the margin you want.

Your numbers, per unit sold

Platform fee
plus
Set to 2% plus 25p, Shopify's published UK online card rate on the Basic plan in November 2026. Edit to match your plan.
Payment fees
plus
Any other processing on top, such as PayPal or a separate card provider. Leave at zero if your platform fee already covers it.

The figures start as an example. Replace them with your own.

Profit per unit
£6.65
After product, shipping, fees and ads
Net margin
26.6%
Profit as a share of the net price (excl. VAT)
Gross margin
64%
Price minus cost price only
Markup
177.8%
Added on top of cost price
Price for a 25% net margin
£29.34
£24.45 excluding VAT, with the same costs, fees and ad spend

Where the money goes

Selling price
£30.00
VAT (20%)
-£5.00
Cost price
-£9.00
Shipping
-£3.50
Platform fees
-£0.85
Payment fees
£0.00
Ads
-£5.00
Profit per unit
£6.65

The formulas

Net price
selling price / (1 + VAT rate)
Margins are worked out on the price excluding VAT, because VAT is passed on to the tax office.
Fees
selling price x fee % + fixed fee (for platform fees and payment fees)
Card and marketplace fees are charged on what the customer pays, VAT included.
Gross margin
(net price - cost price) / net price
How much of the price is left after the product itself.
Profit per unit and net margin
profit = net price - cost price - shipping - fees - ad cost net margin = profit / net price
What you keep from one sale after every cost that comes with it.
Markup
(net price - cost price) / cost price
The same gap as gross margin, measured against the cost instead of the price. A 100% markup is a 50% gross margin.
Price for a target net margin
net price = (cost + shipping + ad cost + fixed fees) / (1 - target % - fee % x (1 + VAT rate)) price to charge = net price x (1 + VAT rate)
Solves for the price where profit is exactly your target share of the net price, with fees rising as the price rises.

Fee defaults are starting points; check your current rate with your platform. This leaves out fixed costs such as rent, wages and subscriptions, and returns unless you add them to the costs.

Track this on real orders

This works out one product at a time. In Ergora, the Ecommerce pack connects Shopify, WooCommerce or BigCommerce and keeps revenue, average order value and inventory in one place, and the Ads pack connects Google Ads and Meta read only and shows live spend and ROAS, so you can see what your ads cost against what you sell.

Try Ergora
50% off your first month.

What it works out

  • Gross margin: the share of the price left after the cost of the product
  • Net margin and profit per unit after shipping, platform fees, payment fees and ads
  • Markup on cost price
  • The price to charge for a target net margin, with and without VAT
  • VAT taken off the selling price, at the rate you set (20% to start, the UK standard rate)
  • Platform fee presets for the Shopify Basic card rate and a 15% Amazon referral fee, both editable
  • Every formula shown on the page

Gross margin hides the costs of selling online

A product that costs a third of its price looks like a healthy 67% margin, until VAT, delivery, card or marketplace fees and ad spend come off. The net margin is what pays for everything else in the business, and it is often much thinner.

Margin and markup are easy to mix up

Markup is measured against the cost, margin against the price. A 50% markup is only a 33% margin. Pricing on markup when you meant margin is one of the most common ways small stores end up underpricing.

Questions

What is the difference between margin and markup?

Margin is profit as a share of the selling price; markup is profit as a share of the cost. A product that costs 10 and sells for 20 (excluding VAT) has a 50% gross margin and a 100% markup.

What is a good profit margin for an online store?

It depends on the category, price point and how much you spend on ads, so there is no single answer. Work out your own net margin per sale here, then check it covers your fixed costs, such as wages, rent and subscriptions, across a month of sales.

Should margins be worked out with or without VAT?

Without. If you are VAT registered, the VAT in your price goes to HMRC, so margins are worked out on the price excluding VAT. Tick the VAT box if the price you enter includes it. Fees are still worked out on the full price, because platforms charge them on what the customer pays.

Are the Shopify and Amazon fees accurate?

They are starting points you can edit. The Shopify preset uses 2% plus 25p, Shopify's published UK online card rate on the Basic plan in November 2026, and the Amazon preset uses a 15% referral fee, which applies in many but not all categories. Rates change and differ by plan, country and category, so check your current rate and edit the figures to match.

How is the target price worked out?

It finds the price where profit is exactly your target share of the price excluding VAT, with the same costs and ad spend. Percentage fees rise with the price, so the calculator allows for them. If the percentage fees and the target add up to 100% or more, no price can reach it.

Is my data saved?

No. The calculator runs in your browser and nothing you type is sent anywhere.

Free, no account

Want more than one check?

Get a free read of your whole website by email: an agent looks at your brand, the site itself and what matters for your kind of business, and tells you what to fix first.

No account, no card. A read of your brand, site and trade by email, then two short follow-ups you can stop with one click.

Ecommerce pack

Want this done for you, continuously?

This is a one-off sum. In Ergora the Ecommerce pack connects Shopify, WooCommerce or BigCommerce and keeps revenue, orders, average order value and inventory on one screen, and the Ads pack connects Google Ads and Meta read only with live spend and ROAS, so the numbers stay current without a spreadsheet.

Explore the Ecommerce pack Explore the Ads pack

Guides that go deeper

More free tools