CalculatorMasters

Gross Profit Margin Formula

Learn how gross profit, gross profit margin, and markup are calculated from revenue and cost of goods sold.

The gross profit margin formula helps you measure how much of your sales revenue remains after direct costs. It is useful for pricing reviews, product analysis, and tracking profitability before overhead and other operating expenses.

  • 100% Free
  • No Sign-Up Required
  • Private & Secure
  • Mobile Friendly

Gross Profit Margin

Gross Profit Margin = ((Revenue - Cost of Goods Sold) / Revenue) × 100

Where:

Subtract cost of goods sold from revenue to get gross profit, then divide that gross profit by revenue and multiply by 100 to express it as a percentage.

Variables Explained

VariableWhat It MeansUnit
revenue - RevenueTotal sales revenue for the period being analyzed.currency
cogs - Cost of Goods SoldDirect costs tied to the goods or services sold during the same period.currency
grossProfit - Gross ProfitAmount left after subtracting cost of goods sold from revenue.currency
grossMargin - Gross Profit MarginGross profit expressed as a percentage of revenue.percent
markup - MarkupGross profit expressed as a percentage of cost of goods sold.percent

Step-by-Step Calculation

1

Calculate gross profit

Start by subtracting direct costs from total revenue to find the gross profit amount.

grossProfit = revenue - cogs

2

Calculate gross profit margin

Divide gross profit by revenue and convert the result to a percentage to see how much of each sales dollar is left after direct costs.

grossMargin = (grossProfit / revenue) * 100

3

Calculate markup

Divide gross profit by cost of goods sold to show how much profit was added relative to direct cost.

markup = (grossProfit / cogs) * 100

4

Interpret the results together

Use the currency result for total profit, the margin percentage for profitability relative to sales, and the markup percentage for pricing relative to cost.

profitabilityView = grossProfit + grossMargin + markup

Example: Monthly gross profit margin calculation

Revenue$10,000
Cost of Goods Sold$6,000
1

Calculate gross profit

$10,000 - $6,000

$4,000

2

Calculate gross profit margin

($4,000 / $10,000) × 100

40.00%

3

Calculate markup

($4,000 / $6,000) × 100

66.67%

Final Result

Gross profit is $4,000, gross profit margin is 40.00%, and markup is 66.67%.

Try the Calculator →

Assumptions

  • Revenue and cost of goods sold are measured for the same accounting period.
  • Cost of goods sold includes direct costs only, not overhead, payroll unrelated to production, interest, or taxes.
  • Revenue and cost figures are entered accurately and use the same currency.
  • Revenue is greater than zero when calculating gross margin, and cost of goods sold is greater than zero when calculating markup.

Limitations

  • !The formula does not show net profit because it excludes operating expenses and other indirect costs.
  • !Results can be misleading if cost of goods sold is incomplete or classified inconsistently.
  • !A strong gross margin does not always mean strong overall business profitability.
  • !Markup cannot be calculated meaningfully when cost of goods sold is zero.

Common Mistakes to Avoid

1

Using expenses like rent, admin salaries, or marketing costs in cost of goods sold when they are not direct costs.

2

Comparing revenue from one period with cost of goods sold from a different period.

3

Confusing gross margin with markup even though they use different denominators.

4

Ignoring returns, discounts, or allowances that reduce actual revenue.

5

Using gross profit margin alone to judge total business health.

Related Formulas

Frequently Asked Questions

What is the formula for gross profit margin?

Gross profit margin is calculated as ((revenue - cost of goods sold) / revenue) × 100.

How do you calculate gross profit?

Gross profit equals revenue minus cost of goods sold.

What is the difference between gross margin and markup formula?

Gross margin divides gross profit by revenue, while markup divides gross profit by cost of goods sold.

Why is gross margin lower than markup?

Gross margin uses revenue as the base and markup uses cost as the base, so markup is usually the larger percentage when profit is positive.

Can gross profit margin be negative?

Yes. If cost of goods sold is higher than revenue, gross profit is negative and gross margin is also negative.

What happens if revenue is zero?

Gross profit can still be shown as revenue minus cost, but gross margin cannot be calculated because dividing by zero is not valid.

Ready to calculate your result?

Use the calculator to get instant results with your own inputs.

Try Gross Profit Margin