Skip to content
FinToolSuite
Updated 2026-09-02 · Business & Startup · Educational use only ·
Privacy

Gross Profit Margin Calculator

Gross profit margin from revenue and cost of goods sold

Calculate gross profit margin percentage from revenue and cost of goods sold — the headline ratio behind whether a business has pricing power.

What this tool does

Gross profit margin is gross profit, revenue minus cost of goods sold, divided by revenue and expressed as a percentage. This calculator takes revenue and cost of goods sold and returns the margin percentage, the gross profit amount, and the equivalent markup applied to cost, since the same gross profit expressed over cost rather than revenue is a different number: the loaded figures give a 50.00% margin and a 100.00% markup. The result shows what share of revenue remains once direct production costs are covered, which sets the ceiling for every profit measure computed below it. Revenue and cost of goods sold are the only drivers, and the classification boundary between COGS and operating expenses is what makes the figure comparable between businesses. The calculation accounts for no operating expense, tax, or indirect cost. It requires cost of goods sold below revenue, so negative gross margins cannot be modelled, and a zero COGS entry produces an infinite markup. Results are for educational illustration and financial modelling purposes.

Quick answer: with the default values, the result is 50.00% (Gross Profit Margin). Adjust the values below for your own figures.


Enter Values

People also use

Formula Used
Revenue for the period, before any deduction
Cost of goods sold, which must be below revenue
Gross profit
Gross profit margin, the primary result
Equivalent markup on cost, the same gross profit measured against cost rather than revenue

Disclaimer

Results are estimates for educational purposes only. They do not constitute financial advice. Consult a qualified professional before making financial decisions.

What Gross Profit Margin Actually Measures

Gross profit margin is the share of revenue left after the direct cost of producing what was sold. A 60% gross margin leaves 60% of revenue to cover operating expenses, overhead, marketing, interest, tax and whatever profit remains; a 20% margin leaves 20%. It sets the ceiling on every profit measure below it, because operating and net margin are both computed from what gross margin hands down. The calculator returns the margin, the gross profit amount, and the equivalent markup on cost, so the ceiling and the pricing that produced it are visible together.

Revenue vs Cost of Goods Sold

Revenue is total sales before deductions. Cost of goods sold is the direct cost of producing what was sold: materials, direct labour on the product, inbound freight, packaging, and manufacturing overhead attributable to the product. It excludes marketing, sales salaries, office rent and professional fees, which sit below the gross profit line as operating expenses. The classification is what makes the ratio comparable, and it moves in a specific direction: putting indirect costs into COGS inflates COGS, understates gross margin, and reduces reported operating expenses by the same amount, so operating profit is unchanged while the margin split between the two lines is wrong. Comparing a business that capitalises fulfilment into COGS against one that reports it as an operating expense compares two different measures.

Industry Benchmarks for Gross Margin

Gross margin ranges widely by sector, and a figure only means something next to comparable businesses. In margin data compiled across 5,994 listed firms as of January 2026, the all-industry gross margin is 37.76%. System and application software sits at 71.72% and pharmaceuticals at 71.73%, apparel at 56.88%, machinery at 37.47%, business and consumer services at 33.38%, general retail at 33.18%, restaurants and dining at 32.24%, grocery and food retail at 26.31%, and engineering and construction at 15.46%. A 40% margin is therefore strong in grocery and weak in software. Two cautions apply to any such table: it covers listed firms in a single market, and sectors differ in what they put in COGS, which is why a restaurant food-cost margin quoted before labour lands far above the same sector's reported gross margin.

Gross Margin vs Net Margin vs Markup

Gross margin is gross profit over revenue. Net margin is net income over revenue, after operating costs, interest and tax. Markup is the same gross profit expressed over cost instead of revenue, so the two convert exactly: margin equals markup divided by one plus markup. A 50% markup is a 33.33% margin, 100% markup is 50.00%, and 200% markup is 66.67%. Running it backwards, a target margin of 50% requires a 100% markup, and a target of 60% requires 150%. The gap between the two is where pricing goes wrong: applying a 50% markup while planning around a 50% margin delivers 33.33%, which is a third less gross profit per unit than the plan assumed, and any operating cost budget built on the higher figure comes up short. The calculator returns both numbers so the conversion never has to be done from memory.

