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 figures. Free calculator with the working shown and a worked example.
What this tool does
Enter revenue and cost of goods sold. The calculator returns gross profit margin percentage, gross profit amount, revenue, cost of goods sold, and the equivalent markup percentage applied to cost.
Enter Values
Formula Used
Spotted something off?
Calculations, display, or translation — 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.
Common Gross Margin Mistakes
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
Gross profit equals revenue minus cost of goods sold. Gross profit margin divides gross profit by revenue and expresses as a percentage. Equivalent markup divides gross profit by cost of goods sold. Results are estimates for illustration only and exclude operating expenses, taxes, and indirect costs.
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 Financial Health Calculators
Financial Health
Accounting Software Cost Calculator
Calculate total accounting software cost over years including setup. Enter subscription and setup hours for an instant result.
Financial Health
Accounts Payable Turnover Calculator
Calculate accounts payable turnover and days payable outstanding from supplier purchases and average AP. Free educational tool.
Financial Health
Accounts Receivable Turnover Calculator
Calculate accounts receivable turnover and days sales outstanding from credit sales and average AR. Enter net credit sales and see the result instantly.
Financial Health
Adjusted EBITDA Calculator
Calculate adjusted EBITDA with add-backs for owner compensation, one-offs, and non-recurring items. Enter reported ebitda and see the result instantly.
Financial Health
Affiliate Commission Calculator
Calculate affiliate commission earnings from clicks, conversion rate, order value, and commission percentage. Free educational tool.
Financial Health
Affiliate Marketing Income Calculator
Calculate affiliate marketing income from clicks, conversion rate, and commission per sale or per-order commission rate.
Explore Other Financial Tools
Money Insights
Cost Per Day of Life Calculator
Convert your annual spending into a daily cost of life. See what each day costs and project the total remaining lifetime spend.
Money Insights
Money Wasted on Unused Subscriptions Calculator
Estimate annual waste on unused subscriptions plus the compounded value if invested instead. Enter monthly subscription spend and see the result instantly.
Digital Nomad & Freelance
Monthly Recurring Revenue Calculator
Calculate MRR, ARR, and year-end projection. Enter clients, fee, churn, and new clients. Enter client count and monthly fee for an instant result.