Profitability · Free calculator

Profit Margin Calculator (Gross, Net & Markup)

Enter revenue and costs for a product, a project or a whole period. You get gross margin, net margin and markup side by side, because they are easy to mix up.

Materials, direct labor, payment fees: costs that scale with each sale.

Rent, software, salaries, marketing. Used for net margin.

We will show the price needed at your current cost.

Your result

Gross margin40%
Gross profit
$4,000.00
Net margin
20%
Net profit
$2,000.00
Markup on cost
66.67%
Price needed for 50% gross margin
$12,000.00

Estimate for information only, not financial, tax or legal advice.

How this calculator works

  1. Gross profit = revenue − cost of goods sold. Gross margin divides that by revenue.
  2. Net profit also subtracts operating expenses. Net margin = net profit ÷ revenue.
  3. Markup divides gross profit by cost instead of revenue, which is why a 50% markup is only a 33% margin.

Formulas

  • Gross margin % = (Revenue − COGS) ÷ Revenue × 100
  • Net margin % = (Revenue − COGS − Opex) ÷ Revenue × 100
  • Markup % = (Revenue − COGS) ÷ COGS × 100
  • Price for target margin = COGS ÷ (1 − Target margin)

For information only, not financial, legal or tax advice. Results are estimates based on the numbers you enter. Last reviewed .

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 cost. The same $50 profit on a $100 cost is a 50% markup but a 33.3% margin on the $150 price.

What is a good profit margin for a small business?

It varies widely by industry. Services and software usually run higher gross margins than retail or food. Compare against businesses like yours rather than a single benchmark.

Should I include my own salary in operating expenses?

If you want net margin to reflect the true health of the business, yes: include a fair salary for the work you do.