Skip to content
FeeCalc

Browse all tools

Profit Margin Calculator

Profit margin is profit divided by revenue, times 100. $500 of sales that cost $320 to supply leaves a gross profit of $180, a 36% gross margin.

Updated

Calculate Gross Profit Margin and Net Profit Margin for your business

Profit margin formulas

Gross Profit = Revenue - COGS

Gross Profit Margin = (Gross Profit ÷ Revenue) × 100%

Net Profit = Revenue - COGS - Operating Expenses

Net Profit Margin = (Net Profit ÷ Revenue) × 100%

How to calculate profit margin: a worked example

Revenue: $50,000. Cost of goods sold: $32,000. Operating expenses: $9,000.

  1. Gross profit = $50,000 − $32,000 = $18,000.
  2. Gross profit margin = $18,000 ÷ $50,000 × 100 = 36%.
  3. Net profit = $50,000 − $32,000 − $9,000 = $9,000.
  4. Net profit margin = $9,000 ÷ $50,000 × 100 = 18%.

The gap between the two margins, 36% gross against 18% net, is the operating expenses. Gross margin shows how the product is priced against what it costs to make or buy. Net margin shows what is left after running the business around it.

The IRS works out gross profit the same way for a sole proprietor's Schedule C: net receipts minus the cost of goods sold, as set out in Publication 334.

Margin vs markup: what is the difference?

Margin is profit as a share of the selling price. Markup is profit as a share of your cost. Buy at $20 and sell at $30, and the $10 profit is a 50% markup but a 33.3% margin.

margin = markup ÷ (1 + markup)
markup = margin ÷ (1 − margin)

Bar chart of markup against profit margin: a 25% markup is a 20.0% margin, a 50% markup is a 33.3% margin, a 100% markup is a 50.0% margin, a 150% markup is a 60.0% margin, a 200% markup is a 66.7% margin.
Doubling the markup does not double the margin, and the margin never reaches 100%.

A margin can never reach 100%, however high the markup, because the cost is always part of the price. The pricing calculators page shows the price you need for a target margin.

Profit margin after marketplace fees

A margin worked out from the price alone ignores what the platform keeps. An item that cost $15.00 and sells for $50.00 has a 70% margin before fees. After fees it is 70% on Vinted and 50% on Poshmark.

Bar chart of the profit margin on a $50 sale of an item that cost $15: 70.0% before fees, then Vinted 70.0%, Depop 65.8%, Mercari 60.0%, Etsy 59.6%, eBay 55.6%, Poshmark 50.0% after each marketplace's fees.
Fees take up to 20 points off the margin on this sale, depending on where it sells.

Enter your own sale in the marketplace fee comparison to see the margin on six platforms at once. For one platform's categories and options, use the eBay fee calculator or the Etsy fee calculator.

Gross margin vs net margin: why operating expenses are optional

Leaving Operating Expenses blank does not count as zero costs. The calculator then shows the gross margin only and skips the net figures.

That suits businesses that do not split the cost of goods from overhead, and quick checks where running costs do not matter yet.

What is a good profit margin?

The calculator labels a gross margin under 20% as low, from 20% up to 50% as moderate and 50% or more as high. These are the tool's own rough bands, not an industry standard.

Margins differ a lot between industries. In Aswath Damodaran's data for US companies (January 2026), general retail had a gross margin of 33.18% and a net margin of 5.61%; grocery and food retail had 26.31% and 1.32%. Compare your result with businesses like yours.

Questions about profit margin

What is the formula for profit margin?

Profit margin = profit ÷ revenue × 100. Use gross profit (revenue minus the cost of goods sold) for the gross margin, and net profit (after operating expenses as well) for the net margin.

How do I convert markup to margin?

Divide the markup by one plus the markup: a 50% markup is 0.5 ÷ 1.5 = 33.3% margin. To go the other way, divide the margin by one minus the margin: a 40% margin needs a 66.7% markup.

What price gives a 30% margin?

Divide the cost by one minus the margin: an item that cost $20 needs $20 ÷ 0.7, about $28.57. If the item sells on eBay, the fees come out of the price first, so the same 30% margin needs $36.18 in most categories.

Can a profit margin be negative?

Yes. When costs are higher than revenue the profit is negative, and so is the margin. The calculator then tells you the sale is a loss.

Sources