Profit Margin Calculator

Work out gross profit, margin and markup, the price for a target margin, the maximum cost you can pay, and net margin after fees.

What do you know?

Fees and extra costs per unit (optional)

In short

Profit margin is profit divided by the selling price. A product that costs $12 and sells for $30 makes $18, a 60% margin. Use the calculator above in three modes: cost and price, cost and target margin (gives the price), or price and target margin (gives the maximum cost), then add fees and per-sale costs for net margin.

On this page
  1. How to use the calculator
  2. How to calculate profit margin
  3. Margin vs markup
  4. What is a good profit margin?
  5. Margins by business model: worked examples
  6. Who uses this calculator
  7. Best practices
  8. How to raise a thin margin
  9. Troubleshooting
  10. Common mistakes

Margin is the share of the selling price you keep as profit. It is the number that tells you whether a product can pay for ads, returns and your time. This calculator works it out three ways, depending on what you already know, and can subtract payment fees and other per-unit costs so you see the net margin as well as the gross one.

How to use the calculator

Pick the mode that matches your question:

  1. Cost and price. Enter what the product costs you and what you sell it for. You get gross profit, margin percentage and markup percentage.
  2. Cost and target margin. Enter your cost and the margin you want. You get the selling price you need.
  3. Price and target margin. Enter the selling price the market will accept and the margin you want. You get the maximum you can pay for the product.

