Rent, salaries, marketing, utilities, and other overhead costs.
Enter to see per-unit profitability metrics.
Enter revenue and COGS, then click calculate.
Download Your Results
Includes formulas & explanationsA 10-second preparation delay applies before each download begins.
Embed This Calculator on Your Website
Add this free calculator to your blog, website, or CMS with a simple copy-paste embed code.
Introduction
A 2-point swing in gross margin can mean the difference between a profitable quarter and a cash crisis. Yet many business owners conflate gross margin with markup, run pricing decisions off gut feel, and discover the problem only when the bank account runs short. According to NYU Stern's industry margin database, gross margins vary from 10% in grocery retail to over 70% in software -- meaning industry context is everything when benchmarking your number. Gross margin is the percentage of revenue remaining after subtracting the direct cost of goods sold (COGS). It does not include operating expenses, interest, or taxes. It is the first and most fundamental profitability signal in your income statement. If your gross margin is too thin, no amount of operational efficiency downstream will save you. This calculator gives you gross margin percentage, gross profit in dollars, and COGS as a percentage of revenue -- instantly and accurately.
What This Calculator Does
This gross margin calculator takes your revenue and cost of goods sold (COGS) as inputs and returns gross profit in dollars, gross margin as a percentage of revenue, and COGS as a percentage of revenue. Use it to benchmark individual products, product lines, or your entire business. It supports both single-period and comparative analysis when you run multiple scenarios side by side.
The Formula
Subtract total COGS from total revenue to get gross profit. Divide gross profit by revenue and multiply by 100 to express as a percentage. COGS includes all direct costs: materials, labor directly tied to production, and manufacturing overhead. It does not include selling, general, and administrative expenses (SG&A), depreciation unrelated to production, or interest. A common error is including salaries of non-production staff in COGS, which inflates the apparent cost and deflates the margin.
Step-by-Step Example
Enter total revenue
A SaaS company reports $480,000 in quarterly subscription revenue. Enter $480,000 as revenue.
Enter total COGS
COGS includes cloud hosting ($28,000), third-party API costs ($14,500), customer onboarding labor ($19,200), and payment processing fees ($9,600). Total COGS: $71,300. Enter $71,300.
Read gross profit and margin
Gross profit: $480,000 - $71,300 = $408,700. Gross margin: $408,700 / $480,000 = 85.1%. COGS as % of revenue: 14.9%.
Benchmark and act
NYU Stern data shows software gross margins average 71.5%. At 85.1%, this company is above benchmark. If the margin were 55%, it would signal COGS bloat -- investigate hosting or labor allocation before pricing changes.
Real-World Use Cases
Product Line Profitability Comparison
A consumer goods manufacturer sells three product lines: premium at 62% gross margin, mid-range at 41%, and economy at 28%. Running each through the calculator reveals the economy line's gross profit per unit barely covers fixed overhead. Management shifts production capacity toward the premium line, improving blended gross margin from 42% to 51% without a price increase.
Supplier Negotiation Leverage
A distributor's gross margin is 18% on a $2.1M revenue base. COGS is $1.72M. A 3% reduction in supplier cost (savings of $51,600) would increase gross margin to 20.5%. The calculator quantifies the value of negotiation before the conversation begins, giving the buyer a precise target to achieve.
Pricing Decision for a New Service
A consulting firm prices a new retainer product at $4,000/month. Direct delivery cost (consultant time, tools): $1,480/month per client. Gross margin: 63%. The firm's threshold for service launches is 60% gross margin, so the product passes the screen before any marketing spend is committed.
Comparison
| Industry | Typical Gross Margin Range | Key COGS Driver |
|---|---|---|
| Software / SaaS | 70% - 85% | Hosting, API costs, onboarding labor |
| Professional Services | 55% - 75% | Billable labor cost |
| Retail (General) | 25% - 45% | Wholesale product cost |
| Grocery / Food Retail | 20% - 30% | Product cost, spoilage |
| Manufacturing | 25% - 40% | Materials, direct labor, factory overhead |
| Construction | 15% - 25% | Subcontractors, materials |
Common Mistakes to Avoid
Including SG&A expenses in COGS. Salaries for sales, marketing, finance, or executive staff are operating expenses, not COGS. Including them understates gross margin and misleads product-level profitability analysis. Keep COGS limited to costs that exist only because a unit was produced or a service was delivered.
Comparing gross margin to net margin benchmarks. Industry databases often publish both gross and net margin data. Comparing your gross margin to a competitor's net margin produces a false picture of relative performance. Always confirm which margin definition is being used in any benchmark source.
Ignoring product mix shifts over time. A business may show stable blended gross margin while the actual margin on individual products deteriorates -- offset by a growing share of higher-margin products. Run the calculator by product line quarterly, not just for the total business.
Frequently Asked Questions
Accuracy and Disclaimer
Gross margin calculations are based on the inputs provided and standard accounting definitions of revenue and COGS. Results are for analysis and planning purposes. Accounting classification of costs as COGS versus operating expenses may vary by industry, business structure, and applicable accounting standards (GAAP or IFRS). Consult a licensed accountant or CPA for financial reporting and compliance purposes.
Conclusion
Gross margin is not a goal -- it is a constraint. Every pricing decision, supplier negotiation, and product mix change ripples directly into it. Review your gross margin monthly, not quarterly, particularly if your COGS includes volatile components like raw materials or freight. To understand how pricing changes affect the margin, use the Markup vs Margin Calculator. To project how margin improvements translate to bottom-line profit after operating expenses and tax, use the Net Profit After Tax Calculator.
Related Business Finance Calculators
Contribution Margin Calculator
Calculate contribution margin per unit, ratio, total contribution, and break-even from price and variable costs.
Use CalculatorBusiness FinanceMarkup vs Margin Calculator
Convert between markup and margin percentages and calculate selling price from cost using either method.
Use CalculatorBusiness FinanceCash Flow Forecast Calculator
Project monthly cash inflows, outflows, and ending balances over a customizable forecast period.
Use CalculatorBusiness FinanceWorking Capital Calculator
Calculate net working capital, current ratio, quick ratio, and cash ratio from balance sheet items.
Use CalculatorBusiness FinanceInventory Turnover Calculator
Calculate inventory turnover ratio and days sales of inventory from COGS and inventory values.
Use CalculatorBusiness FinanceBreak-Even Units Calculator
Calculate the exact number of units you need to sell to cover fixed costs and reach a target profit.
Use CalculatorYou May Also Find Useful
Tax Calculator
Estimate your 2026 federal income tax based on filing status, gross income, deductions, and current tax brackets. See your marginal and effective tax rates instantly.
Use CalculatorFinance & AccountingSalary to Hourly Calculator
Convert your annual salary to an hourly wage instantly. Adjust for hours per week, weeks per year, and overtime to find your true hourly rate.
Use CalculatorFinance & AccountingCommission Calculator
Determine sales commissions based on revenue, rate tiers, and bonus structures.
Use Calculator