Profit Margin Calculator

Whether you're running a small business, pricing a new product, or just trying to make sense of your financials, knowing your profit margin is essential. It tells you exactly how much of each dollar in revenue you actually keep after covering costs. This calculator and guide walks you through everything: the formulas, the different types of margins, real examples, and why it all matters. Punch in your numbers and let's figure out where you really stand.

Enter Details

Result

Enter revenue and cost for margin % and profit.

Profit margin % = (revenue − cost) ÷ revenue × 100.

How to Calculate Profit Margin

At its simplest, profit margin is the percentage of revenue left over after you subtract costs. The exact costs you subtract depend on which type of margin you're calculating, but the core idea stays the same: revenue comes in, costs go out, and what's left is your profit.

To calculate any profit margin, you need two things: your profit (in dollars) and your total revenue. Divide profit by revenue, then multiply by 100 to get a percentage. That percentage is your margin.

Most businesses track at least two or three types of margin at once. Each one tells a slightly different story about your financial health, so it's worth understanding all of them rather than relying on just one number.

Profit Margin Formula Explained (Profit ÷ Revenue × 100)

The universal formula looks like this:

  • Profit Margin (%) = (Profit ÷ Revenue) × 100

So if your business brought in $50,000 in revenue and your profit was $10,000, your margin would be 20%. You kept 20 cents of every dollar earned.

The tricky part is defining "profit." Depending on what costs you include, you'll land on a different profit figure, which is exactly why there are multiple types of margin. Gross profit only subtracts the direct cost of producing your goods. Net profit subtracts everything, including taxes and interest. Operating profit sits somewhere in between.

The revenue figure, though, stays consistent across all three. It's always your total sales before any costs are removed. Never use a net-of-returns or adjusted revenue figure unless you're specifically comparing against a benchmark that does the same.

Gross Profit Margin vs Net Profit Margin

These two are the most commonly referenced margins, and they measure very different things.

Gross profit margin focuses on production efficiency. It only subtracts the cost of goods sold (COGS) from revenue. If you sell furniture and it costs you $300 in materials and labor to build a chair you sell for $500, your gross profit is $200 and your gross margin is 40%. This number tells you how efficiently you're producing your product.

Net profit margin is the bottom line. It subtracts everything: COGS, operating expenses, interest, taxes, and any other costs. It tells you what percentage of revenue actually becomes profit after all the bills are paid. A business can have a solid gross margin but a weak net margin if overhead costs are high.

MetricWhat It SubtractsWhat It Tells You
Gross Profit MarginCost of Goods Sold (COGS)Production and pricing efficiency
Net Profit MarginAll costs (COGS + operating + taxes + interest)Overall business profitability

Both numbers matter. A healthy gross margin with a poor net margin often signals a problem with overhead spending, not with the product itself.

Operating Profit Margin Explained

Operating profit margin sits between gross and net. It accounts for all operating expenses like rent, utilities, salaries, and marketing, but it leaves out interest payments and income taxes.

The formula: Operating Profit Margin (%) = (Operating Income ÷ Revenue) × 100

Operating income is sometimes called EBIT (Earnings Before Interest and Taxes). It's a useful number because it strips out financing decisions and tax strategies, giving you a cleaner look at how well the business itself operates day-to-day.

For example, if two competing businesses have the same gross margin but one has much lower operating expenses, the one with tighter overhead will show a higher operating margin. Investors and lenders often pay close attention to this number because it reflects management efficiency more directly than gross margin does.

Step-by-Step Profit Margin Calculation

Here's a straightforward process you can follow for any type of margin:

  1. Start with total revenue. Add up all income from sales before any deductions.
  2. Identify your costs. For gross margin, that's COGS only. For operating margin, add in operating expenses. For net margin, include everything.
  3. Subtract costs from revenue. This gives you your profit in dollar terms.
  4. Divide profit by revenue. Keep the result as a decimal for now.
  5. Multiply by 100. This converts the decimal into a percentage, which is your margin.

Say a business has $200,000 in revenue, $80,000 in COGS, and $60,000 in operating expenses, with another $15,000 in taxes and interest.

  • Gross profit: $200,000 - $80,000 = $120,000. Gross margin: 60%
  • Operating profit: $120,000 - $60,000 = $60,000. Operating margin: 30%
  • Net profit: $60,000 - $15,000 = $45,000. Net margin: 22.5%

Running all three gives you a complete picture. Each one peels back another layer of costs.

Profit Margin Examples with Revenue and Costs

Sometimes seeing real numbers laid out makes everything click. Here are a few scenarios across different business types.

Business TypeRevenueCOGSOperating ExpensesNet ProfitNet Margin
Retail Store$500,000$300,000$120,000$80,00016%
Software Company$1,000,000$100,000$400,000$500,00050%
Restaurant$300,000$90,000$150,000$60,00020%
Freelance Consultant$120,000$5,000$20,000$95,00079%

Notice how dramatically margins vary by industry. Software companies typically enjoy high margins because the cost to deliver each additional unit is low. Restaurants and retail businesses deal with much higher ongoing costs, which compresses margins significantly.

There's no universal "good" margin. What matters is whether your margin is sustainable, competitive within your industry, and trending in the right direction over time.

Profit Margin vs Markup Difference

These two terms get mixed up constantly, and the confusion can lead to real pricing mistakes.

Markup is the percentage you add on top of your cost to arrive at a selling price. Margin is the percentage of the selling price that becomes profit. Same dollars, different math.

Here's a quick example: You buy a product for $60 and sell it for $100.

  • Markup: ($100 - $60) ÷ $60 × 100 = 66.7%
  • Margin: ($100 - $60) ÷ $100 × 100 = 40%

The profit in dollars is the same ($40), but the percentages look very different depending on which formula you use. If you set prices using a markup percentage but report margins to investors or compare against industry benchmarks, you need to make sure everyone's speaking the same language.

A common mistake: someone sets a 50% markup thinking they'll achieve a 50% margin. They won't. A 50% markup only yields a 33.3% margin. Always double-check which metric a benchmark or target is referring to before applying it to your pricing strategy.

Why Profit Margin Matters for Business Growth

Profit margin isn't just an accounting number. It's a direct signal of how scalable and resilient your business is.

A business with thin margins needs to generate enormous sales volume just to stay profitable. One unexpected expense, a slow quarter, or a supplier price increase can wipe out profit entirely. Higher margins give you a cushion. They also give you the cash flow to reinvest in growth: hiring, marketing, new products, better equipment.

Investors and lenders pay close attention to margins when evaluating a business. A revenue figure alone doesn't tell the whole story. Two companies can both do $1 million in sales, but if one keeps 5% and the other keeps 35%, they're in very different financial positions.

Margins also help you make smarter decisions about which products, services, or customers to prioritize. If you track margin by product line, you'll often find that a smaller slice of your offerings drives the majority of your profit. Doubling down on high-margin work, while phasing out low-margin work, can dramatically improve overall business health without requiring any increase in total revenue.

Tracking your margin over time is just as important as knowing today's number. A margin that's slowly declining often signals rising costs, pricing pressure, or an inefficient operation before those problems show up in more obvious ways.

Other Finance Calculators

Explore all