Home › Gross Profit Margin Calculator
Gross Profit Margin Calculator
Gross margin = (revenue − COGS) ÷ revenue. Net margin also subtracts operating expenses, interest and taxes. Enter your numbers for both, instantly.
Gross and net profit margin
Works for one product (price and unit cost) or a whole business (a month or year of sales). Leave operating expenses and other at 0 for gross margin only.
Price for a target gross margin
Gross margin vs net margin formulas
Gross profit = revenue − COGS Gross margin % = gross profit ÷ revenue × 100
Operating profit = gross profit − operating expenses Net profit = operating profit − interest, taxes & other Net margin % = net profit ÷ revenue × 100
Gross margin shows how much of each sales dollar is left after the direct cost of the product (materials, inventory, freight-in, direct labor). Net margin is what’s left after everything: rent, payroll, software, marketing, fees, interest and taxes. A business can have a healthy gross margin and still lose money if overhead is too high.
Worked example
Revenue $100,000, COGS $60,000: gross profit is $40,000 and gross margin is 40%. Subtract $25,000 of operating expenses for $15,000 operating profit (15%), then $3,000 of interest and taxes for net profit of $12,000: a 12% net margin. The markup on cost is $40,000 ÷ $60,000 = 66.7%.
Margin is not markup
Margin divides profit by the price; markup divides it by the cost. A 40% margin needs a 66.7% markup, and a 50% margin needs a 100% markup. The markup vs margin chart on our home page converts between them.
What goes into COGS?
- Include: purchase cost of goods you sell, inbound freight, packaging that ships with the product, and direct production labor and materials.
- Usually not COGS: rent, salaries of non-production staff, advertising, software subscriptions, and most platform fees (these are operating expenses and reduce net margin).
- Selling online? Payment processing and marketplace fees eat into margin fast. See the Shopify profit margin calculator or our eBay, Depop & Poshmark fee calculator.
Formulas as of October 20, 2026: standard accounting definitions of gross profit, operating profit and net profit (see the U.S. Small Business Administration: manage your finances). Results are estimates; your accountant’s classification of costs may differ.
FAQ
How do I calculate gross profit margin?
Subtract cost of goods sold from revenue to get gross profit, then divide by revenue. $100,000 revenue with $60,000 COGS is a 40% gross margin.
What is the difference between gross margin and net margin?
Gross margin only subtracts the direct cost of the products sold. Net margin subtracts every expense, including overhead, fees, interest and taxes.
How do I price a product for a 40% margin?
Divide the cost by 0.60 (1 minus 40%). A $40 item needs a $66.67 price, which is a 66.7% markup.
Can net margin be higher than gross margin?
Normally no, because net profit is gross profit minus more expenses. It can only happen if you have large non-operating income.
Is a 50% margin the same as a 50% markup?
No. A 50% markup on a $10 cost gives a $15 price and a 33.3% margin. A 50% margin needs a 100% markup.
Cite this page: Pierre Mentor, “Gross Profit Margin Calculator,” MarkupCalc.com, updated Nov 10, 2026, https://markupcalc.com/gross-profit-margin-calculator/