Worked Example for an Ecommerce Business

Annual revenue of 500,000 against COGS of 250,000, covering product cost, inbound shipping and packaging, gives gross profit of 250,000, a gross margin of 50.00% and an equivalent markup of 100.00%. With operating expenses of 180,000, operating profit is 70,000, a 14% operating margin. Now move gross margin to 55%, and the route matters. Cutting COGS to 225,000 with revenue unchanged lifts gross profit to 275,000 and operating profit to 95,000, a 35.7% increase. Raising prices instead, with COGS held at 250,000, takes revenue to 555,556 for the same 55% margin, gross profit to 305,556 and operating profit to 125,556, a 79.4% increase. Both reach 55% and a 122.22% markup, but the price route carries more gross profit because it grows the revenue base rather than shrinking the cost base.

Why Margin Trends Matter More Than Absolute Levels

A single margin reading says less than the direction it has been moving. Gross margin falling while revenue grows narrows to three causes: input costs rising faster than prices, prices falling under competitive pressure, or product mix drifting toward lower-margin lines. Each has a different remedy and the ratio alone does not separate them, though splitting revenue and COGS by product line usually does. The tool returns a point-in-time figure, so running it once per period and lining up the results is what turns it into a trend. A margin that recovers after a period of input-cost inflation reads differently from one that has been declining for eight consecutive quarters at the same rate.

What Changes Gross Margin

Price increases raise margin, though not in proportion: holding COGS at 250,000 and raising revenue 10% to 550,000 moves the margin from 50% to 54.55%, a 4.55 point gain rather than a 10% one. COGS reductions through supplier negotiation, manufacturing efficiency or volume purchasing raise it from the other side. Mix shifts toward higher-margin lines move the blended figure without changing any individual product. Volume growth on its own does not change gross margin, since both revenue and COGS scale together, though it can move indirectly through purchasing power. Promotional discounting reduces the realised margin below the nominal one. Currency movements on imported goods change COGS with no operational change at all, and freight and logistics are a COGS component large enough to move the ratio on their own.

What Gross Margin Cannot Tell You

It says nothing about whether the business is profitable, because operating expenses, interest and tax all sit below it. It says nothing about whether those costs are proportionate to the margin, whether the pricing holds under competition, or whether the same margin survives at larger volumes. Comparison against competitors needs their COGS definitions as well as their numbers. The tool has two boundaries of its own worth knowing: it requires cost of goods sold to be below revenue, so a business selling below cost cannot be modelled here even though negative gross margins occur in early-stage and loss-leader pricing, and a COGS entry of zero produces an infinite markup because the denominator disappears.

Patterns Commonly Observed in Gross Margin

Several input errors recur, and each moves the ratio in a predictable direction. Operating expenses included in COGS inflate COGS and understate the margin. Freight and packaging left out of COGS do the reverse. Wholesale price used instead of landed cost misses inbound duty and shipping. Shrinkage, returns and damaged goods left out overstate what was actually sold at full value. Promotional discounts ignored leave a nominal margin above the realised one. A single blended margin across product lines with different economics hides both the strong and the weak. The arithmetic here is exact; assembling the two inputs correctly is the part that takes judgement.

Example Scenario

Revenue of $500,000 against cost of goods sold of $250,000 leaves 50.00% as the gross profit margin, shown with the gross profit amount and the equivalent markup on cost, which is the same profit expressed over cost rather than over revenue.

Inputs

Revenue:$500,000
Cost of Goods Sold:$250,000
Expected Result50.00%
Expected Result breakdown
Gross Profit$250,000.00
Revenue$500,000.00
Cost of Goods Sold$250,000.00
Equivalent Markup %100.00%

