Find your gross margin, markup, and net profit in seconds โ so you know exactly what you're making on every sale before you price or discount anything.
This free margin calculator covers four key profit metrics used in US business finance: gross margin, markup, operating margin, and net profit margin. It works for any business type โ a retail store pricing products, a SaaS company benchmarking gross margin, a contractor setting hourly rates, or an investor analyzing a public company. The calculator accepts revenue and cost inputs, with optional fields for operating expenses and taxes to compute each layer of the margin stack. Results display as both percentage and dollar amounts, so you can see how margin changes as costs shift or discounts are applied.
1. Enter your revenue (selling price) in the Revenue field.
2. Enter your cost of goods sold (COGS) or direct cost in the Cost field.
3. The calculator instantly shows gross margin percentage and gross profit in dollars.
4. Optionally add operating expenses to calculate operating margin.
5. Optionally add taxes and interest to calculate net profit margin.
6. Toggle to Markup Mode to convert between markup percentage and margin percentage.
Gross Margin = (Revenue โ COGS) รท Revenue ร 100
Markup = (Revenue โ COGS) รท COGS ร 100
Operating Margin = Operating Income รท Revenue ร 100, where Operating Income = Revenue โ COGS โ Operating Expenses
Net Profit Margin = Net Income รท Revenue ร 100, where Net Income = Operating Income โ Interest โ Taxes
A product selling for $100 with a $60 COGS has a 40% markup but only a 40% gross margin? No โ it has (100โ60)/100 = 40% gross margin AND (100โ60)/60 = 66.7% markup. Markup always exceeds margin for the same product.
Gross margin represents the percentage of revenue remaining after direct production costs โ it funds overhead, marketing, and profit. Operating margin layers in fixed and variable operating costs to show what the business earns from its core operations. Net margin is the bottom-line percentage after all costs, taxes, and interest. Each metric serves a different analysis purpose; comparing the wrong one to an industry benchmark yields misleading conclusions.
This is the most common confusion in small business finance. Both margin and markup describe the relationship between cost and price, but they use different denominators:
For the same product, markup will always be a higher number than margin. A 50% markup on a $40 cost yields a price of $60 and a margin of 33.3%. A 50% margin on a $40 cost yields a price of $80 and a markup of 100%.
The confusion leads to real business harm. A retailer who tells a buyer "we mark up 50%" expects the buyer to understand 50% of cost. But if the buyer assumes that means 50% gross margin (a perfectly reasonable reading of "50% profitable"), they'll model gross profit wrong in every financial projection. Always specify which denominator you're using in any pricing or margin discussion.
"Good" margin depends entirely on the business model. Benchmarks from across US industries illustrate the range:
These benchmarks matter when pricing a new product or evaluating a business acquisition. A 15% gross margin might be excellent for a grocery operation and disastrous for a software company.
Gross margin subtracts COGS from revenue. Contribution margin subtracts all variable costs โ including variable labor, packaging, and shipping โ from revenue. For many businesses they're identical, but for businesses with variable non-COGS costs (like ecommerce brands with variable shipping and fulfillment), contribution margin tells a sharper story about the incremental profitability of each sale.
Contribution margin is particularly useful for break-even analysis: Break-Even Units = Fixed Costs รท Contribution Margin per Unit. A business with $50,000 in monthly fixed costs and a $25 contribution margin per unit must sell 2,000 units per month before generating any operating profit. The margin calculator can model this by treating variable non-COGS costs as part of COGS when computing a contribution-margin-style result.
Discounts have a nonlinear impact on margin. Because gross margin is expressed as a percentage of revenue, a price reduction reduces both the numerator (gross profit) and the denominator (revenue) simultaneously. The margin erosion from a discount is always worse than the discount percentage implies.
Example: A product costs $60 and retails at $100 (40% gross margin). A 15% discount to $85: new margin = ($85 โ $60) รท $85 = $25 รท $85 = 29.4%. The 15% price reduction shrank the margin by 10.6 percentage points โ more than two-thirds of the discount's magnitude. To maintain the same gross profit dollars at the discounted price, you need to sell more units. How many more? Gross profit at full price = $40. Gross profit per unit at discount = $25. You need to sell 60% more units just to hold gross profit flat. Run this calculation before any promotion.
Gross margin is only meaningful if COGS includes all direct costs โ materials, direct labor, inbound freight. Understating COGS inflates gross margin and masks real profitability.
Whether you use gross or net revenue (after returns, allowances) changes the margin figure materially in high-return industries like retail.
Always confirm which metric you're computing and communicating โ the denominator difference leads to persistent miscommunication.
High fixed-cost businesses experience large operating margin swings on small revenue changes โ model this when projecting profitability.
Even modest discounts erode margin disproportionately relative to the percentage off.
Compare margin figures to sector peers, not to a universal "good" threshold.
A clothing brand sells a jacket for $220. The cost of goods (fabric, manufacturing, freight) is $88. Gross margin = ($220 โ $88) รท $220 = $132 รท $220 = 60%. Markup = $132 รท $88 = 150%. Annual operating expenses are $800,000 on $2.2M revenue. Operating income = $2.2M ร 60% โ $800,000 = $1,320,000 โ $800,000 = $520,000. Operating margin = $520,000 รท $2,200,000 = 23.6%.
A software company generates $3.5M ARR. COGS (hosting, support, customer success) = $595,000. Gross margin = ($3,500,000 โ $595,000) รท $3,500,000 = $2,905,000 รท $3,500,000 = 83%. Operating expenses (sales, marketing, R&D, G&A) = $2,800,000. Operating income = $2,905,000 โ $2,800,000 = $105,000. Operating margin = $105,000 รท $3,500,000 = 3%. High gross margin, low operating margin โ a classic early-stage SaaS profile investing heavily in growth.
1. Always distinguish gross margin from markup before any pricing conversation โ specify which number you mean.
2. Model margin before running discounts โ the erosion is nonlinear and almost always larger than expected.
3. Track margin by product line or SKU, not just company-wide โ blended margins hide unprofitable segments.
4. Use contribution margin for break-even analysis, especially for ecommerce businesses where variable fulfillment costs are significant.
5. Benchmark against industry peers, not against a single "good margin" threshold โ a 10% net margin is exceptional in grocery, mediocre in software.
6. Include all COGS components โ missing landed freight or import duties understates cost and overstates margin.
A: Margin uses revenue as the denominator: (Revenue โ Cost) รท Revenue. Markup uses cost as the denominator: (Revenue โ Cost) รท Cost. A 40% markup is not the same as 40% margin โ the markup percentage is always higher than the equivalent margin percentage for the same product.
A: It varies by industry. Service businesses often run 50โ70% gross margins; retail, 25โ50%; restaurants, 60โ70% on food cost but thin operating margins. Compare your margin against sector benchmarks, not a universal target.
A: Discounts hurt margin disproportionately. A 15% price cut on a 40% margin product drops the margin to about 29.4% โ a 10.6-percentage-point reduction from a 15% discount.
A: Contribution margin subtracts all variable costs (not just COGS) from revenue. It's used for break-even analysis and to measure the incremental profit generated by each additional sale.
A: Net Profit Margin = Net Income รท Revenue ร 100. Net income is revenue minus all costs including COGS, operating expenses, interest, and taxes.
A: Operating margin shows what percentage of revenue remains after paying both direct costs (COGS) and operating expenses, before interest and taxes. It measures how efficiently the core business generates profit.
A: Yes. For service businesses, use labor costs and any direct service delivery costs as your COGS equivalent. The margin formula is the same regardless of whether you're selling goods or services.
A: High-quality SaaS businesses typically run 70โ80%+ gross margins, reflecting low marginal delivery costs. Early-stage companies may run lower if they have high customer success labor costs embedded in COGS.
Brief disclaimer: This calculator provides estimates for educational and planning purposes only. Actual margins, costs, and profitability depend on your specific business operations, accounting methods, and industry conditions. Results should be treated as planning guidance rather than financial or business advice.