BUSINESS CALCULATORS

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.

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 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.

Page author: No individual byline is currently recorded for this calculator. The site does not invent an author identity or imply that the publisher has professional qualifications.

Professional review: No complete page-specific professional review is recorded. A general site profile, if any, is not evidence that this calculator or its current formula has been independently reviewed.

Source verification date: No page-specific source-check date is recorded. Review the official references linked on this page before relying on a tax or legal result.

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.