Profit Margin Calculator

Calculate gross profit margin, net profit margin, and markup percentage. Understand your business profitability.

Profit Margin Formulas

Gross Profit Margin

Gross Margin = (Revenue - COGS) / Revenue × 100%

Net Profit Margin

Net Margin = Net Income / Revenue × 100%

Markup Percentage

Markup = (Selling Price - Cost) / Cost × 100%
Revenue = Total sales income
COGS = Cost of Goods Sold
Net Income = Revenue minus all expenses

Margin vs. Markup

Margin and markup are often confused but calculated differently:

Example: $100 cost, $150 selling price

Margin ($150 - $100) / $150 = 33.3% Uses selling price as base
Markup ($150 - $100) / $100 = 50% Uses cost as base

Calculate Profit Margins

Profit Margin Examples

Example 1: Retail Store

Given: A clothing store sells a jacket for $120 that cost $75 to purchase.

Solution:

Revenue = $120, COGS = $75

Gross Profit = $120 - $75 = $45

Gross Margin = ($45 / $120) × 100% = 37.5%

Markup = ($45 / $75) × 100% = 60%

Example 2: Restaurant

Given: A restaurant has $50,000 monthly revenue, $15,000 food costs, and $25,000 operating expenses.

Solution:

Revenue = $50,000, COGS = $15,000, Expenses = $25,000

Gross Profit = $50,000 - $15,000 = $35,000

Gross Margin = ($35,000 / $50,000) × 100% = 70%

Net Profit = $50,000 - $15,000 - $25,000 = $10,000

Net Margin = ($10,000 / $50,000) × 100% = 20%

Example 3: Software Company

Given: A SaaS company generates $1,000,000 annual revenue with $200,000 in costs and $500,000 operating expenses.

Solution:

Gross Profit = $1,000,000 - $200,000 = $800,000

Gross Margin = 80%

Net Profit = $1,000,000 - $200,000 - $500,000 = $300,000

Net Margin = 30%

Software companies typically have high gross margins.

Example 4: Comparing Businesses

Given: Compare Business A ($100K revenue, $20K net profit) vs Business B ($200K revenue, $30K net profit).

Business A: Net Margin = $20K / $100K = 20%

Business B: Net Margin = $30K / $200K = 15%

Business A is more efficient at converting revenue to profit, even though Business B has higher absolute profit.

Example 5: Setting Prices

Given: A product costs $40 to make. You want a 25% profit margin. What should be the selling price?

Solution:

Using the formula: Selling Price = Cost / (1 - Margin)

Selling Price = $40 / (1 - 0.25)

Selling Price = $40 / 0.75 = $53.33

Verify: ($53.33 - $40) / $53.33 = 25%

About Profit Margins

Types of Profit Margins

Gross Profit Margin measures how efficiently a company produces its goods. It shows the percentage of revenue retained after accounting for the direct costs of production.

Net Profit Margin measures overall profitability after all expenses, including operating costs, interest, and taxes. This is the "bottom line" metric.

What is a Good Profit Margin?

Profit margins vary significantly by industry:

  • Software/Technology: 70-80% gross, 15-30% net
  • Retail: 25-35% gross, 2-5% net
  • Restaurants: 60-70% gross, 10-15% net
  • Manufacturing: 20-30% gross, 5-10% net
  • Consulting: 50-70% gross, 15-25% net

Margin vs. Markup

The key difference is the denominator used:

  • Margin divides by selling price (revenue)
  • Markup divides by cost

A 50% markup results in a 33.3% margin. Always clarify which method you're using when discussing pricing.

Why Profit Margins Matter

  • Compare efficiency across companies
  • Track performance over time
  • Set appropriate pricing strategies
  • Identify areas for cost reduction