Profit Margin Calculator
Enter what an item costs you and what you sell it for to see your gross profit, profit margin and markup.
By CalcDrop | Updated October 2026
Results are estimates for general information only and are not financial, tax or legal advice.
How the profit margin calculator works
This profit margin calculator takes the cost and selling price of an item and shows the gross profit, the profit margin and the markup, so you can see the difference between them.
What is profit margin?
Profit margin shows how much of each sale you keep as profit. If you sell something for 100 and it cost you 60, your gross profit is 40, which is a 40% margin. It is the quickest way to see whether a product or service is worth selling at its current price.
Margin vs markup
These two are often confused, but they use different bases. Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. The same sale gives two different figures:
| Cost | Price | Profit | Margin | Markup |
|---|---|---|---|---|
| 60 | 100 | 40 | 40% | 66.67% |
This matters when you price products. A 40% markup does not give a 40% margin. It gives about 28.6%. If you want a target margin, work from the margin formula below.
The formulas
- Gross profit = selling price − cost
- Profit margin = gross profit ÷ selling price × 100
- Markup = gross profit ÷ cost × 100
- Price for a target margin = cost ÷ (1 − target margin)
For example, to earn a 30% margin on an item that costs 70, the price is 70 ÷ 0.70 = 100.
Using margin to set prices
Start with the margin your business needs to cover its overheads and leave something for you, then work back to a price. Our guide to margin vs markup shows how to do this with worked examples, including how discounts and marketplace fees reduce what you keep.
Common mistakes
- Treating markup as margin, which leaves you with less profit than planned.
- Leaving out packaging, delivery and payment fees.
- Ignoring discounts, which cut profit by far more than they cut the price.
- Comparing your margin with another business without knowing which measure it uses.
Frequently asked questions
What is a good profit margin?
It depends heavily on the industry. Retail and food businesses often work on thin margins, while software and services can run much higher. Compare yourself with similar businesses and not with a single universal number.
Is gross profit the same as net profit?
No. Gross profit only subtracts the direct cost of the item. Net profit also subtracts overheads such as rent, wages, marketing and tax, so it is always lower.
What costs should I include?
Include everything that goes directly into the product: purchase or materials cost, packaging, shipping you pay for, and platform or payment fees on each sale. Leaving these out makes your margin look better than it is.
How can I improve my margin?
Raise prices where customers will accept it, negotiate supplier costs, cut waste, or sell more of your higher-margin items.
This calculator is for general information and is not financial advice.