economics calculators

Profit Margin Calculator

Calculate your profit margin percentage from total revenue and total costs in seconds. Use it to quickly assess business profitability, set pricing, or benchmark performance against industry standards.

About this calculator

Profit margin expresses profit as a percentage of revenue, showing how many cents of every dollar earned are kept as profit after covering costs. The formula is: Profit Margin (%) = ((Revenue − Costs) / Revenue) × 100. Revenue is the total income from sales before any deductions; costs here represent total expenses, which may include cost of goods sold (COGS), operating expenses, or all expenses depending on whether you are calculating gross, operating, or net margin. The subtraction (Revenue − Costs) gives the absolute profit. Dividing by revenue — not by cost — is the standard convention because it relates profit to the top line, making comparisons across companies of different sizes meaningful. A higher margin indicates more efficient cost management. Retailers often operate on margins of 2–5%, while software companies can exceed 70%.

How to use

Say your online store generated $85,000 in revenue last quarter and incurred $62,000 in total costs. First, calculate profit: $85,000 − $62,000 = $23,000. Then apply the formula: Profit Margin = (23,000 / 85,000) × 100 = 27.06%. This means you keep roughly 27 cents of profit for every dollar of revenue. If a competitor in your industry averages 35%, this benchmark signals room to cut costs or raise prices.

Frequently asked questions

What is the difference between gross profit margin and net profit margin?

Gross profit margin deducts only the direct cost of goods sold (COGS) from revenue, reflecting how efficiently a company produces its products before overhead. Net profit margin deducts all expenses — COGS, operating costs, interest, and taxes — to show what remains for shareholders after every obligation is met. A company can have a healthy gross margin but a thin net margin if administrative or financing costs are high. Tracking both helps pinpoint exactly where profitability is leaking. This calculator uses total costs, so it most closely resembles net margin when all expenses are included.

How do I use profit margin to set the right price for my product?

Start with your target profit margin and known costs, then work backwards using the rearranged formula: Revenue = Costs / (1 − Target Margin / 100). For example, if your costs are $50 and you want a 40% margin, the required price is $50 / (1 − 0.40) = $83.33. This is different from a markup calculation, which expresses profit as a percentage of cost rather than revenue. Confusing the two is a common pricing mistake. Once you have your floor price, compare it against market rates and customer willingness to pay to find the optimal price point.

Why is profit margin calculated as a percentage of revenue rather than a percentage of cost?

Expressing margin as a share of revenue creates a standardised metric that is comparable across businesses of any size and in any industry, because everyone has revenue as the common reference point. It directly answers the question: 'For every dollar that comes in, how much do I keep?' Using cost as the denominator gives you markup, which answers a different question: 'How much did I add on top of what I spent?' Both are useful, but margin is the convention in financial reporting, investor analysis, and industry benchmarking — making it the appropriate metric when comparing your business to competitors or evaluating performance over time.