NinjaFunction (Ninja Function) logo

Profit Margin & Markup Calculator

Margin, markup, target selling price, and gross, operating and net margin in one free calculator.


Enter the selling price and what it costs you.

About This Tool

NinjaFunction's Profit Margin and Markup Calculator turns a price and a cost into the profit, the margin and the markup, finds the selling price needed for a target margin or markup, and works out gross, operating and net margin from a simple income statement. It explains why margin and markup are not the same. Everything runs in your browser.

๐Ÿ”‘ How to Use

  1. Choose a tab. Price and cost gives the margin and markup. Find the price works backwards from a target. Income statement gives gross, operating and net margin.
  2. Enter your figures.
  3. Read the result and the profit per unit.

๐Ÿ’ก Pro Tips

  • โœ” Price from the margin, not from the markup, if your goal is a share of the sales price.
  • โœ” Include every cost that belongs to the product: packaging, delivery, payment fees and returns.
  • โœ” Test a discount first. A 10% price cut on a 20% margin can wipe out half of your profit.
  • โœ” Add tax afterwards with the GST Calculator, and see the Break-Even Calculator for how many units you must sell.

Margin vs Markup in One Table

Markup on costEqual margin on priceCost 100 sells at
25%20.0%125
50%33.3%150
100%50.0%200
200%66.7%300

The Formulas

  • Margin = (Price โˆ’ Cost) รท Price ร— 100
  • Markup = (Price โˆ’ Cost) รท Cost ร— 100
  • Price for a margin = Cost รท (1 โˆ’ Margin)
  • Price for a markup = Cost ร— (1 + Markup)

Reading an Income Statement

LineAmountMargin
Revenue1,000100%
Cost of goods sold600
Gross profit40040%
Operating expenses250
Operating profit15015%
Interest and tax50
Net profit10010%

Why a Falling Margin Is an Early Warning

Sales can grow while profit shrinks. If your costs rise by 5% and you keep prices the same, a 20% margin falls to roughly 16%, and the owner often notices only when cash runs short. Calculating the margin every month, for each product line, shows which items earn their place on the shelf and which only look busy.

Gross margin is the first number to watch, because it shows whether the product itself pays. If it is healthy but net margin is poor, the problem is in running costs. If gross margin is thin, the problem is in price or purchasing.

What a Discount Really Costs

Take a product that costs 80 and sells for 100, a 20% margin. Offer 10% off and the price is 90, so the profit falls from 20 to 10 a unit: it has halved. To make the same total profit you must now sell twice as many units. That is why a discount that sounds small can hurt so much when margins are thin, and why it pays to check this before starting a sale.

Common Pricing Mistakes

  • Setting the price from the markup when the goal is a margin.
  • Leaving out costs such as returns, payment fees and delivery.
  • Copying a competitor's price without knowing their costs.
  • Never raising prices when your own costs go up.
  • Judging a product by sales instead of by profit per unit and per hour of work.

Frequently Asked Questions

What is the difference between margin and markup?

Margin is profit as a share of the selling price. Markup is profit as a share of the cost. For a product that costs 100 and sells for 150, the profit is 50, the margin is 33.3% and the markup is 50%.

Why do people mix them up?

Because both come from the same two numbers. The danger is pricing: a 50% markup is not a 50% margin. To get a 50% margin on a cost of 100 you must sell at 200, which is a 100% markup.

How do I find the price for a target margin?

Divide the cost by (1 โˆ’ margin). For a cost of 100 and a 25% margin, the price is 100 รท 0.75 = 133.33. The Find the price tab does this for you.

What is gross, operating and net margin?

Gross margin takes only the cost of goods off revenue. Operating margin also subtracts running costs such as rent and salaries. Net margin subtracts everything, including interest and tax.

What is a good profit margin?

It varies a lot by trade. Groceries often have net margins of 1% to 3%, restaurants 3% to 9%, software and consulting much higher. Compare with your own industry.

Should the cost include my own time?

If you count it as a real cost, yes. Many small businesses look profitable only because the owner is not paid. Include a fair wage to see the true margin.

Always FreeAll tools are 100% free to use.
No Sign UpNo registration or login required.
Blazing FastInstant results, always.