Skip to content
minibusinessideas

Free tool · Money & pricing

Profit margin calculator

Profit margin is profit divided by revenue. Enter your sales and costs to see gross margin, net margin and the matching markup — or switch tabs to find the price that hits a target margin.

Gross profit margin

40.0%

You keep $20,000 of every $50,000 in sales after direct costs.

Gross profit
$20,000
Gross margin
40.0%
Markup on COGS
66.7%

Formulas

  • Gross margin = (Revenue − COGS) ÷ Revenue × 100
  • Net margin = Net profit ÷ Revenue × 100
  • Price for a target margin = Cost ÷ (1 − margin)

Gross margin vs net margin

Gross margin only subtracts the direct cost of what you sold — ingredients, inventory, materials, the contractor you paid to do the job. It tells you whether each sale is worth making.

Net margin subtracts everything: rent, software, ads, insurance, your own salary, interest and tax. It tells you whether the whole business is worth running. A bakery can show a healthy 65% gross margin on cookies and still have a 3% net margin once the lease and staff are paid.

Worked example

A candle maker sells $50,000 of candles in a year. Wax, wicks, jars, labels and packaging cost $18,000, so gross profit is $32,000 and gross margin is 64%.

Market stall fees, Etsy fees, a website and photography add up to $14,000, and $3,000 goes to taxes. Net profit is $15,000, a 30% net margin. Before any of that, the owner should ask: is $15,000 a fair return on the hours put in?

What is a good profit margin for a small business?

There is no universal number — it depends almost entirely on the business model:

  • Service and software businesses have low direct costs, so gross margins are often high and the real question is net margin after your time.
  • Retail, food and product businesses carry inventory and spoilage, so gross margins are lower and volume matters more.
  • Anything you resell (dropshipping, wholesale, reselling) lives or dies on a few percentage points.

The more useful benchmark is your own trend: compare this quarter to last, and compare your margin to what competitors charge for the same thing.

Ways to raise your margin

  • Raise prices on your best-selling or most-loved offers first; customers who love them are least price-sensitive.
  • Bundle low-cost add-ons that customers value (a gift box, a priority slot, a maintenance check).
  • Cut the cost of goods by buying in larger quantities once demand is proven.
  • Drop products or services with thin margins that eat time.
  • Track payment and platform fees as part of COGS — they quietly take 3–15% of revenue.

Frequently asked questions

How do I calculate profit margin?

Subtract costs from revenue to get profit, divide profit by revenue and multiply by 100. For gross margin use only direct costs (COGS); for net margin subtract every expense, including overhead and taxes.

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. A product that costs $60 and sells for $100 has a 40% margin but a 66.7% markup.

Is a 20% profit margin good?

A 20% net margin is strong for most small retail and food businesses and modest for software or expert services, where direct costs are low. Compare against businesses with the same model rather than an overall average.

How do I price a product for a 50% margin?

Divide the cost by (1 − 0.50). A product that costs $20 needs a $40 price for a 50% margin, which is a 100% markup.