Calculate gross margin, net margin, markup percentage, and selling price. This tool processes all data locally in your browser. No information is ever sent to any server. Completely free, no registration required.
A Profit Margin Calculator computes the profitability of a product or service by calculating gross margin, net margin, and markup percentages. For any business — whether an e-commerce seller, restaurant, SaaS company, or freelancer — understanding margins is the difference between running a profitable operation and unknowingly losing money on every sale. A product selling for $100 with a $60 cost has a 40% gross margin, but after operating expenses, taxes, and other overhead, the net margin might be only 10-15%. This calculator helps you determine the right selling price, evaluate supplier cost increases, and see how discounts impact your bottom line.
Enter your Cost (COGS: cost of goods sold) and Selling Price, and optional operating expenses. The calculator computes: Gross Profit = Selling Price - Cost; Gross Margin% = Gross Profit / Selling Price × 100; Markup% = Gross Profit / Cost × 100; Net Margin% = (Gross Profit - Operating Expenses) / Selling Price × 100. The key distinction: margin is percentage of selling price, while markup is percentage of cost. A 50% markup yields a 33.3% margin.
Gross Profit = Selling Price − COGS\nGross Margin% = (Gross Profit ÷ Selling Price) × 100%\nMarkup% = (Gross Profit ÷ COGS) × 100%\nNet Profit = Gross Profit − Operating Expenses − Taxes\nNet Margin% = (Net Profit ÷ Selling Price) × 100%\n\nBreak-Even Price = COGS + Operating Expenses per Unit
It varies by industry. SaaS companies often achieve 70-80% gross margins. Retail typically targets 30-50% gross. Restaurants average 60-70% gross but only 5-10% net. A 'good' net margin is anything above 10% in most industries, though highly competitive sectors may operate on 3-5% net.
Gross margin considers only direct costs (COGS): materials, direct labor, manufacturing. Net margin accounts for ALL costs: COGS + operating expenses (rent, salaries, marketing, utilities) + interest + taxes. A healthy gross margin can hide an unprofitable business if operating expenses are too high.
Start with cost-plus: COGS × (1 + desired markup%). Then check market rates — are competitors charging more or less? Finally, consider value-based pricing: what is the product worth to the customer? The optimal price balances margin with sales volume.
Free online Profit Margin Calculator — no signup, 100% client-side processing. All data stays in your browser.