FinToolSuite

Gross Profit Margin Calculator

Updated April 17, 2026 · Financial Health · Educational use only ·

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
Revenue
Cost of goods sold

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.

Example Scenario

Revenue $500,000 with COGS $250,000 produces a 50.00% gross profit margin.

Inputs

Revenue:$500,000
Cost of Goods Sold:$250,000
Expected Result50.00%

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.

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, freight inbound, packaging, manufacturing overhead. Operating costs like marketing, sales salaries, office rent, and professional fees do not belong in COGS.
What is a good gross profit margin?
Depends heavily on industry. Software often 70-90%. Ecommerce 30-50%. Grocery 20-30%. Restaurants 60-70% pre-labour. Manufacturing 25-50%. Compare to industry benchmarks rather than a generic target.
How does gross margin differ from markup?
Gross margin divides gross profit by revenue. Markup divides gross profit by COGS. A 100% markup equals a 50% margin. Confusion between the two leads to underpricing — the calculator shows both to prevent errors.
Why is my margin declining even though revenue is growing?
Common causes: rising input costs (COGS inflation), competitive price pressure, mix shift toward lower-margin products, discounting to drive volume, or freight and logistics cost increases eating into margin. Track the trend quarterly to catch the pattern early.

Related Calculators

More Financial Health Calculators

Explore Other Financial Tools