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
Utilities
Markup Calculator
Calculate selling price from cost plus markup percentage, with the corresponding gross margin shown alongside for context.
Business & Startup
Net Profit Margin Calculator
Calculate net profit margin from revenue and total expenses. See the bottom-line percentage left as profit after every cost is paid.
Business & Startup
Airbnb Host Profit Calculator
Calculate Airbnb host profit by entering your nightly rate, occupancy, fees, cleaning costs, mortgage, and expenses to see monthly and annual net profit.
Formula Used
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.
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
| 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?
What is a good gross profit margin?
How does gross margin differ from markup?
Why is my margin declining even though revenue is growing?
Related Calculators
More Business & Startup Calculators
Business & Startup
Accounts Payable Turnover Calculator
Calculate accounts payable turnover and days payable outstanding from supplier purchases and average payables, with the ratio each payment term implies.
Business & Startup
Accounts Receivable Turnover Calculator
Calculate accounts receivable turnover and days sales outstanding from credit sales and average AR — how fast your invoices actually convert.
Business & Startup
Adjusted EBITDA Calculator
Calculate adjusted EBITDA with add-backs for owner compensation, one-off costs, and non-recurring items — the version a buyer or lender will actually use.
Business & Startup
Airbnb Host Profit Calculator
Calculate Airbnb host profit by entering your nightly rate, occupancy, fees, cleaning costs, mortgage, and expenses to see monthly and annual net profit.
Business & Startup
Asset Turnover Calculator
Calculate asset turnover ratio from revenue and total assets — a measure of how efficiently a business generates sales from its asset base.
Business & Startup
Break-Even Calculator
Calculate break-even point. Enter fixed costs, selling price, and variable cost to see units needed to cover costs. Free and educational.
Explore Other Financial Tools
Income
Promotion Lifetime Earnings Calculator
Calculate the lifetime earnings boost from a promotion compounded annually until retirement, given a one-time salary step up.
Investing
4% Rule Calculator
Apply a withdrawal rate to a portfolio and see the annual figure alongside its monthly, weekly and daily equivalents and the years it would last unchanged.
Investing
Compound Interest Calculator
Free compound interest calculator with regular deposits and withdrawals, any compounding frequency, after-tax and inflation-adjusted results.
Spotted something off?
Calculations or display — let us know.