What this calculator does
Margin and markup are the two most commonly confused numbers in small business, and the confusion costs real money. They measure the same profit against different bases. Margin expresses profit as a share of the selling price. Markup expresses the same profit as a share of the cost price. A 50 per cent markup gives you a 33 per cent margin, not a 50 per cent one.
This calculator handles all three directions. Enter a cost and a selling price and it tells you both the margin and the markup. Enter a cost and the margin you want and it gives you the price to charge. Enter a cost and a markup and it does the same. Add your monthly volume and overheads and it also shows your net profit and how many units you need to sell just to cover fixed costs.
If you sell anything at all, from provisions to design services, getting this distinction right is worth more than almost any other pricing decision you will make.
How the calculation works
Gross profit is the selling price minus the cost price. That much is uncontroversial. The confusion starts with what you divide it by.
Margin divides profit by the selling price. It answers the question: out of every naira a customer pays me, how much do I keep. This is the figure that connects to revenue, and the one accountants and lenders expect when they ask about margin.
Markup divides profit by the cost price. It answers the question: by how much do I increase what I paid. This is the figure traders naturally use, because they start from what the goods cost them.
To work back from a target margin, the price is cost divided by one minus the margin. To apply a markup, the price is cost multiplied by one plus the markup. Those two formulas look similar and produce meaningfully different answers, which is the entire problem.
The formula
Gross profit = Selling price − Cost price
Margin (%) = (Gross profit ÷ Selling price) × 100
Markup (%) = (Gross profit ÷ Cost price) × 100
Price from a target margin = Cost ÷ (1 − Margin)
Price from a target markup = Cost × (1 + Markup)
Break even units = Fixed overheads ÷ Gross profit per unit
A worked example
A trader buys an item for ₦4,500 and wants a 40 per cent margin. The correct price is ₦4,500 divided by 0.60, which is ₦7,500. Profit per unit is ₦3,000, and as a share of the ₦7,500 sale that is exactly 40 per cent. Expressed against cost, the same ₦3,000 is a markup of 66.7 per cent.
Now suppose he applies a 40 per cent markup instead, because the two words feel interchangeable. The price becomes ₦6,300 and the profit ₦1,800. The margin is 28.6 per cent, not 40. On 120 units a month that mistake costs ₦144,000 in gross profit every single month.
With fixed overheads of ₦250,000, the difference is decisive. At the correct price he needs 84 units to break even. At the mistaken price he needs 139. One is a viable business and the other is a monthly struggle, and the only thing separating them is which number sat in the denominator.
Things worth knowing
Decide in margin, price in markup
Set your target as a margin because that is what connects to revenue and to what you actually keep. Then convert it to the equivalent markup for day to day pricing. The table above does the conversion for you, so there is no reason to guess.
Gross profit is not your profit
Rent, salaries, power, transport and data all come out of gross profit before anything reaches you. A healthy margin on a low volume can still lose money. Always run the overheads line, because that is the number that decides whether the business works.
Price for the real cost
Cost price is not only the invoice from the supplier. Transport, loading, breakage, spoilage and the cost of holding stock are all part of what a unit really costs you. Leaving them out inflates your apparent margin and hides the fact that you are underpricing.
Watch margin when costs move
When supplier prices rise, holding your selling price steady means your margin falls faster than the cost rose, because margin is measured against a price that has not moved. Recalculate whenever costs change rather than absorbing increases by default.
Common mistakes to avoid
- Applying a markup percentage when you meant a margin percentage.
- Treating gross profit as though it were net profit and ignoring fixed overheads.
- Leaving transport, breakage and storage out of the cost price.
- Setting one margin across every product when costs and competition differ by line.
- Failing to reprice when supplier costs rise, so the margin erodes unnoticed.
- Chasing volume at a margin that cannot cover overheads at any realistic quantity.
Frequently asked questions
What is the difference between margin and markup?
What is a good profit margin?
Why can a margin never reach 100 per cent?
Should I include VAT in these figures?
How do I price a service rather than a product?
Related calculators
Further reading on this site
If this calculator was useful, these sections of the site go deeper into the same subject.
- Career and business guidance
- Remote and freelance income
- Salary guides and market rates
- All 38 free calculators and tools
A note on accuracy. This calculator is provided for general information and planning. It performs arithmetic on the figures you supply and does not constitute financial, legal, tax, medical or academic advice. Rates, rules, fees and institutional policies change, and your own circumstances may differ from the assumptions used here. Verify anything important with the relevant institution or a qualified professional before acting on it. See our full disclaimer for more.