A profit margin calculator tells you what share of each dollar of sales your business actually keeps. Take a business with $240,000 in revenue and $180,000 in costs: it keeps $60,000 in profit, a 25% net profit margin. That percentage matters more than the dollar figure alone, because $60,000 looks very different on $240,000 of sales than on $2 million. This calculator works out your margin from your cost and selling price, shows the markup alongside it, and can work backwards to find the price you need for a target margin. Use it before you set a price, not after a slow month tells you something is wrong.

Profit Margin Calculator

Work out your margin, markup, and profit in seconds.

Enter a value below 100%.

Add this to see total profit across all units.

Profit Margin

0%

Profit per Unit

$0.00

Markup

0%

Cost Price

$0.00

Selling Price

$0.00

What Is Profit Margin?

Profit margin is your profit as a percentage of revenue, not a dollar amount. It answers one plain question: for every $100 that comes in, how much stays with the business? A 25% margin means $25 of every $100 stays; a 5% margin means only $5 stays, so a small cost rise can wipe it out.

Three margins matter, because each strips out a different layer of cost. Gross margin uses only the direct cost of what you sold. Operating margin also takes out rent, wages, and running costs. Net margin takes out everything left, including interest and taxes. Use gross margin for pricing, operating margin for how the business is run, and net margin for the bottom line. Margin alone never tells the whole story: it says nothing about sales volume or when cash arrives.

How to Use This Profit Margin Calculator

  1. Pick a mode at the top: Find Margin works out your margin from a cost and a selling price; Find Selling Price finds the price for a margin you choose.
  2. In Find Margin mode, enter your Cost Price (what one unit costs you) and your Selling Price (what you charge for it).
  3. In Find Selling Price mode, enter your Cost Price and your Desired Profit Margin as a percentage. It must be below 100%.
  4. To see totals, enter Units Sold (optional). Click Calculate to see your margin, profit per unit, markup, and prices. Click Reset to start over.

Enter a selling price above $0: with $0 in sales there is no revenue to divide by. Use real figures — a $2 error on a $40 item moves the margin by several points.

How the Calculation Works

The tool uses plain arithmetic — no tax rates or year-based figures — so nothing in it goes out of date:

Profit = Selling Price − Cost Price

Profit Margin = (Profit ÷ Selling Price) × 100

Markup = (Profit ÷ Cost Price) × 100

Selling Price for a target margin = Cost Price ÷ (1 − Margin ÷ 100)

Worked example: a shop buys a lamp for $40 and sells it for $60. Profit is $60 − $40 = $20. Profit margin is ($20 ÷ $60) × 100 = 33.3%. Markup is ($20 ÷ $40) × 100 = 50%. Same $20 profit, two very different percentages, because margin divides by the selling price and markup divides by the cost. Mixing them up is the most common pricing mistake there is: a 50% markup is not a 50% margin. A 25% margin on that $40 lamp needs a price of $40 ÷ (1 − 0.25) = $53.33, or $13.33 profit per lamp.

Example

A small coffee shop takes in $85,000 in a year. Its coffee, milk, cups, and pastries cost $34,000, rent, wages, and utilities cost $25,500, and interest and taxes come to $8,500.

Gross profit is $85,000 − $34,000 = $51,000, so gross margin is ($51,000 ÷ $85,000) × 100 = 60%. Operating profit is $51,000 − $25,500 = $25,500, so operating margin is 30%. Net profit is $25,500 − $8,500 = $17,000, so net margin is ($17,000 ÷ $85,000) × 100 = 20%. The owner keeps $20 of every $100 after everything is paid. If a supplier raises coffee prices by $4,000, net profit falls to $13,000 and net margin drops to about 15.3%.

Common Uses

  • Pricing a new product. Enter your cost and the margin you need to find the lowest price you can accept.
  • Comparing two products. A $20 item at 40% margin earns $8; a $100 item at 15% earns $15. Margin alone would pick the wrong one.
  • Tracking your business over time. Run the same figures each quarter — a margin drifting down is usually a cost problem.
  • Testing a discount. A 10% price cut on a 30% margin product leaves 22.2%, not 20% — check before you print the sign.
  • Checking a supplier price rise. Put the new cost in and see the margin before you agree.

One honest limit: margin says nothing about volume or cash. A 40% margin on 10 sales a month earns less than a 15% margin on 1,000 sales.

Frequently Asked Questions

What is a good profit margin?

There is no single good number — margins differ hugely by industry. A grocery store can run well on a low single-digit net margin because it sells a lot, while a software business can run far higher, so compare yourself with similar businesses.

What is the difference between profit margin and markup?

Margin divides profit by the selling price; markup divides profit by the cost. On a $40 cost and a $60 price, the profit is $20, the margin is 33.3%, and the markup is 50%. See both side by side with this profit margin calculator.

Can my profit margin be over 100%?

No, not while your costs are above $0 — margin is profit as a share of the selling price, so it stays below 100%. If your result looks over 100%, you probably entered the markup, or swapped cost and selling price.

Why is my margin falling when my sales are rising?

Sales and margin can move in opposite directions. The usual causes are costs rising faster than prices, heavy discounting, or selling more low-margin items — check each product line, not just the total.

Should I look at gross, operating, or net margin?

It depends on the question. Use gross margin when setting a price, operating margin for how efficiently the business is run, and net margin for what is left — if you only watch one, make it net margin.

How can I improve my profit margin?

Raise prices, cut costs, or drop your lowest-margin products — usually a mix of all three. Start with the smallest price rise customers will accept, but check total profit rises too, since a higher price can mean fewer sales.

Related Calculators

This calculator gives an estimate for education only, not financial, tax, or legal advice. Tax rules change, so check the current rate with the IRS before relying on any figure for a tax decision. For business record-keeping guidance, see the IRS small business pages at https://www.irs.gov/businesses/small-businesses-self-employed and the U.S. Small Business Administration at https://www.sba.gov/business-guide/manage-your-business.

Last updated: December 2026