How to Calculate Profit Margin: Gross, Net & Markup
You can be busy, fully booked, and pulling in solid revenue, and still barely make money. That gap between what comes in and what you actually keep is your profit margin, and it is the number that decides whether a business is worth running. Learning how to calculate profit margin takes about five minutes, but most owners never sit down to do it, so they price by gut feel and wonder where the cash went. This guide walks through the exact formulas, the difference between gross, operating, and net margin, the margin versus markup trap that quietly drains money, and the practical ways to push your margin higher.
The short version
Profit margin is profit divided by revenue, times 100. Gross margin uses the cost of goods sold, net margin uses every expense. Always divide by the selling price, not the cost, or you are measuring markup instead. A 10 percent net margin is roughly average, and the fastest way to lift yours is often to stop losing sales you already earned.
What profit margin actually measures
Profit margin tells you how many cents of every dollar of revenue you keep as profit. Revenue is the total money coming in. Profit is what remains after you subtract costs. The margin turns that into a percentage so you can compare a 500 dollar sale to a 50,000 dollar sale on equal footing, and compare this month to last month even when the numbers move around.
The reason percentage matters more than the raw dollar amount is simple. A business doing one million dollars in revenue at a 2 percent net margin keeps 20,000 dollars. A business doing 300,000 dollars at a 15 percent margin keeps 45,000 dollars. The smaller business is more than twice as profitable. Revenue is vanity, margin is sanity.
The profit margin formula
Every profit margin uses the same core formula. Only the definition of profit changes depending on which costs you subtract.
Profit Margin = ( Profit / Revenue ) × 100
Say a coffee shop takes in 20,000 dollars in a month. The coffee, milk, cups, and other direct ingredients cost 7,000 dollars. That leaves 13,000 dollars in gross profit. Divide 13,000 by 20,000 and multiply by 100, and you get a 65 percent gross margin. Rent, wages, and utilities take another 10,000 dollars, leaving 3,000 dollars in operating profit, a 15 percent operating margin. After 600 dollars in taxes and interest, the owner keeps 2,400 dollars, a 12 percent net margin. Same revenue, three very different numbers, each answering a different question.
Gross vs operating vs net margin
People say "profit margin" as if it is one number, but there are three, and they tell you very different things. Reading all three together is how you find where the money is actually leaking.
| Margin type | What you subtract | Question it answers | Coffee shop example |
|---|---|---|---|
| Gross margin | Cost of goods sold only | Does my pricing cover what the product costs to make? | 65 percent |
| Operating margin | COGS plus rent, wages, utilities | Is the core business profitable before taxes and loans? | 15 percent |
| Net margin | Every expense, including taxes and interest | How much do I actually keep? | 12 percent |
The gaps between the three are the story. A high gross margin but a low net margin means your product is priced fine, but overhead is eating the profit. A low gross margin means the problem starts at the price tag, and no amount of cutting overhead will fix it.
Margin vs markup: the mistake that costs real money
This one trips up more business owners than any other, and it directly costs them profit. Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. They are not the same, and they are never equal.
Buy something for 50 dollars, sell it for 100. Your markup is 50 divided by 50, which is 100 percent. But your margin is 50 divided by 100, which is only 50 percent. If you set prices thinking you are earning a 40 percent margin when it is really a 40 percent markup, you are quietly making far less than you planned. Here is how common markups translate into the margin you actually keep.
| Markup on cost | Actual profit margin |
|---|---|
| 20 percent | 16.7 percent |
| 25 percent | 20 percent |
| 50 percent | 33.3 percent |
| 100 percent | 50 percent |
| 200 percent | 66.7 percent |
The rule of thumb: to turn a markup into a margin, divide the markup by one plus itself. A 50 percent markup is 0.5 divided by 1.5, which lands at 33.3 percent margin. When a supplier or a spreadsheet quotes you a percentage, always ask which one it means.
What is a good profit margin by industry?
There is no universal target, because a healthy margin in one industry would be a disaster in another. Grocery stores survive on razor-thin margins by selling huge volume, while a consulting firm expects far more from each dollar. These are rough net margin ranges to sanity-check yours against.
| Industry | Typical net margin |
|---|---|
| Grocery and retail | 2 to 5 percent |
| Restaurants and cafes | 3 to 9 percent |
| Construction and trades | 5 to 10 percent |
| Ecommerce | 5 to 12 percent |
| Professional services | 10 to 20 percent |
| Software and SaaS | 15 to 40 percent |
Use these as a compass, not a verdict. Your rent, your location, and how you run the business swing the numbers a lot. The point is to know where you sit and whether the trend is moving the right way.
Four ways to actually improve your margin
Once you know your margin, the goal is to move it. There are only a few real levers, and the last one is the one most owners never think to pull.
Raise prices, carefully
A small price increase flows almost entirely into profit, because your costs barely move. Raising prices 5 percent on a 10 percent margin can lift profit by half. Most owners fear losing customers, but a modest, well-communicated bump rarely does, especially if your service is good.
Lower the cost of what you sell
Renegotiate with suppliers, buy in smarter quantities, cut waste, or swap a pricey input for a comparable one. Every dollar shaved off the cost of goods sold lands straight in your gross margin without touching the price your customer sees.
Trim the overhead that hides
Subscriptions you forgot about, tools nobody uses, processes that eat hours. Operating expenses creep up quietly and drag net margin down. An honest review of where the money goes each month usually surfaces a few easy cuts.
Capture the revenue you already lose
This is the hidden lever. The customer who messaged after hours and never got a reply, the quote that never got a follow-up, the booking that slipped away. That sale cost you nothing extra to earn, so recovering it drops almost entirely to your bottom line. Plugging those leaks can move your margin more than any price change.
Common profit margin mistakes
A few errors show up again and again, and each one paints a rosier picture than reality. Watch for these before you trust your numbers.
Confusing margin with markup
The classic. Dividing by cost instead of price makes your margin look bigger than it is and leads to underpricing across the board.
Forgetting your own time
If you do not pay yourself a wage in the numbers, your margin is fiction. Include the cost of your hours the way you would any employee.
Ignoring transaction fees
Card processing, platform commissions, and payment fees quietly take 2 to 3 percent of every sale. On a thin margin, that is a big share of your profit.
Averaging across products
One blended margin can hide a money-losing product propped up by a star. Calculate margin per product or service, not just for the whole business.
Frequently asked questions
What is the difference between margin and markup?+
What is the formula for profit margin?+
What is a good profit margin?+
How do I increase my profit margin?+
Should I use gross, operating, or net margin?+
The bottom line
Profit margin is the number that tells you whether all the effort is worth it, and calculating it is the easy part. Moving it is the real work, and the most overlooked lever is not cutting costs or raising prices, it is refusing to lose sales you already earned. Every lead that goes unanswered overnight or never gets a second follow-up is margin walking out the door, and unlike a price hike, catching it costs you nothing extra.