Free Financial Tool

    Free Margin Calculator — Gross, Operating & Net at Once

    Enter revenue and cost once — instantly see gross, operating, and net profit margin side by side. Most calculators show one margin at a time. This one shows all three.

    By Valuefy TeamCFA, Finance AnalystsLast Updated: February 20265 min read

    Quick Answer

    Profit margin shows what percentage of revenue becomes profit. Formula: (Selling Price - Cost) / Selling Price x 100. Example: A $100 product with $60 cost has 40% margin. Higher margins mean more profit per sale. Software typically targets 70%+, retail 25-50%.

    Calculate Margin
    Enter revenue and cost to calculate margin

    Try an example:

    Results

    Enter revenue and cost to calculate margin

    What Are Good Profit Margins by Industry?

    Software / SaaS
    Gross70%
    Operating25%
    Net20%
    Retail
    Gross25%
    Operating5%
    Net3%
    Manufacturing
    Gross35%
    Operating10%
    Net7%
    Professional Services
    Gross50%
    Operating15%
    Net10%
    Restaurant / Food
    Gross60%
    Operating10%
    Net5%
    E-commerce
    Gross40%
    Operating10%
    Net5%
    Wholesale / Distribution
    Gross20%
    Operating5%
    Net3%
    Construction
    Gross25%
    Operating8%
    Net5%

    What Is Profit Margin and Why Does It Matter?

    Profit margin is the percentage of revenue that remains after subtracting costs. It's the most fundamental metric for understanding business profitability and pricing power. Per Investopedia, profit margin reveals how many cents of profit a business generates for each dollar of sales.

    For business owners and managers, margin analysis answers critical questions: Are prices set correctly? How do costs compare to competitors? Is there room for discounts or marketing spend? According to Harvard Business Review, companies that regularly monitor and optimize margins outperform those focused solely on revenue growth.

    Margin analysis works hand-in-hand with other financial metrics. Combine it with break-even analysis to understand volume requirements, or use ROI calculations to evaluate whether margin improvements justify the investment required. For product-level analysis, track gross profit margin separately from net profit margin to isolate where profitability is gained or lost.

    How Do You Calculate Gross, Operating, and Net Margin?

    Profit Margin = ((Revenue - Cost) / Revenue) x 100

    For markup-based calculation:

    Markup = ((Revenue - Cost) / Cost) x 100

    Types of Profit Margin

    Gross Margin

    Revenue minus cost of goods sold (COGS) divided by revenue. Measures production and procurement efficiency. A retailer buying at $60 and selling at $100 has 40% gross margin.

    Operating Margin

    Revenue minus COGS and operating expenses (rent, salaries, utilities) divided by revenue. Shows core business profitability before taxes and interest.

    Net Margin

    Revenue minus ALL expenses (COGS, operating, taxes, interest, depreciation) divided by revenue. The "bottom line" showing actual profit retained by the business.

    Contribution Margin

    Revenue minus variable costs only, ignoring fixed costs. Useful for product-level decisions and break-even analysis. Shows how much each sale contributes to covering fixed costs.

    What Is the Difference Between Margin and Markup?

    These terms are often confused but express the same profit differently. Understanding both prevents costly pricing errors.

    Profit Margin

    • Profit as % of selling price
    • Always less than 100%
    • Used in financial statements
    • Example: 40% margin on $100 = $40 profit

    Markup

    • Profit as % of cost
    • Can exceed 100%
    • Used in retail pricing
    • Example: 66.7% markup on $60 cost = $40 profit

    Quick Conversion Reference

    • 20% margin = 25% markup
    • 33.3% margin = 50% markup
    • 40% margin = 66.7% markup
    • 50% margin = 100% markup
    • 60% margin = 150% markup
    • 75% margin = 300% markup

    How Do Different Businesses Calculate Profit Margin?

    E-commerce Retail

    An online clothing retailer purchases t-shirts wholesale at $12 each and sells them for $35. They also pay $3 per item in shipping and handling.

    Revenue = $35
    Cost = $12 + $3 = $15
    Profit = $35 - $15 = $20
    Gross Margin = ($20 / $35) x 100 = 57.1%
    Markup = ($20 / $15) x 100 = 133.3%

    The 57% margin provides room for marketing costs (typically 15-20% of revenue in e-commerce), returns, and still leaves healthy net profit.

    SaaS Software

    A B2B software company charges $299/month per customer. Their infrastructure cost per customer is $25/month, and support costs average $15/month.

    Revenue = $299
    Variable Cost = $25 + $15 = $40
    Gross Profit = $299 - $40 = $259
    Gross Margin = ($259 / $299) x 100 = 86.6%

    SaaS companies typically target 70-85% gross margins. This company's 86.6% is excellent, leaving substantial profit for R&D, sales, and growth investments.

    Restaurant

    A restaurant sells a steak dinner for $45. The food cost (steak, vegetables, sides) is $14. Labor for preparation and service allocates to $8 per dish.

    Revenue = $45
    Food Cost = $14 (Food cost ratio: 31.1%)
    Food + Labor = $14 + $8 = $22
    Gross Margin = ($31 / $45) x 100 = 68.9%
    Contribution Margin = ($23 / $45) x 100 = 51.1%

    Restaurant food cost ratios typically run 28-35%. This 31% is healthy. The contribution margin covers rent, utilities, and other fixed costs, with remaining as profit.

    When Is Margin Analysis Not Enough?

    While margin is essential for business analysis, relying on it alone can lead to incomplete conclusions.

    Ignores Volume Effects

    A 50% margin on 10 sales generates less profit than 30% margin on 100 sales. High margins with low volume may not sustain a business. Always consider total profit dollars.

    Doesn't Account for Fixed Costs

    Gross margin excludes fixed costs like rent and salaries. A product with 60% gross margin might still lose money if fixed costs are high relative to sales volume.

    Industry Context Required

    A 15% margin is excellent for grocery stores but poor for software companies. Always compare to industry benchmarks rather than absolute values.

    Doesn't Show Cash Flow Timing

    Margin measures profitability, not cash flow. A business can have healthy margins but still face cash crunches if customers pay slowly or inventory ties up capital.

    Can Be Manipulated

    How costs are categorized affects margin calculations. Shifting expenses between COGS and operating costs changes gross margin without changing actual profitability.

    Key Takeaways: Margin Calculator Essentials

    For more guidance, see the Valuefy blog.

    Pair this tool with the Markup Calculator and the Price Calculator to cross-check inputs. For strategic context, read our founder's LOI negotiation guide and explore the Pricing & Costs tools hub.

    Profit margin measures profitability as a percentage of revenue, while markup measures profit as a percentage of cost. Same profit, different denominators.

    Gross margin shows production efficiency, operating margin shows core business health, and net margin shows overall profitability after all expenses.

    Industry benchmarks vary dramatically: SaaS targets 70-85% gross margin, retail aims for 25-50%, and grocery stores operate on 2-5% net margins.

    Higher margins provide flexibility for discounts, marketing investment, and absorbing cost increases. Low margins leave little room for error.

    Always analyze margin alongside volume, fixed costs, and cash flow for a complete picture of business health.

    Margin Calculator — Frequently Asked Questions

    Considering selling your business?

    Get a professional valuation of your company in minutes. Our AI-powered analysis provides DCF valuation, market comparables, and actionable insights.