Then, optionally, add a payment fee as a percentage plus a fixed amount (2.9% + $0.30 is filled in, which matches Shopify Basic and Stripe's standard US online rate), and extra costs per unit: shipping, packaging, ad cost per sale and other costs. The result then shows net profit and net margin next to the gross figures. In the two target modes, a note also tells you the price, or the maximum cost, that keeps your target margin after those extra costs.

How to calculate profit margin

ResultFormula
Gross profitPrice โˆ’ Cost
Margin(Price โˆ’ Cost) รท Price ร— 100
Markup(Price โˆ’ Cost) รท Cost ร— 100
Price for a target marginCost รท (1 โˆ’ Margin)
Maximum cost for a target marginPrice ร— (1 โˆ’ Margin)
Payment feePrice ร— Fee % + Fixed fee
Net profitPrice โˆ’ Cost โˆ’ Payment fee โˆ’ Extra costs
Net marginNet profit รท Price ร— 100

Worked example: gross to net

You buy a product for $12 and sell it for $30. Gross profit is $18, the margin is 60% ($18 รท $30) and the markup is 150% ($18 รท $12).

Now add a payment fee of 2.9% + $0.30, which is $1.17 on $30, plus $4 shipping, $1 packaging and $5 ad cost per sale. Net profit is $30 โˆ’ $12 โˆ’ $1.17 โˆ’ $10 = $6.83, a net margin of about 22.8%. The same product that looked like a 60% margin keeps less than a quarter of the price.

Switch to cost and target margin with 40%: the gross price is $12 รท 0.60 = $20. But with the same fees and $10 of extra costs, the note says you need about $39.05 to keep a 40% net margin: ($12 + $0.30 + $10) รท (1 โˆ’ 0.40 โˆ’ 0.029).

Quick answers to common margin questions

  • What is a 30% margin on $100? If $100 is the price, the profit is $30 and the cost $70. If $100 is the cost, the price for a 30% margin is $100 รท 0.70 = $142.86.
  • How do I price for a 70% margin? Divide the cost by 0.30. A $9 cost needs a $30 price.
  • What is the most I can pay for a $50 product at a 40% margin? $50 ร— 0.60 = $30.

Which extra costs to enter

Enter costs that happen once per unit sold. Shipping you pay the carrier, the box and filler, a printed insert, and the ad spend it takes on average to get one sale all belong here. To find ad cost per sale, divide the ad spend for the product over a period by the number of units it sold in that period. Monthly costs such as apps, software and rent are fixed costs. Leave them out here and cover them with the break-even calculator, which tells you how many sales you need to pay for them.

Margin vs markup

Margin and markup describe the same profit from two directions, which is why they are so often confused. Margin divides by the price, markup divides by the cost, so markup is always the bigger number.

CostPriceProfitMarkupMargin
$10$12.50$2.5025%20%
$10$15$550%33.3%
$10$20$10100%50%
$10$25$15150%60%
$10$40$30300%75%

Markup can go above 100%. Margin cannot reach 100% unless the product costs nothing, which is why the calculator refuses a target margin of 100%. To convert quickly, use margin = markup รท (1 + markup) and markup = margin รท (1 โˆ’ margin), with both written as decimals. The markup calculator has a full conversion table.

Warning: Adding 50% to your cost does not give you a 50% margin. It gives you 33.3%. Supplier quotes, pricing rules and spreadsheets mix the two terms all the time, so check which one is meant.

What is a good profit margin?

There is no single number, because it depends on the product, the channel and how much you spend to win each sale. A few useful reference points for online sellers:

  • Gross margin for physical products sold online is often in the 40% to 70% range, because fees, shipping, returns and ads still have to come out of it. Handmade and print on demand sellers often see the lower end; private label brands aim higher.
  • Net margin after per-sale costs is the number that matters. If it is under about 10% before fixed costs, a price rise, cheaper shipping or lower ad cost per sale is usually needed.
  • Is 40% high? As a gross margin for an ad-driven store, 40% is thin. As a net margin after fees, shipping and ads, it is excellent.

Whatever your target, work from the net figure, and leave room for returns and fixed costs.

Margins by business model: worked examples

ModelPriceProduct costFees, shipping, ads per saleGross marginNet margin
Dropshipped gadget, paid ads$39.99$11.50$1.46 fee, $0 shipping (in cost), $14 ads71.2%32.6%
Print on demand T-shirt$28.00$12.95 plus $4.75 shipping$1.11 fee, $3 ads36.8%22.1%
Handmade candle$24.00$6.00 materials and labor$1.00 fee, $5.50 shipping, $1 packaging75.0%43.8%
Private label skincare$45.00$7.00$1.61 fee, $6 shipping, $12 ads84.4%40.9%

In the print on demand row, the shipping charged by the provider is part of the product cost, which is why the gross margin is lower. These are illustrations using a 2.9% + $0.30 fee; plug in your own numbers. The pattern holds, though: a high gross margin can hide a thin net margin once ads enter the picture, and handmade goods with no ad spend often keep the most.

Who uses this calculator

  • Shopify and WooCommerce sellers setting prices for a new product or checking a supplier quote.
  • Dropshippers checking whether a product can survive its ad cost per sale.
  • Etsy and handmade sellers turning material and labor cost into a price.
  • Wholesale buyers using price and target margin to find the most they can pay a supplier.
  • Freelancers and service sellers checking the margin on a quote.

Best practices

  • Set prices from margin, not from cost plus a round number. Decide the net margin you need, then work backwards to the price.
  • Include every per-unit cost. For platform-specific fees, use the Shopify fee calculator or the Etsy fee calculator.
  • Check margin after discounts. A 20% off sale on a 40% margin product cuts the margin to 25%. Run the sale price through the calculator, or use the discount calculator.
  • Know your floor. The price where net profit hits zero is your break-even.

How to raise a thin margin

If the net figure is too low, these levers usually help, roughly in order of effort:

  1. Raise the price in small steps and watch conversion. A $2 rise on a $30 product adds about 6 points of margin.
  2. Raise average order value with bundles or a free shipping threshold, so fixed per-order costs are spread over more items.
  3. Cut ad cost per sale by pausing ads for products that cannot carry them.
  4. Negotiate or switch suppliers once volume justifies it.
  5. Trim packaging and shipping with lighter mailers or regional carriers.

Rerun the calculator after each change to see which lever moved net margin most.

Troubleshooting

  • "A margin must be below 100%". Only a free product has a 100% margin. Enter a lower target.
  • "No price reaches this net margin". The target margin plus the fee percentage is 100% or more. Lower the target or the fee.
  • Markup shows n/a. The cost is zero, so markup cannot be calculated.

Common mistakes

  • Quoting gross margin as profit. A 60% gross margin can be a 20% net margin, or a loss, once fees, shipping and ads are counted.
  • Forgetting the fixed part of the payment fee. $0.30 is 3% of a $10 sale on its own.
  • Using averages for ad cost. Ad cost per sale differs by product. Use the figure for the product you are pricing when you have it.
  • Updating prices one at a time. Once you know the prices that hit your target, AM Jarvis Bulk Edit Pro changes prices and compare-at prices across many Shopify or WooCommerce products, with a preview before applying and one-click revert.

Everything is calculated in your browser as you type. Nothing you enter is stored or sent anywhere.

Frequently asked questions

How do I calculate profit margin?

Subtract the cost from the selling price to get gross profit, divide the profit by the selling price and multiply by 100. A product that costs $12 and sells for $30 has an $18 profit and a 60% margin. For net margin, also subtract payment fees, shipping, packaging and ad cost per sale before dividing.

What is the difference between margin and markup?

Both measure the same profit, but margin divides it by the selling price and markup divides it by the cost. A $10 product sold for $20 has a 100% markup and a 50% margin. Markup is always the larger number, and margin can never reach 100% unless the cost is zero.

How do I find the selling price for a target margin?

Divide the cost by one minus the target margin written as a decimal. For a 40% margin on a $15 cost, the price is $15 รท 0.60 = $25. The calculator does this in the cost and target margin mode, and also shows the higher price needed to keep that margin after fees and extra costs.

What is a 30% margin on $100?

If $100 is your selling price, a 30% margin means $30 profit and a $70 cost. If $100 is your cost, the price for a 30% margin is $100 รท 0.70 = $142.86. A 30% markup on $100 would be $130, which is only a 23.1% margin.

What is a good profit margin for an online store?

It depends on the product, channel and ad spend, so there is no single right number. Many online sellers aim for a gross margin of 40% to 70% so that net margin, after payment fees, shipping, packaging and ad cost per sale, stays clearly positive and leaves room for returns and fixed costs.

What is the difference between gross and net margin?

Gross margin only subtracts the product cost from the price. Net margin, as this calculator shows it, also subtracts per-sale costs you enter: payment fees, shipping, packaging, ad cost per sale and other costs. Gross margin shows whether the product is priced well against its cost. Net margin shows whether each sale makes money.

Is a 40% profit margin good?

As a net margin after fees, shipping and ads, 40% is very strong. As a gross margin on a product you advertise, it is on the thin side, because a $5 to $10 ad cost per sale can take most of it. Check both figures in the calculator.

How do I calculate net profit margin?

Take the selling price, subtract the product cost and every per-sale cost (payment fee, shipping, packaging, ad cost per sale), then divide what is left by the price. A $30 sale with $12 cost, $1.17 in fees and $10 of other costs leaves $6.83, a 22.8% net margin.

Should payment fees be included in margin?

Not in gross margin, which is price minus product cost. But include them in net margin, because they grow with every sale. A 2.9% + $0.30 fee takes $1.17 from a $30 sale, which is almost 4 percentage points of margin.