Profit margin calculator
Calculate profit, margin on sales and markup on cost from a selling price and cost.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
Margin and markup describe the same profit from two angles, and mixing them up is one of the most common pricing mistakes. Margin is profit as a share of the selling price; markup is profit as a share of the cost. This calculator shows profit, margin and markup together from a selling price and a unit cost, so you can quote either figure with confidence.
It is useful for retailers, Etsy sellers, freelancers pricing materials and anyone checking whether a supplier’s "50% markup" leaves the margin they need.
How to use it
- Enter the selling price per unit, before sales tax.
- Enter your cost per unit: what you paid for the item or the materials and direct costs to make it.
- Choose the currency and calculate.
- Read profit per unit, the margin on the selling price and the markup on cost.
How the calculation works
Profit = price − cost. Margin = profit ÷ price × 100. Markup = profit ÷ cost × 100. A 50% markup always equals a 33.33% margin; a 50% margin needs a 100% markup.
profit = price − cost; margin = profit ÷ price × 100Worked example
You sell handmade candles for $45 and each costs $27 in wax, jars and wicks. Enter 45 and 27: profit is $18, the margin is 40% and the markup is 66.6667%. If a wholesaler asks for a 50% margin on your wholesale price, you know you must price above twice the cost.
Sample input and result
150 − 100 = 50; margin = 33.33%; markup = 50%.
Limitations
- Per-unit figures; overheads such as rent and wages are not allocated.
- The selling price must be above zero; costs can be zero.
- Sales tax is not part of price or profit.
Last updated:
Frequently asked questions
What is the difference between margin and markup?
Margin divides profit by the selling price; markup divides profit by the cost. The same $18 profit is a 40% margin and a 66.67% markup in the example.
Should cost include shipping and platform fees?
For a true margin, yes. Include every cost that varies with each sale. For marketplace fees, the Etsy fee calculator and eBay fee calculator help.
How do I price for a target margin?
Price = cost ÷ (1 − target margin ÷ 100). For a 40% margin on a $27 cost: 27 ÷ 0.6 = $45. The markup calculator does this for you.
Troubleshooting
The margin is negative.
Your cost is higher than your price, so each sale loses money. Check the cost figure includes only one unit.
Markup shows a very large number.
With a very small cost, markup grows quickly; for items that cost almost nothing, margin is the more meaningful figure.
My accountant’s gross margin is different.
Accounting gross margin uses total revenue and cost of goods sold for a period, including returns and discounts. This is a per-unit calculation.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Percentage calculator
Find a percentage of a number for discounts, allocations and proportional amounts.
Money & numbersPercentage change calculator
Measure change relative to the absolute original value. A zero starting value is undefined.
Money & numbersDiscount calculator
Calculate the saving and final price after one percentage discount.
Money & numbers