Profit Margin Calculator
Calculate the gross profit margin — the percentage of every sales dollar that remains after paying for the goods sold. Use it to set product prices, evaluate deals, and benchmark against industry margin targets.
About this calculator
Profit margin (specifically gross profit margin) measures how much of every sales dollar a business keeps after paying for the cost of goods sold. The formula is: Profit Margin (%) = ((Selling Price − Cost Price) / Selling Price) × 100. The denominator is selling price, not cost — that single distinction separates margin from markup, and confusing the two is the most common pricing mistake in retail. Variables: "cost" is the unit cost of goods sold (materials, direct labour, freight-in, payment-processing fees) and "selling" is the price the customer pays before sales tax. Edge cases: if selling equals cost the margin is 0%; if selling is below cost the margin is negative (you lose money on each sale); if selling is zero the formula is undefined because of division by zero. The calculator returns gross margin only — operating expenses, interest, depreciation, and tax are not subtracted, so it overstates true take-home profitability. For overall company profitability use operating margin or net margin instead. Typical gross margins by industry (NYU Stern Damodaran data, January 2025): software 70–80%, restaurants 60–70%, apparel 50–65%, e-commerce 30–50%, grocery 20–30%, commodity wholesale 5–15%.
How to use
Example 1 — Handmade candle. Each unit costs $8 in wax, wick, jar, and labour and you sell it for $20. Enter 8 for Cost Price and 20 for Selling Price. Step 1: profit = 20 − 8 = $12. Step 2: 12 / 20 = 0.60. Step 3: × 100 = 60%. Verify by hand: $12 profit ÷ $20 revenue = 60% ✓. Example 2 — Wholesale offer. A buyer wants 1,000 units at $15 each. Enter 8 and 15. Step 1: profit = 15 − 8 = $7. Step 2: 7 / 15 ≈ 0.4667. Step 3: × 100 ≈ 46.7%. Verify: $7 ÷ $15 = 0.4667 ✓. The 13-point margin compression shows whether the extra volume justifies the discount once overhead is covered.
Frequently asked questions
What is the difference between profit margin and markup?
Profit margin uses selling price as the denominator while markup uses cost price, so the same dollar profit produces two different percentages. Buying at $60 and selling at $100 gives a $40 profit — that is a 40% margin (40/100) but a 66.7% markup (40/60). The two numbers are not interchangeable, and assuming they are leads to systematic under-pricing: if you intend a 40% margin but apply a 40% markup, you charge $60 × 1.40 = $84 and earn only a 28.6% margin. The conversion formulas are markup = margin / (1 − margin) and margin = markup / (1 + markup). A common mistake in spreadsheets is labelling a markup column "margin"; always confirm which metric you are looking at by checking the denominator before comparing numbers.
What is a healthy profit margin for my industry?
Healthy margins vary enormously by industry, so a single universal target is misleading. Grocery retail typically runs 1–3% net margin because of huge volume and price competition, while enterprise SaaS routinely exceeds 70% gross margin because incremental software has near-zero variable cost. Product-based small businesses usually target 40–60% gross margin to leave room for overhead, returns, and marketing, while service businesses often target 60–80% because their main cost is internal labour rather than goods. NYU Stern publishes an updated industry margin dataset every January (Damodaran Online) that is the standard analyst benchmark. Use that as your floor before comparing against industry leaders, and always separate gross margin from net margin in the comparison.
What are the most common mistakes when calculating profit margin?
The biggest mistake is mixing up margin and markup, which silently shrinks profitability. The second is forgetting to include all variable costs in "cost price" — shipping, payment-processor fees (typically 2.9% + $0.30 on cards), packaging, and inbound freight all reduce margin and are routinely missed. The third is comparing gross margin against net margin benchmarks, which makes your business look healthier than it is because gross margin excludes rent, salaries, and tax. The fourth is calculating margin on list price instead of net realised price, ignoring discounts, returns, and chargebacks. Finally, many small businesses calculate margin per unit but forget to weight by sales volume — your overall margin is the weighted average of all SKUs sold, not the arithmetic average of SKU margins.
When should I NOT use a profit margin calculation?
Profit margin is the wrong tool when you need a time-adjusted profitability measure — comparing a 50% margin business that turns inventory twice a year against one that turns it twelve times tells you nothing about which is more profitable, so use return on capital employed (ROCE) or inventory turnover instead. Margin is also misleading for loss-leader products that exist to drive traffic to higher-margin items; evaluate those on attach rate, not their own margin. Do not use margin for fixed-fee service contracts where the cost is mostly your time rather than discrete COGS — hourly profitability or utilisation rate is more meaningful there. Finally, never compare margins across different business models (manufacturer vs. retailer vs. marketplace) without first normalising for what each one counts as "cost", because the same product can show wildly different margins depending on which entity reports it.
How do gross margin, operating margin, and net margin differ?
Gross margin = (Revenue − Cost of Goods Sold) / Revenue and only accounts for direct production costs — this calculator computes gross margin. Operating margin = Operating Income / Revenue subtracts operating expenses such as rent, salaries, R&D, and marketing, so it captures the profitability of the core business before financing decisions. Net margin = Net Income / Revenue further subtracts interest, taxes, and one-time items, giving the bottom-line share of revenue that becomes profit for shareholders. Each margin tells a different story: gross margin reflects pricing power and supply-chain efficiency, operating margin reflects operational discipline, and net margin reflects overall financial health including capital structure. Investors typically watch all three to diagnose where profitability is being created or destroyed in the income statement.