Free Financial Tool

    Gross Margin & Profit Margin Calculator

    Calculate your gross profit margin and markup percentage instantly. Understand your product profitability and compare against industry benchmarks.

    By Valuefy TeamLast Updated: February 20265 min read

    Try an example:

    Enter Your Numbers
    Input your revenue and cost of goods sold to calculate gross margin

    Formulas Used:

    Gross Margin = (Revenue - COGS) / Revenue x 100

    Markup = (Revenue - COGS) / COGS x 100

    Your Results

    Enter your revenue and COGS to see your gross margin calculation.

    Understanding Gross Margin & Profit Margin – Formula and Calculator

    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.

    Gross Margin vs Markup: Understanding the Difference

    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.

    Gross Margin

    Profit as a percentage of selling price (revenue). Used to understand what portion of each sale becomes profit.

    Formula: (Price - Cost) / Price x 100

    Markup

    Profit as a percentage of cost. Used to determine how much to add to cost when setting prices.

    Formula: (Price - Cost) / Cost x 100

    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).

    How to Calculate Gross Margin

    Calculating gross margin is straightforward once you have your revenue and cost of goods sold figures. Here is the step-by-step process:

    Step 1: Determine Your Revenue

    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.

    Step 2: Calculate Cost of Goods Sold (COGS)

    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.

    Step 3: Apply the Formula

    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%

    Real-World Gross Margin Examples by Industry

    Gross margins vary dramatically across industries. Understanding typical margins in your industry helps you benchmark your performance and identify opportunities for improvement.

    Software / SaaS: 75-85%

    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.

    Professional Services: 50-70%

    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.

    Restaurants: 65-72%

    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.

    Manufacturing: 15-35%

    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.

    Retail: 25-35%

    General merchandise averages around 31% gross margin. Walmart operates near 25%, Target around 28%, and specialty retail reaches 30-50% depending on category.

    E-commerce: 25-50%

    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.

    Why Gross Margin Matters for Your Business

    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.

    Pricing Power

    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.

    Scalability

    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.

    Business Valuation

    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.

    Operational Efficiency

    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.

    Strategies to Improve Your Gross Margin

    Improving gross margin is one of the most effective ways to increase profitability. Here are proven strategies used by successful businesses:

    1. Review and Optimize Pricing

    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.

    2. Negotiate with Suppliers

    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.

    3. Reduce Production Waste

    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.

    4. Automate Where Possible

    Identify repetitive, labor-intensive tasks that can be automated. While automation requires upfront investment, it often reduces per-unit labor costs and improves consistency.

    5. Shift Product Mix

    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.

    6. Improve Inventory Management

    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.

    Key Takeaways

    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.

    1

    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.

    2

    Margin and markup are different. Gross margin uses selling price as the denominator, while markup uses cost. Understanding margin and markup helps with pricing decisions and financial analysis.

    3

    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.

    4

    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.

    5

    Margin improvement has multiple paths. You can increase prices, reduce costs, improve efficiency, or shift your product mix. The best approach depends on your market position and constraints.

    Frequently Asked Questions

    What is gross margin?

    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.

    How is gross margin different from markup?

    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).

    What is a good gross margin?

    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.

    How do I calculate gross margin?

    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%.

    What is included in cost of goods sold (COGS)?

    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.

    Why is gross margin important for business valuation?

    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.

    How can I improve my gross margin?

    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.

    What is the difference between gross margin and net margin?

    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.

    What is a good profit margin for a business?

    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.

    What is the difference between gross margin and profit margin?

    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.

    Know Your Business Value

    Understanding your gross margin is just the beginning. Get a comprehensive valuation of your company with AI-powered analysis, including DCF valuation, market comparables, and actionable insights to maximize your business value.