This example uses sample figures for illustration. Adjust the inputs above to match a specific situation and see how the result changes.

Sources & Methodology

Methodology

This calculator computes gross profit margin by subtracting cost of goods sold from revenue, dividing that gross profit by revenue, and multiplying by 100. It also reports the equivalent markup, which divides the same gross profit by cost of goods sold instead, so the two figures convert as margin equals markup divided by one plus markup. The model assumes both inputs represent actual figures for a defined period and treats cost of goods sold as the only expense category relevant to gross margin, accounting for no operating expense, overhead, indirect cost, tax, depreciation, or change in inventory valuation. Because the boundary between cost of goods sold and operating expenses is an accounting policy choice rather than a fixed rule, figures are comparable only where that boundary is drawn the same way. Revenue must be greater than zero and cost of goods sold must be below revenue, so a business selling below cost cannot be represented; a cost of goods sold entry of zero returns a 100% margin and an infinite markup, since the markup denominator disappears. Results reflect a single-period snapshot and model no seasonal variation, economy of scale, or future margin sustainability.

Frequently Asked Questions

What counts as cost of goods sold?
Direct costs of producing the goods or services sold: materials, direct labour on the product, inbound freight, packaging, and manufacturing overhead attributable to the product. Operating costs such as marketing, sales salaries, office rent and professional fees sit below the gross profit line instead. The boundary is a policy choice as much as a rule, and businesses draw it differently, which is why two companies in the same sector can report gross margins several points apart on identical economics. Moving a cost across that line does not change operating profit, since whatever leaves COGS lands in operating expenses, but it changes the gross margin and every comparison built on it. Landed cost rather than invoice price is the usual omission: duty, inbound shipping and handling belong in COGS, and leaving them out overstates the margin.
What is a good gross profit margin?
It varies enough by sector that a target figure only becomes readable once an industry is attached to it. Margin data compiled across 5,994 listed firms as of January 2026 puts the all-industry gross margin at 37.76%, with system and application software at 71.72%, pharmaceuticals at 71.73%, apparel at 56.88%, machinery at 37.47%, business and consumer services at 33.38%, general retail at 33.18%, restaurants and dining at 32.24%, grocery and food retail at 26.31%, and engineering and construction at 15.46%. Those cover listed firms in a single market, and sectors vary in what they classify as COGS, so a restaurant food-cost margin quoted before labour sits far above the same sector's reported gross margin. Comparing a business against its own earlier periods avoids both problems, since the classification stays constant.
How does gross margin differ from markup?
Gross margin divides gross profit by revenue; markup divides the same gross profit by COGS. Because the numerator is identical, the two convert exactly: margin equals markup divided by one plus markup, and markup equals margin divided by one minus margin. A 100% markup is a 50% margin, a 50% markup is a 33.33% margin, and a 200% markup is a 66.67% margin. Read the other way, a 50% margin needs a 100% markup and a 60% margin needs a 150% one. The error that follows from mixing them is arithmetically large: pricing at a 50% markup while budgeting around a 50% margin produces 33.33%, which is a third less gross profit on every unit than the plan assumed. The calculator reports both figures from the same inputs so the conversion is visible rather than remembered.
Why is my margin declining even though revenue is growing?
A margin falling while revenue rises narrows to a few causes. Input costs can be rising faster than prices are being adjusted. Prices can be falling under competitive pressure or through discounting used to drive the volume that is growing revenue. Product mix can be drifting toward lower-margin lines, so each individual product holds its margin while the blend does not. Freight, duty and currency movements on imported goods change COGS with no operational change behind them. The ratio alone does not separate these, though splitting revenue and COGS by product line across two periods generally does, since a mix problem shows up as stable product-level margins with a changed weighting while a cost problem shows up in the products themselves.

Related Calculators

More Business & Startup Calculators

Explore Other Financial Tools

Spotted something off?

Calculations or display — let us know.