What Profit Margin Measures
Profit margin tells you how much of every dollar of sales you keep as profit. A 25% margin means that out of each $1.00 a customer pays, $0.25 is left after the costs you are counting. Because it is a percentage, margin lets you compare products, months and businesses of very different sizes.
Profit margin = (Revenue − Costs) ÷ Revenue × 100
The question is which costs you subtract. That gives the three margins on every income statement.
Gross, Operating and Net Margin
- Gross margin subtracts only the cost of goods sold (COGS): the direct cost of the products or services you sold, such as materials, inventory purchases and direct labor. It shows whether the product itself is profitable.
- Operating margin also subtracts operating expenses such as rent, salaries for non-production staff, marketing, software and insurance. It shows whether the business model works.
- Net margin subtracts everything, including interest and taxes. It is the bottom line: what the owners actually keep.
Gross margin = (Revenue − COGS) ÷ Revenue
Operating margin = Operating income ÷ Revenue
Net margin = Net income ÷ Revenue
Worked Example: A Small Online Store
One year of numbers
| Revenue | $240,000 |
| Cost of goods sold | $132,000 |
| Gross profit | $108,000 |
| Operating expenses (ads, software, shipping supplies, part-time help) | $72,000 |
| Operating income | $36,000 |
| Interest on a business loan | $3,000 |
| Income taxes | $7,000 |
| Net income | $26,000 |
- Gross margin: $108,000 ÷ $240,000 = 45%.
- Operating margin: $36,000 ÷ $240,000 = 15%.
- Net margin: $26,000 ÷ $240,000 = 10.8%.
Each margin points to different fixes. A weak gross margin means prices are too low or product costs too high. A healthy gross margin with a thin operating margin means overhead is eating the profit. A gap between operating and net margin points to debt costs or taxes.
Margin vs. Markup: The Most Expensive Mix-Up
Markup and margin use the same profit but divide by different numbers. Markup divides by cost; margin divides by price.
Markup = (Price − Cost) ÷ Cost
Margin = (Price − Cost) ÷ Price
An item that costs $50 and sells for $80 has $30 of profit. That is a 60% markup but only a 37.5% margin. Business owners who want a "50% margin" and add 50% to cost end up with a 33.3% margin instead, because $50 + 50% = $75, and $25 ÷ $75 = 33.3%.
| Markup | Equals margin of |
|---|---|
| 25% | 20.0% |
| 50% | 33.3% |
| 66.7% | 40.0% |
| 100% | 50.0% |
| 150% | 60.0% |
| 200% | 66.7% |
To convert: margin = markup ÷ (1 + markup), and markup = margin ÷ (1 − margin).
How to Price for a Target Margin
If you know your cost and the margin you need, divide the cost by one minus the margin:
Price = Cost ÷ (1 − Target margin)
A product that costs $18 to make and ship, priced for a 55% gross margin, needs a price of $18 ÷ 0.45 = $40.00. Check it: $40 − $18 = $22 profit, and $22 ÷ $40 = 55%.
Be complete about cost. For a product business, include the unit cost, inbound freight, packaging, payment processing fees and any marketplace fees that scale with each sale. Leaving out a 3% card fee and a 15% marketplace commission can turn a planned 40% margin into about 22%.
Contribution Margin and Break-Even
For pricing and planning, many owners also track contribution margin: price minus all variable costs per unit. It is the amount each sale contributes toward fixed costs like rent and salaries. Divide your monthly fixed costs by the contribution per unit to find how many units you must sell to break even. If fixed costs are $9,000 a month and each sale contributes $22, you need about 410 sales a month before you make any profit. Our break-even calculator does this math.
Ways to Improve Your Margin
- Raise prices selectively. A small increase on your best sellers usually moves margin more than cost cuts. Test on new customers first.
- Negotiate input costs. Order quantities, payment terms and alternative suppliers can lower COGS.
- Cut low-margin products that tie up inventory and attention, or bundle them with higher-margin items.
- Reduce discounting. A 20% discount on a product with a 40% margin removes half your profit on that sale.
- Watch per-order costs such as free shipping thresholds, returns and payment fees.
Common Mistakes
- Using revenue that includes sales tax. Tax you collect is not revenue; leave it out.
- Ignoring your own time. If you do the work yourself, the margin looks better than the business really is. Put a market wage on your hours.
- Comparing margins across industries. A grocery store and a software company have very different cost structures; compare against your own history and similar businesses.
- Confusing profit with cash. A profitable month can still leave you short if customers pay late or you bought inventory up front.
Run your own numbers with the profit margin calculator, which shows margin and markup side by side.
Margin for Service Businesses and Freelancers
If you sell time rather than products, "cost of goods sold" becomes the direct cost of delivering the work: contractor fees, materials used on a job, project-specific software and, if you have employees, the wages and payroll taxes for the hours they bill. A design studio that bills $12,000 for a project and pays a subcontractor $4,000 plus $500 of stock assets has a gross margin of ($12,000 − $4,500) ÷ $12,000 = 62.5% on that job.
Solo freelancers should price in what an employer would otherwise cover. Self-employment tax, health insurance, unpaid admin time, and software all come out of your rate. If only 60% of your working hours are billable, a $75 hourly rate is effectively $45 for every hour you work. Our guide to the 2026 self-employment tax rate shows one of the biggest of those costs.
Tracking Margin Over Time
A single margin figure is a snapshot. The trend tells you more. Calculate gross and net margin every month or quarter from your profit and loss statement, and put them side by side. A gross margin that slips a point or two each quarter often means supplier prices are rising faster than yours, or discounts are creeping in. The SBA recommends reviewing financial statements regularly so problems show up while they are still small. If you sell several product lines, calculate margin for each one separately; a blended margin can hide a line that loses money.
Frequently Asked Questions
What is the formula for profit margin?
Profit margin = profit ÷ revenue × 100. If you sell an item for $80 that cost $50, profit is $30 and margin is $30 ÷ $80 = 37.5%.
What is the difference between margin and markup?
Margin divides profit by the selling price; markup divides profit by the cost. The same $30 profit on a $50 cost and $80 price is a 37.5% margin but a 60% markup.
How do I price a product for a 40% margin?
Divide the cost by 1 minus the margin. A $30 cost at a 40% margin needs a price of $30 ÷ 0.60 = $50.
What is a good profit margin?
It varies widely by industry. Compare your margins with businesses like yours and with your own history rather than a single universal number.
Sources
- U.S. Small Business Administration, "Manage your finances" (sba.gov), guidance on income statements and financial analysis.
- IRS Publication 334, Tax Guide for Small Business (irs.gov), definitions of gross receipts and cost of goods sold.
This guide is for education. Figures are current as of October 2026; for tax, lending or legal decisions, check the rules that apply to you.