Profit Margin Calculator
Calculate gross margin, markup and profit from cost and price, or the selling price you need to hit a target margin or markup.
This guide is not yet available in your language and is shown in English.
Tool guide
What this tool does
The Profit Margin Calculator converts between cost, selling price, margin and markup. Enter cost and price to see both percentages, or enter a target margin or markup to get the price to charge, with totals for any number of units sold.
Margin and markup both describe profit, but against different bases. Margin is profit as a share of the selling price; markup is profit as a share of cost. An item that costs 600 and sells for 1,000 has a 40% margin but a 66.7% markup. Mixing the two up is a classic pricing mistake: adding a 40% markup to cost gives only a 28.6% margin, which may not cover overheads.
The calculator uses margin = (price − cost) ÷ price and markup = (price − cost) ÷ cost. To hit a target margin it sets price = cost ÷ (1 − margin), and for a markup price = cost × (1 + markup). Enter the number of units to see total revenue and profit. These are gross figures before overheads, tax and other operating costs.
How to use Profit Margin Calculator
- Choose what you know: cost and price, cost and target margin, or cost and markup.
- Pick the currency and enter the cost per unit.
- Enter the selling price, the target margin or the markup.
- Enter how many units you expect to sell.
- Read the margin, markup, selling price and profit per unit and in total.
Tips for better results
- Include shipping, packaging and payment fees in the cost to see your real margin.
- Retail and online marketplaces usually quote commission on price, so think in margins when listing.
- A small change in price has a large effect on profit when margins are thin.
- Compare your margin with industry norms; groceries run on low margins, software and services on high ones.
Common use cases
- Setting prices for products in a shop or e-commerce store.
- Checking a supplier’s quote against your target margin.
- Converting a wholesaler’s markup into a margin for reporting.
- Preparing a quotation for freelance or contract work.
Common mistakes to avoid
- Using markup and margin as if they were the same percentage.
- Leaving overheads out and treating gross margin as net profit.
- Setting a target margin of 100% or more, which is impossible unless the cost is zero.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit divided by selling price; markup is profit divided by cost. For the same item, markup is always the larger percentage when there is a profit.
How do I price for a 40% margin?
Divide the cost by 1 − 0.40. A 600 cost needs a price of 1,000 for a 40% margin.
How do I convert markup to margin?
Margin = markup ÷ (1 + markup). A 50% markup equals a 33.3% margin.
Is this gross or net margin?
Gross margin, based on the cost per unit you enter. Net margin also subtracts rent, salaries, marketing and tax.
Feedback & suggestions
Help us improve Profit Margin Calculator. We read every message.