Finance

Gross Profit Margin Formula: How to Calculate Gross Margin

Learn the gross profit margin formula, how gross margin is calculated, and how direct costs affect product profitability.

Updated June 26, 2026

Gross profit margin is a profitability calculation that shows how much revenue remains after direct costs are removed. It is often used to understand whether a product, service, or offer has enough margin before wider business expenses are included.

Related toolProfit Margin Calculator

Use the calculator to check your own numbers, then read the guide for formulas, examples, and common mistakes.

Open calculator

What Is Gross Profit Margin?

Gross profit margin measures the percentage of revenue left after direct costs are removed. Direct costs are the costs directly connected to producing, buying, delivering, or providing the product or service.

For a product business, direct costs may include product cost, raw materials, packaging, fulfilment, and production cost. For a service business, direct costs may include labour or delivery costs directly tied to the service.

Gross profit margin is useful because it shows how strong the core offer is before overhead expenses are counted.

Gross Profit Margin Formula

The gross profit margin formula is: gross profit margin = gross profit divided by revenue multiplied by 100.

Gross profit is revenue minus direct costs. So the full formula is: gross profit margin = revenue minus direct costs divided by revenue multiplied by 100.

This formula uses revenue as the base, which makes it a margin calculation rather than a markup calculation.

Gross Profit Margin Example

Suppose a product sells for 100 and the direct cost is 60. The gross profit is 40.

Gross profit margin is 40 divided by 100 multiplied by 100. The result is 40%.

This means 40% of the selling price remains after the direct cost is removed.

What Counts as Direct Cost?

Direct cost depends on the business model. In ecommerce, it may include inventory cost, packaging, shipping supplies, fulfilment, product sourcing, and payment processing fees if those are treated as direct costs.

In a service business, direct cost may include contractor cost, delivery labour, materials, or tools used specifically to complete the service.

The important point is consistency. A business should be clear about which costs are included when calculating gross margin.

Gross Margin vs Profit Margin

Gross margin is one type of profit margin, but it is not the only one. It focuses on direct costs.

Net profit margin uses a broader view and includes more business expenses. That is why gross margin is usually higher than net margin.

For the comparison, read Gross Profit Margin vs Net Profit Margin.

Gross Margin vs Markup

Gross margin and markup can use the same revenue and cost numbers, but they calculate different percentages.

Gross margin compares gross profit with selling price. Markup compares gross profit with cost.

This is why a product with 40% gross margin does not have 40% markup. For the full explanation, read Profit Margin vs Markup.

Why Gross Profit Margin Matters

Gross margin helps with pricing, product selection, supplier decisions, discount planning, and product comparison.

If gross margin is too low, the business may not have enough room to cover overhead expenses, marketing, refunds, taxes, or profit goals.

A strong gross margin gives the business more flexibility, but it still needs to be checked against total operating costs.

How to Use the Calculator

Use the Profit Margin Calculator by entering revenue and direct cost.

The calculator will show profit and margin percentage. For a gross margin calculation, use direct cost as the cost input.

For the main formula explanation, read the Profit Margin Formula guide.

Common Mistakes to Avoid

The first mistake is using revenue as profit. Revenue is the sale amount, not the amount kept after cost.

The second mistake is forgetting direct costs such as packaging, payment fees, fulfilment, returns, or shipping supplies.

The third mistake is comparing gross margin with net margin as if they are the same. They measure different levels of profitability.

Conclusion

Gross profit margin shows how much revenue remains after direct costs are removed.

It is one of the clearest ways to understand product-level profitability before wider business expenses are included.

Related guides and tools

FAQs

What is gross profit margin?

Gross profit margin is the percentage of revenue left after direct costs are removed.

What is the gross profit margin formula?

Gross profit margin = gross profit divided by revenue multiplied by 100.

Is gross margin the same as net margin?

No. Gross margin uses direct costs, while net margin includes broader business expenses.

Try the calculator

Use the Profit Margin Calculator to calculate your own margin numbers.

Use Profit Margin Calculator