Free money tool

Profit Margin Calculator

Calculate gross profit margin, markup, selling price, or cost price. Works for products, services, and entire businesses — everything in your browser.

Runs locally in your browser. No data is sent to any server.

What is profit margin?

Gross profit margin is the percentage of revenue left after subtracting the cost of goods sold (COGS). For example, if you sell a product for $100 and it costs $50, your gross profit is $50 and your gross margin is 50%.

Markup is the percentage you add to your cost to arrive at the selling price. A 50% margin is a 100% markup — they're related but not the same. This calculator shows both.

Why use this?

How to use

  1. Margin calculator mode: Enter your cost price and selling price to see gross profit, margin %, markup %, and your break-even point.
  2. Price setter mode: Enter your cost and desired margin % to find the ideal selling price.
  3. Cost finder mode: Enter your target selling price and desired margin to determine the maximum you can spend.

Pricing tips

Frequently asked questions

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price (profit ÷ price). Markup is profit as a percentage of the cost (profit ÷ cost). A 50% markup on a $10 item gives a $15 price, which is a 33.3% margin.

How do I calculate gross margin?

Subtract the cost of goods from the selling price, then divide by the selling price. For a $25 product that costs $15 to make: ($25 − $15) ÷ $25 = 40% margin.

What margin is considered healthy?

It varies hugely by industry. Retail typically runs 25–50%, software 70–90%, while groceries may be 10–20%. Compare against your own industry's norms.

Can I enter percentages instead of costs?

Yes. The calculator accepts either cost and price, or cost and target margin, and derives the rest.

Related Money tools

Showing all 14 related money tools. Browse all tools →

Guides & resources

Browse all tools →