Calculate profit

How to Calculate Profit Margin

Profit margin is profit divided by revenue, shown as a percentage. Subtract all costs from the selling price to get profit, then divide by the selling price. For example, a $35 item that costs $20 in total has $15 profit and a 42.9% margin. Include fees, shipping and ads for net margin.
Last updated UABy Usama Afzal
Main calculator: Profit Margin Calculator

The formula

Profit margin = (price − total cost) ÷ price × 100

ExampleValue
Selling price$35.00
Total cost$20.00
Profit$15.00
Margin42.9%

Gross margin vs net margin

  • Gross margin uses only the cost of the product (COGS).
  • Net margin subtracts everything: platform fees, shipping, packaging, ads and overheads.

For online sellers, net margin per order is what decides whether you make money.

Finding the price for a target margin

Price = cost ÷ (1 − target margin)

To earn a 40% margin on a $20 cost: 20 ÷ 0.6 = $33.33.

Common mistakes

  • Using markup instead of margin (see margin vs markup)
  • Forgetting percentage fees that grow with price
  • Ignoring returns and ad spend

Try it in the profit margin calculator.

Steps

  1. Find the selling price
  2. Add up every cost for one sale
  3. Subtract costs from price to get profit
  4. Divide profit by price and multiply by 100

FAQ

What is a good profit margin for ecommerce?

It depends on your product, platform and ad costs. Work out the margin you need to cover overheads and growth, then price for it.

Is margin the same as markup?

No. Margin divides profit by price; markup divides profit by cost.

Related guides