Profit Margin Calculator icon

Profit Margin Calculator

Calculate gross and net profit margin – or the price you need for a target margin.

100% FreeNo Signup RequiredPrivacy Friendly
Gross profit margin
—

Profit Margin Calculator

Enter your cost and selling price and the profit margin calculator shows gross profit, gross margin and markup. Add operating expenses and a tax rate to see operating profit and net margin, or switch modes to find the selling price that hits a target margin.

Margin is profit as a share of revenue, the number investors, lenders and marketplaces usually quote.

Last updated November 17, 2026 · Reviewed by the ToolsPoint team

How to Use Profit Margin Calculator

  1. Choose margin from price, or price for a target margin.
  2. Enter cost and revenue (and optionally expenses and tax).
  3. Read gross margin, markup and net margin.

Profit Margin Calculator Features

  • Two modes: margin from price, or price for a target margin.
  • Gross to net: add operating expenses and tax for net margin.
  • Markup shown too: so you can compare.
  • Currencies: USD, GBP, EUR, CAD, AUD and INR.
  • 100% free: no signup, no watermark and no daily limits.
  • Stays on your device: processing happens locally, so nothing is sent to a server.
  • Cross-platform: the same tool on your laptop, Chromebook, iPhone or Android phone.

Gross, Operating and Net Margin

MarginFormulaTells you
Gross(Revenue − COGS) ÷ revenueHow profitable the product itself is
Operating(Gross profit − operating expenses) ÷ revenueProfit from running the business
NetProfit after all expenses and tax ÷ revenueWhat you actually keep

Pricing for a Target Margin

Price = cost ÷ (1 − target margin). To earn a 40% margin on a $60 cost, the price is 60 ÷ 0.6 = $100. Adding 40% to the cost ($84) would give only a 28.6% margin – another reason not to mix up margin and markup.

Who Uses the Profit Margin Calculator?

  • Small business owners
  • E-commerce and Amazon sellers
  • Students learning accounting

Frequently Asked Questions

What is a good profit margin?
It depends on the industry. Grocery and retail often run net margins of 1–5%, while software and consulting can exceed 20%. Compare with businesses like yours.
What is the profit margin formula?
Profit margin = (revenue − cost) ÷ revenue × 100.
Why is my margin negative?
The selling price is lower than the cost, so each sale loses money.
Is margin or markup better for pricing?
Both work if you use them consistently. Margin makes it easier to compare profitability because it’s based on revenue.
How do I calculate profit margin in Excel?
Use =(B2-A2)/B2 with cost in A2 and revenue in B2, then format the cell as a percentage. For the price that hits a target margin use =A2/(1-C2) with the margin as a decimal in C2.
Does profit margin include taxes?
Gross and operating margin are before tax. Net margin is after all expenses including income tax – enter your tax rate to see it.
What is the difference between profit and margin?
Profit is the money amount you keep (for example $40). Margin is that profit as a percentage of revenue (40% of a $100 sale). Two products can earn the same profit but have very different margins.

Get new free tools in your inbox

One short email a month with new tools, guides and productivity tips. No spam — unsubscribe anytime.

By subscribing you agree to receive emails from ToolsPoint Online. See our Privacy Policy.