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 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: 70-85%

    Software companies enjoy high margins because digital products have minimal per-unit costs. COGS mainly consists of hosting and support staff.

    Professional Services: 50-70%

    Consulting, legal, and accounting firms have moderate margins. COGS is primarily labor costs for billable professionals.

    Restaurants: 60-70%

    Food costs typically run 28-35% of menu prices, resulting in decent gross margins. Labor and overhead then reduce net margins.

    Manufacturing: 25-40%

    Manufacturing involves significant material and labor costs, resulting in lower but still healthy margins when operations are efficient.

    Retail: 20-30%

    Retailers purchase finished goods at wholesale prices, leaving smaller margins. High-volume sales are needed for profitability.

    E-commerce: 40-60%

    Online retailers often achieve better margins than traditional retail due to lower overhead, though shipping costs can impact COGS.

    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 varies significantly by industry. Software and SaaS companies typically have 70-85% margins, while retail businesses often operate with 20-30% margins. The key is to compare your margin against industry benchmarks and track improvements 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?

    A good profit margin varies by industry. Net profit margins: SaaS companies 15-25%, retail 2-5%, restaurants 3-9%, manufacturing 5-10%, professional services 15-25%. Gross profit margins: SaaS 70-85%, retail 25-50%, manufacturing 25-35%. A gross margin above 50% generally indicates strong pricing power and scalability.

    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.