How to use the Profit Margin Calculator
- Enter revenue for the period, such as a month, quarter or year.
- Enter direct costs (COGS), then operating expenses, interest and taxes if you know them.
- Read gross, operating and net margins. Leave the optional fields blank if you only need gross margin.
Formula
Gross margin = (Revenue − COGS) ÷ Revenue Operating margin = (Gross profit − OpEx) ÷ Revenue Net margin = (Operating profit − Interest − Tax) ÷ Revenue
Each margin divides a level of profit by revenue, so the margins are directly comparable with one another and between companies of different sizes.
Worked example: Revenue 250,000, COGS 140,000, OpEx 60,000, interest & tax 12,000
- Gross profit 110,000 → 44% gross margin
- Operating profit 50,000 → 20% operating margin
- Net profit 38,000 → 15.2% net margin
Net margin 15.2%.
Choosing the right tool
This calculator analyses a whole business or product line from its totals. To set a price for a target margin on a single product, use the Margin Calculator. To price from cost, use the Markup Calculator. For per-unit profit after tax, use the Profit Calculator.
Assumptions & limitations
- Figures cover the same period and use the same accounting basis.
- Depreciation and amortization should be included in operating expenses if you want a standard operating margin.
Frequently asked questions
What is a good profit margin?
It varies widely by industry. Grocery retail often runs on net margins of 1–3%, while software companies can exceed 20%. Compare with businesses in your sector.
What is the difference between margin and markup?
Margin is profit ÷ selling price, and markup is profit ÷ cost. A product costing $60 and selling for $100 has a 40% margin but a 66.7% markup.
Which costs belong in COGS?
Costs that vary directly with production or sales: materials, direct labour, manufacturing overhead, and inventory purchased for resale. Office rent and marketing are operating expenses.