Skip to content
Calculator Collection

Gross Profit Margin Calculator

Calculate gross profit margin — the percentage of revenue left after subtracting the direct cost of goods sold. The core measure of how profitably a company produces what it sells.

Last updated: May 2026

Fill in the required fields to see your result.

Compare with similar

About this calculator

Gross profit margin measures how much of each sales dollar remains after paying the direct costs of producing the goods or services sold. The formula is gross profit margin = ((revenue − COGS) / revenue) × 100, where COGS is the cost of goods sold — the direct materials, labor, and production costs tied to what was sold. The numerator (revenue − COGS) is the gross profit in dollars; dividing by revenue and multiplying by 100 expresses it as a percentage. It is one of the most fundamental profitability metrics because it isolates production efficiency from overhead, marketing, and financing costs, which are excluded. A higher margin means the company keeps more of each sale to cover operating expenses and generate net profit. Margins vary enormously by industry: software and luxury goods often exceed 70–80%, while grocery retail and manufacturing may run in the single digits to low double digits, so the figure is only meaningful compared to industry peers and the company's own history. Edge cases: a margin near zero or negative means the company is selling at or below the direct cost of production, which is unsustainable; revenue of zero makes the metric undefined. Gross margin is distinct from operating margin (which subtracts overhead) and net margin (which subtracts everything including taxes and interest) — it sits at the top of the profitability stack. Tracking it over time reveals pricing power, cost control, and the impact of input-cost inflation.

How to use

Example 1 — revenue of $100,000 and COGS of $60,000. Enter Revenue = 100000, COGS = 60000. Gross profit margin = ((100000 − 60000) / 100000) × 100 = (40000 / 100000) × 100 = 40%. Verify: the company keeps 40 cents of every sales dollar after direct production costs, leaving that to cover overhead and profit. Example 2 — revenue of $250,000 and COGS of $175,000. Enter Revenue = 250000, COGS = 175000. Gross profit margin = ((250000 − 175000) / 250000) × 100 = (75000 / 250000) × 100 = 30%. Verify: the higher COGS relative to revenue produces a lower 30% margin, showing how rising input costs squeeze profitability even as revenue grows.

Frequently asked questions

What is the difference between gross, operating, and net margin?

The three margins subtract progressively more costs. Gross margin subtracts only the direct cost of goods sold, measuring production efficiency. Operating margin goes further by also subtracting operating expenses like rent, salaries, and marketing, showing profitability from core operations. Net margin subtracts everything — operating costs, interest, and taxes — to reveal the bottom-line profit per dollar of revenue. Each tells a different story: gross margin for pricing and production, operating margin for management efficiency, and net margin for overall profitability. Confusing them is a common mistake; always specify which margin you mean when comparing companies.

What counts as cost of goods sold (COGS)?

COGS includes only the direct costs of producing the goods or services that were actually sold during the period — typically raw materials, direct labor, and manufacturing or production costs. It excludes indirect costs like marketing, administrative salaries, rent for offices, research, and distribution, which belong to operating expenses. For a service business, COGS might be the direct labor and materials delivered to clients. Getting the COGS boundary right is essential, because misclassifying overhead as COGS understates the gross margin and vice versa. Consistency matters most: classify costs the same way every period so the trend is comparable.

What is a good gross profit margin?

There is no universal benchmark — a 'good' gross margin depends heavily on the industry. Software, pharmaceuticals, and luxury brands routinely post margins above 70%, while supermarkets, construction, and commodity manufacturing operate on thin single-digit to low-double-digit margins and make money on volume. So a 30% margin could be excellent for a grocer but alarming for a software firm. The right comparison is against direct competitors and the company's own historical trend. A margin that is stable or rising relative to peers signals pricing power and cost control; a falling margin warns of competitive pressure or rising input costs.

What is a common mistake when interpreting gross margin?

The most common mistake is comparing margins across different industries as if they were equivalent, when industry economics make raw comparisons meaningless. Another is confusing gross margin with markup: markup is profit as a percentage of cost, while margin is profit as a percentage of revenue, so a 50% markup is only a 33% margin. People also forget that a high gross margin does not guarantee overall profitability if operating expenses are large — a company can have great gross margins and still lose money. Finally, mixing up which costs belong in COGS distorts the figure. Always compare like with like and check the full profit stack.

When should I NOT rely on gross margin alone?

Gross margin ignores overhead, marketing, interest, and taxes, so it cannot tell you whether a business is actually profitable overall — a company with a strong gross margin can still post a net loss if its operating costs are high. Do not use it to compare companies in different industries, where cost structures differ fundamentally. It is also less meaningful for businesses where the line between direct and indirect costs is blurry, such as some service firms. For a complete view, pair it with operating and net margins, and with cash-flow measures. Use gross margin specifically to assess production efficiency and pricing, not total financial health.

Sources & references