Home › Gross Profit Margin Calculator

Gross Profit Margin Calculator

By · Updated Nov 10, 2026 · Editorial policy

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

Gross profit$0revenue − COGS
Gross margin0%gross profit ÷ revenue
Operating profit$0
Net profit$0after all expenses
Net margin0%net profit ÷ revenue
Markup on cost0%gross profit ÷ COGS

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

Selling price$0cost ÷ (1 − margin)
Gross profit per unit$0
Equivalent markup0%

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?

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/