Rent, salaries, marketing, utilities, etc.
Your Results
Enter revenue and cost to calculate margins.
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 40% margin and a 40% markup are not the same thing, and confusing them can quietly wreck your pricing. A product that costs $60 and sells for $100 has a 40% margin (profit as a percentage of revenue) but a 67% markup (profit as a percentage of cost). If your business targets a 40% margin but you accidentally price using 40% markup, you are leaving real money on the table on every transaction. The Corporate Finance Institute's margin benchmarks show that gross margins below 20% in manufacturing and below 40% in software signal cost structure problems that compound quickly at scale. This calculator computes gross margin, net margin, and markup simultaneously so you can price from the correct baseline and spot margin compression before it shows up in your P&L.
What This Calculator Does
This profit margin calculator takes revenue and cost inputs and returns gross profit in dollar terms, gross margin as a percentage of revenue, and markup as a percentage of cost. When you enter additional operating expenses, it also computes operating margin and net margin. The reverse function lets you work backward from a target margin to determine the required selling price for any cost basis.
The Formula
Gross margin and markup both measure the same profit dollar amount but express it as a percentage of different bases. Margin divides by revenue (the larger number), so it is always lower than markup. Markup divides by cost (the smaller number). To convert: Margin = Markup / (1 + Markup). A 67% markup is a 40% margin. A 100% markup is a 50% margin. The formulas are not interchangeable.
Step-by-Step Example
Enter revenue
Input the selling price or total revenue for the period. Example: $450,000 annual revenue.
Enter cost of goods sold
Input direct costs: materials, direct labor, manufacturing costs. Example: $202,500 COGS.
Calculate gross margin
Gross profit = $450,000 - $202,500 = $247,500. Gross margin = $247,500 / $450,000 = 55%. Markup = $247,500 / $202,500 = 122%.
Add operating expenses for net margin
Operating expenses (rent, salaries, marketing): $135,000. Operating income = $112,500. Operating margin = 25%. After tax at 21%: Net income = $88,875. Net margin = 19.8%.
Real-World Use Cases
Product Pricing Review
A SaaS company with a 65% gross margin target uses the calculator to verify each new pricing tier generates adequate contribution before fixed costs. A new $49/month plan with $18 in hosting and support costs achieves a 63% gross margin, close to target.
Acquisition Due Diligence
A buyer evaluating a professional services firm calculates trailing twelve-month gross margin at 48% against an industry benchmark of 55-65%, flagging a potential cost structure issue to investigate before submitting a letter of intent.
Sales Discount Impact Analysis
A sales manager models the margin impact of a 10% discount. At a baseline 40% margin, a 10% discount requires a 20% increase in volume just to maintain the same gross profit dollars. This calculation stops margin-eroding discounting.
Comparison
| Industry | Typical Gross Margin | Typical Net Margin |
|---|---|---|
| SaaS / Software | 65% - 80% | 10% - 25% |
| Professional Services | 50% - 70% | 15% - 25% |
| E-commerce / Retail | 25% - 45% | 2% - 8% |
| Manufacturing | 25% - 40% | 5% - 12% |
| Restaurants | 55% - 70% (food cost basis) | 3% - 9% |
| Construction | 15% - 25% | 3% - 8% |
Common Mistakes to Avoid
Using markup and margin interchangeably in pricing models. A 50% margin requires a 100% markup. If your pricing sheet uses 50% markup, you are achieving only a 33% margin. The difference compounds across high-volume products.
Calculating gross margin without including all direct costs. Shipping, packaging, credit card processing fees, and sales commissions are direct costs that reduce gross margin. Omitting them overstates margin by 3-8% in many e-commerce businesses.
Ignoring the volume-margin trade-off. A 10% price reduction on a product with a 40% margin requires a 33% increase in unit volume to maintain the same gross profit. This break-even volume analysis is rarely done before authorizing discounts.
Benchmarking net margin without adjusting for owner compensation in small businesses. Many small business owners pay themselves below market, which inflates net margin artificially. Normalize owner pay to market rate before comparing to industry benchmarks.
Frequently Asked Questions
Accuracy and Disclaimer
Profit margin calculations are based on the revenue and cost figures you enter. Actual margins depend on accurate classification of direct versus indirect costs, accounting methods, and the scope of costs included. Industry benchmarks are general estimates that vary by company size, business model, and market conditions. This calculator is for planning and analysis purposes. Consult your accountant for financial reporting.
Conclusion
Margin is the language of investors, lenders, and acquirers. When you can state your gross margin is 58% and your net margin is 14%, those numbers communicate far more than raw profit figures. If your current margin does not reflect the rates typical for your industry, pricing is usually the first lever, not cost cutting. For a full profitability picture, use the Break-Even Calculator to confirm how many units or how much revenue is needed before fixed costs are covered, or check the Commission Calculator to model how sales rep compensation interacts with your margin structure.
Related Finance & Accounting Calculators
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 & AccountingVAT/GST Calculator
Calculate Value Added Tax or Goods & Services Tax amounts, add tax to or extract tax from a price.
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 CalculatorFinance & AccountingLoan EMI Calculator
Calculate monthly loan payments (EMI) for personal loans, auto loans, or any fixed-rate loan. Includes full amortization schedule with principal and interest breakdown.
Use CalculatorFinance & AccountingRetirement Calculator
Project your retirement savings over time based on contributions, returns, and retirement age.
Use CalculatorYou May Also Find Useful
Mortgage Payment Calculator
Calculate your monthly mortgage payment including principal, interest, taxes, and insurance. View a full amortization schedule for 15-year or 30-year fixed-rate mortgages.
Use CalculatorReal Estate & Property InvestingROI Calculator
Calculate return on investment (ROI) as a percentage for any business decision, real estate deal, or financial opportunity. Compare multiple investments side by side.
Use CalculatorHealthcare & ClinicalBMI Calculator
Calculate your Body Mass Index (BMI) using height and weight. Get your BMI category (underweight, normal, overweight, obese) with professional health context and interpretation.
Use Calculator