Profit margin calculator and markup calculator
Enter any two of cost, price, profit, margin or markup, and the rest fills in. Then see your net margin after fees, the price for a target margin, and how much a discount really costs you.
Any two values
Calculated from the two values you typed last. Calculated fields are shaded.
After fees and extra costs
Price for a target margin
What a discount costs you
Margins for a whole product list
Edit any cell. Saved in this browser only. Export to CSV for Excel or Google Sheets.
How to calculate profit margin
Profit margin = (price − cost) ÷ price × 100. An item that costs $60 and sells for $100 makes $40 profit, a 40% margin. Gross margin uses only the cost of the product. Net margin also takes out fees, shipping and other per-sale costs. Use the "after fees" box for that.
Margin vs markup
Markup = (price − cost) ÷ cost × 100. The same $60 → $100 sale is a 66.7% markup but a 40% margin. Mixing them up is a classic pricing mistake: a "30% markup" gives only a 23% margin.
Margin to markup conversion
How to set a price from a target margin
Price = cost ÷ (1 − margin). For a 40% margin on a $30 cost: 30 ÷ 0.6 = $50. If a marketplace or payment processor takes a percentage, the target-margin box includes it: price = (cost + fixed costs) ÷ (1 − fee% − margin).
Why discounts hurt more than they look
A 20% discount on a 40% margin product cuts profit per sale in half, so you need to sell twice as many just to earn the same profit. The discount box works this out for your numbers.
Is my data private?
Yes. Everything is calculated in your browser, and your product list is saved only on this device. The calculator also works offline once loaded.