Profit Margin Calculator
See what share of your revenue survives the cost of making the product — and then everything else.
Try it with your own figures
Profit margin is profit expressed as a percentage of revenue. Gross margin takes revenue minus the direct cost of what you sold, divided by revenue — it measures the product itself. Net margin subtracts operating expenses as well, so it measures the business. A company can have a healthy gross margin and no net margin at all, which is usually a sign that the product works but the overhead around it does not.
Gross margin tests the product, net margin tests the business
Gross margin answers one question: after paying to produce a unit, how much is left over from what you sold it for? It is the ceiling on everything else. A business running a 15% gross margin has 15 cents per dollar to cover rent, salaries, marketing and profit — and no amount of cost discipline elsewhere changes that ceiling.
Net margin then asks whether the overheads fit underneath that ceiling. The gap between the two is where most of the diagnosis lives. A wide gap means the product earns well but the business around it is expensive to run. A narrow gap with a low gross margin means the pricing or the production cost is the problem, and trimming overheads will not fix it.
What counts as COGS and what does not
The split is what makes the two margins meaningful, and it is drawn at one line: does the cost rise when you sell one more unit?
- COGS — raw materials, components, manufacturing labour, packaging, shipping to the customer, payment processing fees, and for services the billable time delivering the work.
- Operating expenses — rent, administrative salaries, marketing, software subscriptions, insurance, professional fees. These continue whether you sell one unit or a thousand.
Borderline items exist and consistency matters more than perfection. Classify a cost the same way every period, or your margin trend will show movements that are really just reclassifications.
Margin and markup are not the same number
A product costing 100 and selling for 150 carries a 50% markup on cost and a 33.3% margin on price. Same transaction, two different percentages, because they divide by different denominators. The tiles above report both so the comparison is explicit.
The practical risk runs one way: setting a 30% markup while believing you have secured a 30% margin quietly leaves you short on every sale. The markup calculator converts between the two directly.
Margins also vary enormously by industry — grocery retail and enterprise software live in different worlds — so the only comparison worth much is against your own prior periods and against direct competitors. To combine margin with volume and see the sales level you need to cover fixed costs, use the break-even calculator.
The formula
- Revenue
- total sales for the period
- COGS
- cost of goods sold — the direct cost of producing what you sold
- Opex
- operating expenses — overheads not tied to a specific unit
- Margin
- profit as a share of revenue, always divided by revenue
Both margins divide by revenue. That is the definition of a margin and the single most common place this gets confused — dividing profit by cost instead gives markup, a larger number describing a different thing.
Worked example
Scenario: Revenue of 250,000, cost of goods sold of 145,000 and operating expenses of 62,000.
| Measure | Value | Share of revenue |
|---|---|---|
| Revenue | $250,000 | 100.0% |
| Cost of goods sold | $145,000 | 58.0% |
| Gross profit | $105,000 | 42.0% |
| Operating expenses | $62,000 | 24.8% |
| Net profit | $43,000 | 17.2% |
A 42.0% gross margin falls to a 17.2% net margin once operating expenses are taken out — overheads consume 24.8 points of revenue. The same gross profit expressed against cost rather than revenue is a 72.4% markup.
How to read the result
Net margin is the headline: what survives of every dollar of revenue after both the cost of goods and your operating expenses. Gross margin above it stops at the cost of goods, so it measures the product rather than the business. The gap between the two is what your overheads consume, and it is usually where the diagnosis is.
Assumptions and limitations
- The three figures must cover the same period. Revenue for a year set against costs for a quarter will produce a meaningless margin.
- Net profit here is revenue minus cost of goods and operating expenses. Interest, tax and depreciation are included only if you add them to operating expenses. If you leave them out, the net margin shown is closer to an operating margin.
- Markup is calculated on cost of goods only. It compares gross profit with direct costs and ignores operating expenses.
- Enter revenue net of sales tax, returns and discounts. Including tax collected on behalf of the authorities overstates every margin.
- Margin is not cash. A profitable period can still be short of cash if customers pay late or stock was bought ahead of sales.
Margins vary widely by industry, so compare with businesses like yours. See our disclaimer for the limits of what these tools are for.
Profit Margin Calculator FAQs
What is a good profit margin?
It depends far more on the industry than on the business. Grocery retail can run on low single-digit net margins and be perfectly healthy; software businesses often expect much more. The useful comparisons are against your own previous periods and against direct competitors in the same sector.
What is the difference between gross and net profit margin?
Gross margin subtracts only the direct cost of producing what you sold, so it measures the product's profitability. Net margin also subtracts operating expenses, so it measures whether the whole business makes money. The gap between the two is what your overheads consume.
Is profit margin the same as markup?
No. Margin is profit divided by the selling price; markup is profit divided by the cost. A 50% markup is a 33.3% margin on the same sale. Margin is always the smaller figure, and mixing them up is the most common pricing error in small businesses.
How can I improve my profit margin?
There are three routes: raise prices, reduce the cost of what you sell, or cut operating expenses. Which one to pursue is usually clear from the gap between your gross and net margins — a low gross margin points at pricing or production, while a wide gap points at overheads.
Should tax be included in this calculation?
This calculator gives operating margins, before interest and tax. That is deliberate: it shows how the business itself performs, independent of its financing and tax position. Net profit margin after tax is a separate figure and will be lower.