Calculate your gross profit margin and markup percentage instantly. Understand your product profitability and compare against industry benchmarks.
Try an example:
Formulas Used:
Gross Margin = (Revenue - COGS) / Revenue x 100
Markup = (Revenue - COGS) / COGS x 100
Enter your revenue and COGS to see your gross margin calculation.
Gross margin is the percentage of revenue remaining after subtracting cost of goods sold (COGS). It is calculated as (Revenue - COGS) / Revenue x 100. A SaaS company with $500,000 revenue and $100,000 COGS has a 80% gross margin. Healthy benchmarks range from 25-35% in retail and manufacturing to 75-85% in software, making industry context essential for comparison.
Gross margin is one of the most important metrics for understanding your business's profitability. It measures the percentage of revenue that exceeds your cost of goods sold (COGS), essentially showing how much money you keep from each sale after paying for the direct costs of producing your products or services.
Unlike net profit margin, which accounts for all expenses including overhead, marketing, and administrative costs, gross margin focuses specifically on the relationship between your revenue and the direct costs of production. This makes it an excellent indicator of your core business efficiency and pricing strategy effectiveness.
A healthy gross margin gives your business the financial cushion needed to cover operating expenses, invest in growth, and generate profit. Businesses with low gross margins must achieve very high sales volumes — consider running a break-even analysis to understand the minimum revenue required — while businesses with high gross margins can be profitable even with moderate sales.
For industry-standard definitions and calculation methods, refer to Investopedia's guide to gross margin.
One of the most common sources of confusion in business finance is the difference between gross margin and markup. While both measure profitability, they use different reference points and serve different purposes.
Profit as a percentage of selling price (revenue). Used to understand what portion of each sale becomes profit.
Profit as a percentage of cost. Used to determine how much to add to cost when setting prices.
For example, if you buy a product for $60 and sell it for $100, your gross margin is 40% ($40 profit / $100 selling price), but your markup is 66.7% ($40 profit / $60 cost). Both numbers describe the same transaction but from different perspectives.
Markup is typically used when setting prices (adding a percentage to your cost), while gross margin is used when analyzing financial performance (understanding what percentage of revenue becomes profit).
Calculating gross margin is straightforward once you have your revenue and cost of goods sold figures. Here is the step-by-step process:
Calculate your total revenue from sales. This is the gross amount before any deductions. For a product business, this is the total sales value. For services, this is total billings or fees collected.
Add up all direct costs of producing your products or services. This includes raw materials, direct labor, manufacturing overhead, and any other costs directly tied to production. Do not include operating expenses like marketing or rent.
Gross Margin = (Revenue - COGS) / Revenue x 100
Example:
Revenue: $500,000
COGS: $200,000
Gross Margin = ($500,000 - $200,000) / $500,000 x 100 = 60%
Gross margins vary dramatically across industries. Understanding typical margins in your industry helps you benchmark your performance and identify opportunities for improvement.
The median SaaS gross margin is 77% according to Benchmarkit's 2025 report. Enterprise SaaS typically reaches 80-85%, while AI-native companies run 55-70% due to compute costs. COGS is mainly hosting and customer support.
Consulting, legal, and accounting firms have moderate margins. COGS is primarily labor costs for billable professionals. Higher utilization rates push margins toward the upper range.
Industry-standard food cost runs 28-35% of revenue, with full-service restaurants averaging 32.4%. Quick-service targets 25-30%, casual dining 30-34%, and fine dining 34-40% food cost.
The median across manufacturing subsectors is 17.3%. Pharmaceuticals reach 60-80%, while auto manufacturing averages 12%. Track your COGS closely to spot margin erosion early.
General merchandise averages around 31% gross margin. Walmart operates near 25%, Target around 28%, and specialty retail reaches 30-50% depending on category.
Margins vary widely by model. First-party retail (e.g. Amazon at 24%) runs lower, while marketplace and third-party models reach 40-50%. Shipping and fulfillment costs are the primary COGS drivers.
Sources: SaaS data from Benchmarkit 2025 SaaS Benchmarks. Restaurant benchmarks from the National Restaurant Association. Manufacturing and retail data from NYU Stern (Damodaran) industry datasets, updated January 2026.
Gross margin is not just a number on your financial statements. It has profound implications for every aspect of your business strategy and long-term success.
High gross margins indicate you can command premium prices or have found ways to keep production costs low. This gives you flexibility to invest in growth or weather economic downturns.
Businesses with high gross margins can scale more easily because each additional sale generates significant profit to reinvest. Low-margin businesses need massive scale to achieve meaningful profits.
Investors and acquirers pay close attention to gross margins. Higher margins typically command higher valuations because they indicate a sustainable, profitable business model with room for growth. Strong gross margin alongside healthy working capital and a solid current ratio signals financial resilience to buyers.
Tracking gross margin over time reveals trends in your operational efficiency. Declining margins may signal rising costs, pricing pressure, or production inefficiencies that need attention.
Improving gross margin is one of the most effective ways to increase profitability. Here are proven strategies used by successful businesses:
Many businesses undercharge for their products or services. Conduct market research, analyze competitor pricing, and test price increases. Even small price increases can significantly impact gross margin without affecting demand if your product offers clear value.
Review supplier contracts regularly and negotiate better terms. Consider bulk purchasing, long-term contracts, or switching to more cost-effective suppliers. Even 5% savings on materials can meaningfully improve margins.
Audit your production process for waste, inefficiencies, and defects. Implement quality control measures, train staff on efficient practices, and invest in equipment that reduces waste and rework.
Identify repetitive, labor-intensive tasks that can be automated. While automation requires upfront investment, it often reduces per-unit labor costs and improves consistency.
Analyze gross margins by product or service line. Focus sales and marketing efforts on higher-margin offerings, and consider phasing out low-margin products that drag down overall profitability. Pair this with the Price Calculator to test new price points before shifting mix.
Poor inventory management leads to waste, obsolescence, and markdowns. Implement just-in-time inventory practices and use data to forecast demand more accurately, reducing carrying costs and spoilage.
Pair this tool with the ARR Calculator and the Asset Turnover Calculator to cross-check inputs. For strategic context, read our 12-month exit checklist and explore the Financial Ratios tools hub.
Gross margin measures production efficiency. It shows what percentage of revenue remains after covering direct costs, indicating how efficiently you produce goods or deliver services.
Industry context matters. A 25% margin is excellent for retail but poor for software. Always benchmark against your specific industry to understand where you stand. For longer‑form benchmarks and examples, see the Valuefy blog.
Higher margins enable growth. Businesses with strong gross margins have more capital to invest in marketing, R&D, and expansion. Explore reinvestment tradeoffs in the Business Planning hub to connect margin to growth, creating a compounding advantage over competitors.
Gross margin is the percentage of revenue that exceeds the cost of goods sold (COGS). It represents the portion of sales revenue that a company retains after incurring the direct costs of producing the goods or services it sells. A higher gross margin indicates that a company retains more money from each dollar of sales to cover other expenses and generate profit.
While both relate to profitability, they use different denominators. Gross margin calculates profit as a percentage of revenue (selling price), while markup calculates profit as a percentage of cost. For example, if you sell something for $100 that cost $60, your gross margin is 40% ($40/$100), but your markup is 66.7% ($40/$60).
A 'good' gross margin depends on your industry. The median SaaS gross margin is 77% (Benchmarkit 2025), with 75% considered the floor for a clean SaaS business. General retail averages around 31%, while manufacturing ranges from 12% (automotive) to 60-80% (pharmaceuticals). The most useful comparison is against your specific industry peers, tracked over time.
Gross Margin = (Revenue - Cost of Goods Sold) / Revenue x 100. For example, if your revenue is $100,000 and COGS is $60,000, your gross margin is ($100,000 - $60,000) / $100,000 x 100 = 40%.
COGS includes all direct costs of producing goods or delivering services: raw materials, direct labor, manufacturing overhead, packaging, and shipping costs directly tied to products. It excludes indirect costs like marketing, administrative salaries, rent for non-production facilities, and R&D expenses.
Gross margin is a key indicator of business health and scalability. Higher margins suggest pricing power, efficient operations, and room for growth. Investors and acquirers closely examine gross margins because they indicate how much profit a company generates from its core business before operating expenses.
You can improve gross margin by: 1) Increasing prices without losing customers, 2) Negotiating better supplier terms, 3) Reducing production waste and inefficiencies, 4) Automating production processes, 5) Shifting sales mix toward higher-margin products, and 6) Improving inventory management to reduce spoilage or obsolescence.
Gross margin only considers revenue minus COGS, showing profit from production. Net margin (or net profit margin) subtracts ALL expenses including operating costs, interest, taxes, and depreciation. Net margin shows the final profit percentage after all costs, while gross margin shows production efficiency specifically.
Net profit margins vary widely: the S&P 500 blended net margin reached 13.4% in Q1 2026 (FactSet). By sector, Information Technology led at 29.1% net margin. For gross margins, SaaS companies typically achieve 75-85%, retail averages around 31%, restaurants 65-72% (with food costs at 28-35%), and the manufacturing median is 17.3% across subsectors. A gross margin above 50% generally signals strong pricing power.
Gross margin = (Revenue - COGS) / Revenue. It measures profitability after production costs only. Profit margin (net) = Net Income / Revenue — it deducts all expenses including operating costs, interest, and taxes. A business can have a high gross margin but low net margin due to high operating expenses. Gross margin is better for measuring product economics; net margin reflects overall business efficiency.
View all Financial Ratio tools →
Calculate return on investment for any investment type
Calculate price-to-earnings ratio for stock valuations
Measure ability to meet short-term obligations
Calculate current ratio and working capital
Financial Basics Guide
In-depth guide with examples, benchmarks, and interactive calculators