Profit Margin Calculator
Calculate gross margin and markup from cost and price, or find the selling price needed to reach a target margin or markup.
Reviewed 23 November 2026 · Free · No account needed
How to use
- Choose what you know: the selling price, a target margin or a target markup.
- Enter your cost per item and the matching value.
- Read the margin, markup, selling price and profit per item.
- Switch the mode to work backwards from a target to the price you should charge.
Example
Input: Cost 40, price 65
Output: Profit 25 · margin 38.46% · markup 62.5%
How it works
Margin and markup both measure profit, but against different bases. Margin divides profit by the selling price; markup divides it by the cost.
Profit = price − cost. Margin % = profit ÷ price × 100. Markup % = profit ÷ cost × 100. Price from margin = cost ÷ (1 − margin). Price from markup = cost × (1 + markup).
Limits and edge cases
- It calculates gross margin only; overheads, tax and discounts are not deducted.
- It handles one item at a time, not a basket with different margins.
- The result is in whatever currency unit you enter; none is assumed.
- A gross margin of 100% or more is impossible and is rejected.
- A target margin must be below 100%, because the price would be infinite.
- A cost of zero makes markup undefined, so the tool shows 0%.
- A markup of 50% equals a margin of only 33.3%.
Privacy
Everything is calculated locally in your browser. The numbers you enter are never sent to a server or stored.
About this page
Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.
Guides that use Profit Margin Calculator
Related tools
Questions about Profit Margin Calculator
What is the difference between margin and markup?
Margin is profit as a share of the selling price, while markup is profit as a share of the cost. The same sale shows a higher markup than margin: cost 40 and price 65 is a 62.5% markup but a 38.46% margin. Mixing them up is a common pricing mistake.
How do I price an item for a 40% margin?
Divide the cost by 0.60. A cost of 60 needs a price of 100 for a 40% margin. Choose the target margin mode in this tool and it does the sum for you.
Is gross margin the same as net profit margin?
No. Gross margin only subtracts the direct cost of the item. Net margin also subtracts overheads such as rent, wages, marketing and tax, so it is always lower.
What is a good profit margin?
It varies by industry. Retail and food often work on gross margins of 25 to 50%, software and luxury goods can exceed 70%, and distribution can be below 20%. Compare with businesses like yours.