We use cookies to ensure you get the best experience on our website — learn more about privacy .
More Free Tools

Profit Margin Calculator

Enter your selling price and costs - product, shipping, payment fees, ad spend, and anything else - to see your real net profit and margin on every sale. Save your products and set your store-wide costs once, then watch every margin update as you adjust.

$
$

Enter what you charge, or plan to charge. We'll show your real profit after every cost below.

Other costs

$
$
%
$

Fee at this price: - calculated for you

Net margin
No products saved yet. Name a product, set its COGS, and hit save. It will live here and on the other calculator too.

Metorik tracks actual margin on every product you sell - real COGS, shipping, ad spend, fees, and operational costs synced from your store.

How to calculate profit margin for an ecommerce product

Profit margin is the percentage of each sale you actually keep after costs. To calculate it, subtract all of your per-sale costs from your selling price, then divide the result by the selling price:

Net profit margin = (Selling price - All costs) / Selling price x 100

The mistake most stores make is stopping at product cost. Your cost of goods sold (COGS) is only the start - shipping, payment processing fees, advertising, and packaging all come out of the same sale. A product that looks like it has a 60% margin on paper often nets closer to 30% once everything is counted.

Here's a worked example using the calculator's defaults. Say you sell a product for $100. The product costs you $40, shipping costs $8, you spend $15 on ads to win the sale, and your payment processor takes 2.9% + 30 cents ($3.20). Your true cost per sale is $66.20, leaving $33.80 of net profit - a 33.8% net margin, not the 60% the COGS alone would suggest.

Gross profit vs. net profit - what's the difference?

Gross profit is your revenue minus the cost of the product itself: in the example above, $100 - $40 = $60, a 60% gross margin. It tells you whether the product is fundamentally viable, but not whether you're making money.

Net profit is what's left after every per-sale cost - COGS, shipping, payment fees, advertising, and anything else you spend to fulfil an order. It's the number that actually lands in your bank account, and it's the one this calculator is built around. If you only ever track gross margin, scaling ad spend can quietly turn a profitable-looking product into a loss-maker.

What is a good profit margin for ecommerce?

There's no single answer, but as a rule of thumb: a net margin above 20% is healthy, 10-20% is workable but leaves little room for rising ad costs or returns, and anything under 10% is fragile - a small CPA increase or a shipping price rise can wipe it out. Many successful stores operate between 10% and 30% net, with gross margins of 50% or more giving them the headroom to spend on acquisition.

The more useful question is whether your margin can absorb change. That's why this calculator shows the effect of product cost, shipping, payment fees, advertising, and custom costs together, so you can see how quickly a profitable product can change.

Why payment fees matter more than you think

Payment processing fees are usually a percentage plus a fixed amount - Stripe and Shopify Payments charge 2.9% + 30 cents on a standard US plan, PayPal 3.49% + 49 cents. On a $100 order that's $3.20 to $3.98, which sounds small until you realise it's 10% or more of a typical net profit. This calculator computes the exact fee from your selling price, or your own custom rate if you've negotiated one, so the fee is never a guess.

Profit Margin Calculator FAQs

Can't find what you're looking for below? Read our Help Docs

How do I calculate net profit per sale?

Subtract every per-sale cost - product cost (COGS), shipping, payment processing fees, ad spend, and other costs like packaging - from your selling price. The remainder is your net profit. Divide it by the selling price and multiply by 100 for your net profit margin. For example, a $100 sale with $40 COGS, $8 shipping, $15 ad cost, and $3.20 in payment fees leaves $33.80 net profit, a 33.8% net margin.

What costs should I include in a profit margin calculation?

At minimum: cost of goods sold (COGS), shipping and packaging, payment processing fees, and advertising cost per sale (total ad spend divided by orders). Stores with marketplace fees, pick-and-pack costs, or a returns allowance should include those as well.

What's the difference between margin and markup?

Margin is profit as a share of the selling price; markup is profit as a share of cost. A product bought for $50 and sold for $100 has a 100% markup but a 50% margin. If you're setting a price rather than analysing one, use a selling price calculator that works backwards from either.

What is a good profit margin for ecommerce?

As a rule of thumb, a net margin above 20% is healthy, 10-20% is workable but leaves little room for rising ad costs or returns, and under 10% is fragile. Many successful ecommerce stores operate between 10% and 30% net margin, with gross margins of 50% or more.

Is shipping a cost or revenue?

Potentially both. What you pay your carrier is a cost. What the customer pays you for shipping is revenue. If you charge for shipping, add it to your selling price and enter your carrier cost as the shipping cost.

How is a profit calculator different from tracking real profit in my store?

A calculator works on one product at a time with estimated numbers. Metorik calculates actual profit on every real order automatically, using true COGS, shipping costs, payment fees, and ad spend synced from Google, Meta, and your store.

Three people from the Metorik support team

Still have questions?

Can't find the answer you're looking for? Chat to our friendly team.

Get in touch