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, expressed as a percentage. This calculator takes your revenue and cost of goods sold figures and returns three outputs: the gross profit margin percentage, the gross profit amount in your currency, and the equivalent markup percentage applied to cost. The result shows what portion of each revenue unit remains after direct production costs are covered. Revenue and cost of goods sold are the primary drivers of the result. A common scenario is analysing product profitability across different business lines or time periods. Note that this calculation does not account for operating expenses, taxes, or other indirect costs—it focuses only on the relationship between revenue and direct production costs. Results are for educational illustration and financial modelling purposes.
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
Financial Ratios Calculator
Calculate debt-to-income, housing, savings ratios, and emergency fund months in one calculator. Enter net income to see debt-to-income ratio and housing ratio.
Business & Startup
Gross Profit Calculator
Calculate gross profit and gross margin from revenue and cost of goods sold — the topline-after-direct-costs view of business profitability.
Formula Used
Spotted something off?
Calculations or display — let us know.
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 percentage of revenue left after subtracting the direct cost of producing the goods or services sold. A 60% gross margin means 60 cents out of every dollar of revenue is available to cover operating expenses, overhead, marketing, interest, taxes, and profit. A 20% gross margin means only 20 cents per dollar remains before all those costs. The margin sets the ceiling on profitability — no amount of operational efficiency can create profit when the gross margin is too thin. The calculator returns the margin figure directly so the ceiling is always visible.
Revenue vs Cost of Goods Sold
Revenue is total sales before any deductions. Cost of goods sold (COGS) is the direct cost of producing what was sold — materials, direct labour on the product, freight inbound, packaging, and manufacturing overhead directly attributable to the product. COGS excludes marketing, sales salaries, office rent, professional fees, or other operating costs. Those go below the gross profit line. Getting COGS right is critical — classifying indirect costs as COGS inflates operating expenses and understates the true gross margin.
Industry Benchmarks for Gross Margin
Software and SaaS: 70-90% (very low cost of delivery per additional customer). Consulting and professional services: 40-60% (people cost is the main COGS). Ecommerce retail: 30-50% depending on product category and scale. Grocery retail: 20-30% (volume business, thin margin). Restaurants: 60-70% food margin before labour (much thinner post-labour). Manufacturing: 25-50% depending on industry. Construction: 15-25%. Margin expectations vary enormously by industry — a 40% margin is excellent for grocery but poor for software.
Gross Margin vs Net Margin vs Markup
Gross margin: (Revenue - COGS) / Revenue. Net margin: Net Income / Revenue. Markup: (Revenue - COGS) / COGS. A 50% markup produces a 33.3% gross margin. A 100% markup produces a 50% gross margin. A 200% markup produces a 66.7% gross margin. Confusing markup and margin is the most common pricing error in retail — a retailer who needs 50% margin but applies 50% markup lands at 33.3% margin and loses money on variable costs. The calculator returns both so the conversion is always visible.
Worked Example for an Ecommerce Business
Annual revenue 500,000. COGS 250,000 (product cost, inbound shipping, packaging). Gross profit: 250,000. Gross margin: 50%. Equivalent markup: 100%. The business keeps 50 cents per dollar of revenue to cover all other costs. If operating expenses run 180,000, operating profit is 70,000 — a 14% operating margin. Raise prices to expand gross margin to 55%: gross profit rises to 275,000, operating profit to 95,000. A 5 percentage point gross margin expansion almost doubled operating profit. Margin moves matter.
Why Margin Trends Matter More Than Absolute Levels
A business with a declining gross margin is usually in trouble even if absolute margin looks healthy today. Declining gross margin signals one of three things: rising COGS (cost inflation on inputs), falling prices (competitive pressure), or worsening product mix (lower-margin products growing faster than higher-margin ones). All three compress future profit. Tracking margin trend over time reveals these dynamics early. The calculator gives a point-in-time figure; running it quarterly across several periods surfaces the trend.
What Changes Gross Margin
Price increases improve margin proportionally. COGS reduction (negotiating suppliers, manufacturing efficiency, bulk buying) improves margin. Product mix shifts toward higher-margin lines improve margin. Volume growth typically does not improve gross margin directly, but may improve it indirectly by strengthening supplier negotiation position. Promotional discounting reduces margin. Currency moves on imported goods change margin without any operational change. Freight and logistics costs are a material COGS component that often gets overlooked in margin analysis.
What Gross Margin Cannot Tell You
Whether the business is profitable overall. Whether operating expenses are too high relative to margin. Whether the pricing model is sustainable in the competitive landscape. Whether the margin is achievable at scale. How the business compares to competitors without industry context. The calculator returns a clean mathematical ratio; interpreting what the number means requires industry knowledge, competitive benchmarks, and historical trend analysis that no single tool can provide.
Patterns Commonly Observed in Gross Margin
Including operating expenses in COGS (inflates COGS, understates gross margin). Excluding freight and packaging from COGS (understates COGS, inflates gross margin). Using wholesale price instead of landed cost (missing inbound costs). Not accounting for shrinkage, returns, or damaged goods. Ignoring promotional discounts that reduce realised margin below nominal margin. Applying the same margin analysis across different product lines that should be analysed separately. The calculator produces the mathematically correct ratio; getting the inputs right is the harder part of margin analysis.
Revenue $500,000 with COGS $250,000 produces a 50.00% gross profit margin.
Inputs
This example uses typical values 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, then dividing that gross profit by revenue and multiplying by 100 to express the result as a percentage. The calculation models the proportion of each revenue unit retained after direct production costs are paid. The model assumes all inputs represent actual figures for a defined period and treats the cost of goods sold as the only expense category relevant to gross margin. The calculator does not account for operating expenses, overhead, indirect costs, taxes, depreciation, or changes in inventory valuation. Results reflect a single-period snapshot and do not model seasonal variation, economies of scale, or future margin sustainability.
References
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 AP. Free educational tool.
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
Budget
Monthly Bill Reduction Calculator
Add up yearly savings from reducing monthly bills across utilities, insurance, broadband, subscriptions, and phone plans.
Creator Economy
Blog Advertising Revenue Calculator
Calculate blog advertising revenue from pageviews and CPM rate, across different ad networks and ads-per-page densities.
B2B Insurance
Directors & Officers Insurance Calculator
Estimate your Directors & Officers insurance premium using company revenue, coverage limit, and industry risk factor to budget D&O board liability costs.