Profit Margin Calculator
Calculate gross profit and profit margin from selling price and cost.
Calculator page content last updated: November 29, 2026. This is a content-update date, not a claim of independent professional review.
Example result with the default inputs
The server calculated this example from the default values in the form above, so it is visible even when JavaScript is off. Change the inputs and press Calculate for your own estimate.
37.50% profit margin
Profit margin uses selling price as its denominator. Markup uses cost as its denominator. The calculation excludes operating expenses, tax, fees and overhead unless included in the cost input.
How this calculator works
Profit margin shows the share of the selling price that remains after the cost entered. The calculator also reports markup, which compares profit with cost. The two percentages are related but use different denominators, so they should not be used interchangeably.
Formula: gross profit = selling price − cost. Profit margin = gross profit ÷ selling price × 100. Markup = gross profit ÷ cost × 100. The selling price must be greater than zero to calculate a margin. If the selling price is lower than cost, the calculator shows a negative margin and a loss rather than hiding it.
This basic gross-margin calculation does not include operating expenses, wages, rent, payment-processing fees, tax, spoilage or other overhead unless those amounts are included in the cost input. Use a fully loaded cost base when setting prices for a sustainable business.
Calculation method
Gross profit or loss equals selling price minus entered cost. Profit margin divides that amount by selling price; markup divides it by cost. The calculator reports both because they use different denominators. Operating overhead, tax and fees are excluded unless you include them in cost.
Inputs and how to use them
- Unit cost: Enter the value that matches this field for the period and scenario you are calculating.
- Selling price per unit: Enter the value that matches this field for the period and scenario you are calculating.
Worked example
A product sold for ₦80,000 with a unit cost of ₦50,000 produces ₦30,000 gross profit. Gross profit margin is 37.5% of the selling price, while markup is 60% of cost. They describe the same profit using different denominators.
Checks before using the result
Make the cost base complete for the question you are asking. A basic gross margin excludes operating expenses, salaries, logistics, payment fees, spoilage and tax unless they are included in cost. A positive gross margin does not automatically mean the business is profitable overall.
Frequently asked questions
Why is margin lower than markup for the same sale?
Margin divides profit by selling price; markup divides profit by cost. Because the selling price is larger than cost where there is a profit, the margin percentage is normally smaller.
Can the result show a loss?
Yes. If cost exceeds selling price, gross profit and margin are negative, showing that the sale is below the entered cost.
Who should use the profit margin calculator
Shop owners, wholesalers, service providers and freelancers use this page to see how much of each sale is profit. You enter unit cost and selling price, and the page returns gross profit, profit margin and markup. The two percentages answer different questions, which is why both are shown.
Margin versus markup
Profit margin divides profit by the selling price. Markup divides profit by cost. For the same product the markup is always larger than the margin, and confusing the two is one of the most common pricing mistakes in small business. A 50% markup is a 33.3% margin, and a 50% margin requires a 100% markup.
Worked examples
A product costs ₦50,000 and sells for ₦80,000. Gross profit is ₦30,000, margin is 37.50% and markup is 60.00%.
A product costs ₦70,000 and sells for ₦100,000. Gross profit is ₦30,000, margin is 30.00% and markup is 42.86%.
Working backwards. To earn a 25% margin on a cost of ₦60,000, the price must be cost divided by 0.75, which is ₦80,000. Setting the price at cost plus 25% (₦75,000) would give only a 20.00% margin.
What the figure leaves out
Gross profit does not include overheads, staff costs, rent, transport, marketing, taxes or the cost of returns and discounts. A healthy gross margin can still leave an unprofitable business if overheads are high. Use the break-even calculator to see how many units you must sell to cover fixed costs, and the company income tax calculator to think about tax on net profit.
Using the number in pricing
- Decide a target margin first, then compute the price that achieves it.
- Include delivery, packaging and payment charges in unit cost.
- If you give discounts, check the margin after the discount with the percentage calculator.
- If you charge VAT, compute the price before VAT here and add the tax with the VAT calculator.
More questions and answers
Is margin the same as markup?
No. Margin is profit as a percentage of price; markup is profit as a percentage of cost.
What margin should I aim for?
It depends on your sector, overheads and volume. Work out your break-even and required net profit, then price to achieve them.
Does the page handle discounts?
Enter the discounted selling price to see the margin after the discount.
Can profit be negative?
Yes. If the price is below cost the result shows a loss and a negative margin.
Who created and checked this calculator
Publisher: Jason Foundation publishes these independent financial and business calculators. The publisher identity is not a claim of professional accounting, tax or legal qualification, government affiliation or charitable status.
This page follows the editorial policy and the calculation methodology. No professional review is claimed unless a named reviewer, credential and review date appear above; always check the official references on this page for the period you need, and see the authors and reviewers page for published profiles.
View the public correction log for this calculator → · Report a suspected error →
Important limitations
This calculator provides a general estimate using the figures and assumptions displayed. It may not reflect every exemption, deduction, fee, law, contract term or individual circumstance. Check the applicable official source and consult a qualified professional before acting on a material tax or financial decision.