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.
The figures start as an example. Replace them with your own.
selling price / (1 + VAT rate)selling price x fee % + fixed fee (for platform fees and payment fees)(net price - cost price) / net priceprofit = net price - cost price - shipping - fees - ad cost
net margin = profit / net price(net price - cost price) / cost pricenet price = (cost + shipping + ad cost + fixed fees) / (1 - target % - fee % x (1 + VAT rate))
price to charge = net price x (1 + VAT rate)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.
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 ErgoraA 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.
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.
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.
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.
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.
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.
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.
No. The calculator runs in your browser and nothing you type is sent anywhere.
Free, no account
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.
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.