FREE ONLINE TOOL
Profit Margin & Markup Calculator
Understand your pricing, profit, and the difference between margin and markup.
Your inputs stay in this browser. No account or processing API needed.
Your results
Enter your cost and selling price, then calculate.
Profit
Per unit
Profit margin
Profit ÷ selling price × 100
Markup
Profit ÷ cost × 100
- Total cost
- Total revenue
- Total profit / loss
Percentages are rounded half up to 2 decimal places. Money calculations use exact cents. Negative profit means a loss.
How to calculate profit margin
- Enter the cost of one unit and its selling price.
- Enter how many units you sell at the same cost and price.
- Choose a currency label and calculate.
- Review margin, markup, and totals. Copy the results or download the CSV.
Example: cost 80, sell for 100
Your profit per unit is 20. Profit margin is 20 ÷ 100 × 100 = 20%. Markup is 20 ÷ 80 × 100 = 25%. At a quantity of 5, total cost is 400, revenue is 500, and profit is 100.
Why are margin and markup different?
Margin measures profit as a share of the selling price. Markup compares profit with the cost. They use different denominators, so a 25% markup produces a 20% margin in the example above.
Can this show a loss or break-even?
Yes. A cost of 100 and selling price of 80 gives a loss of 20 per unit, a margin of −25%, and a markup of −20%. Equal cost and price produce break-even.
What happens when cost or selling price is zero?
Zero amounts are allowed. Margin is not defined when selling price is zero; markup is not defined when cost is zero. The tool explains this instead of displaying infinity or an inaccurate percentage. Monetary totals still calculate.
Which costs are included?
Only the cost you enter. Include applicable fees, shipping, labour, or overhead in that figure if you want them reflected. The tool does not automatically add tax, fees, overhead, or currency conversion. Results apply to identical units sold at the same price and are not an estimate of your whole business’s net profit.
Is my pricing data private?
Calculations, copying, and CSV generation happen in your browser. NeatlyKit does not upload or save these entries. Changing an input clears the previous results and disables exports until you calculate again.