Calculate profit margin percentage from cost and selling price (revenue).
Profit margin measures how much of each dollar of revenue is kept as profit.
Profit = Revenue - Cost
Profit Margin (%) = (Profit / Revenue) x 100
Markup (%) = (Profit / Cost) x 100
For example, if cost is $30 and revenue is $50: Profit = $20, Margin = 40%, Markup = 66.67%.
Note: Margin and markup are different. Margin is profit as a percentage of revenue. Markup is profit as a percentage of cost.
Profit margin tells you what percentage of your revenue is actual profit after covering costs. Think of it like a glass of juice: if you sell a glass for $5 and the ingredients cost $3, your profit is $2, and your margin is 40%. That means 40 cents of every dollar you earn is profit. Profit margin is one of the most important numbers in business because it reveals whether you are pricing your products correctly.
A high margin means more of each sale becomes profit. Luxury brands often have 60-80% margins, while grocery stores operate on razor-thin 1-3% margins and make up for it with volume. Understanding margin helps entrepreneurs set prices, investors evaluate companies, and freelancers decide whether a project is worth taking. Margin is commonly confused with markup -- they use different denominators and always produce different numbers.
Formula: Margin = ((Revenue - Cost) / Revenue) x 100
Example: You sell handmade candles for $25 each. Materials and labor cost $10 per candle.
Step 1: Calculate profit: $25 - $10 = $15.
Step 2: Divide profit by revenue: $15 / $25 = 0.60.
Step 3: Multiply by 100: 0.60 x 100 = 60% margin.
Margin vs. Markup: The same candle has a 60% margin but a 150% markup. Margin divides profit by revenue ($15/$25), while markup divides profit by cost ($15/$10). The margin is always smaller than the markup for the same transaction.
| Cost | Revenue | Profit | Margin | Markup |
|---|---|---|---|---|
| $10 | $20 | $10 | 50% | 100% |
| $30 | $50 | $20 | 40% | 66.67% |
| $15 | $25 | $10 | 40% | 66.67% |
| $5 | $15 | $10 | 66.67% | 200% |
| $40 | $60 | $20 | 33.33% | 50% |
| $75 | $100 | $25 | 25% | 33.33% |
| $80 | $100 | $20 | 20% | 25% |
| $90 | $100 | $10 | 10% | 11.11% |
| $200 | $500 | $300 | 60% | 150% |
| $50 | $75 | $25 | 33.33% | 50% |
Margin is profit divided by revenue (selling price). Markup is profit divided by cost. A 50% margin means half of revenue is profit. A 50% markup means profit is half the cost. They always differ: a 50% margin equals a 100% markup.
It varies by industry. Software companies average 70-80%, restaurants 3-9%, retail 2-5%, and consulting 15-25%. A "good" margin is one that sustains your business and compares favorably to competitors in your industry.
Use the formula: Markup = Margin / (1 - Margin). For example, a 40% margin (0.40): Markup = 0.40 / 0.60 = 0.6667 = 66.67%.
Gross margin only subtracts the direct cost of goods sold from revenue. Net margin subtracts all expenses including rent, salaries, taxes, and interest. Net margin is always lower than gross margin and gives a more complete picture of profitability.
Yes. A negative margin means you are selling below cost and losing money on each sale. This can happen during clearance sales or when a startup is intentionally pricing low to gain market share.
Use the formula: Price = Cost / (1 - Desired Margin). If your cost is $30 and you want a 40% margin: $30 / (1 - 0.40) = $30 / 0.60 = $50.
Only if the cost is zero, meaning you obtained the product for free. In practice, 100% margin is nearly impossible because there are almost always some costs involved.
Margin normalizes profit as a percentage, making it easy to compare across products, time periods, and companies of different sizes. A $10,000 profit means very different things for a company with $20,000 in revenue (50% margin) versus $500,000 in revenue (2% margin).
Profit margin has been a cornerstone of commerce since the earliest days of trade. Ancient merchants along the Silk Road instinctively understood that the difference between what they paid for goods and what they sold them for determined their livelihood. The formalization of margin as a percentage came with the rise of modern accounting in the 15th century, when Italian merchants developed double-entry bookkeeping to track revenues and costs systematically. Today, profit margin remains the single most important metric for evaluating business health, used by everyone from a small Etsy shop owner to the CFO of a Fortune 500 company.
There are several types of profit margin, each revealing different aspects of a business. Gross profit margin measures revenue minus the direct cost of goods sold (COGS), showing how efficiently a company produces its products. Operating profit margin subtracts operating expenses like rent, salaries, and utilities from gross profit, revealing how well the core business operations perform. Net profit margin is the bottom line -- it subtracts all expenses including taxes, interest, and depreciation, showing what percentage of every revenue dollar actually becomes profit for the owners.
Understanding margin is critical because it directly impacts decision-making at every level. Pricing decisions, supplier negotiations, product line evaluations, expansion plans, and investor valuations all depend on margin analysis. A business growing its revenue by 50% but seeing margins shrink from 30% to 15% is actually becoming less profitable per dollar earned -- a dangerous trend that raw revenue numbers can mask. Margin analysis cuts through vanity metrics to reveal the true economic engine of a business.
In the modern economy, margin benchmarks vary dramatically by industry. Software-as-a-Service (SaaS) companies routinely achieve 70-85% gross margins because their marginal cost of serving an additional customer is nearly zero. Grocery stores operate on razor-thin 1-3% net margins but compensate with enormous volume. Restaurants typically see 3-9% net margins, with food costs consuming 28-35% of revenue and labor another 25-35%. Consulting firms enjoy 15-25% net margins thanks to low overhead and high billing rates.
1. Retail clothing store: A boutique buys a dress wholesale for $45 and sells it for $120. Profit = $75, margin = 62.5%. This high margin covers rent, staff salaries, and unsold inventory that must be discounted at end of season.
2. Restaurant food cost: A pasta dish costs $4.50 in ingredients and sells for $18. Gross margin = 75%. However, after labor, rent, and utilities, the restaurant keeps only about $1.50 per dish (8.3% net margin).
3. Amazon FBA seller: A product costs $8 to manufacture and ship to Amazon, sells for $24.99. After Amazon fees ($7.50) and advertising ($3), net profit = $6.49. Effective margin on revenue = 26%.
4. SaaS company: A software subscription costs $49/month per user. Server and support costs = $5/user/month. Gross margin = 89.8%. Once built, the marginal cost per customer is minimal.
5. Freelance web designer: Charges $5,000 for a website. Direct costs (hosting, stock photos, subcontractor) = $800. Margin = 84%. Time invested: 40 hours, making the effective hourly rate $105/hour.
6. Gas station: Gasoline is sold at razor-thin margins of 1-3% (about $0.05-0.10 per gallon profit). The real money is in the convenience store inside, where snacks and drinks carry 40-60% margins.
7. iPhone manufacturer: The iPhone 15 Pro costs approximately $550 to manufacture but retails for $999. Apple's hardware margin is about 45%, but its services (App Store, iCloud) have margins exceeding 70%.
8. Coffee shop: A latte costs $0.75 in ingredients (milk, espresso, cup) and sells for $5.50. Gross margin = 86.4%. After rent, labor, and equipment depreciation, net margin drops to 5-10%.
Technology and software: The tech sector consistently posts the highest margins in the economy. Software companies like Microsoft and Adobe maintain gross margins of 85-90% because digital products have near-zero marginal costs. Once the software is built, selling one more license costs almost nothing.
Healthcare and pharmaceuticals: Drug manufacturers operate with gross margins of 60-80% on patented medications, reflecting massive R&D investments that must be recouped during the patent period. Generic drug manufacturers see lower margins of 40-60%. Hospitals operate on 3-8% net margins.
Manufacturing and construction: Physical product manufacturers typically see gross margins of 25-45%, depending on the complexity and customization of their products. Construction companies operate on tighter 8-15% net margins due to material costs, labor intensity, and project risk.
Financial services: Banks earn margin through the spread between what they pay depositors and what they charge borrowers. Net interest margins typically range from 2-4%. Investment management firms command 30-50% margins on fees charged for managing client assets.
When setting prices, work backward from your desired margin. If you want a 40% margin and your cost is $30, use the formula: Price = Cost / (1 - Desired Margin) = $30 / 0.60 = $50. This ensures you hit your target margin exactly rather than guessing.
Walmart, the world's largest retailer by revenue, operates on a net profit margin of only about 2.4%. On $611 billion in annual revenue, that translates to roughly $14.7 billion in profit. The company's strategy proves that thin margins combined with massive scale can generate enormous absolute profits.
Never confuse margin with markup. A 50% markup on a $100 cost gives you a $150 price and a 33.3% margin -- not a 50% margin. If someone says "we need 50% margin" and you apply a 50% markup, you will underprice by a significant amount.
| Margin | Markup | Multiplier | Example (Cost $100) |
|---|---|---|---|
| 10% | 11.11% | 1.111x | Sell at $111.11 |
| 15% | 17.65% | 1.176x | Sell at $117.65 |
| 20% | 25.00% | 1.250x | Sell at $125.00 |
| 25% | 33.33% | 1.333x | Sell at $133.33 |
| 30% | 42.86% | 1.429x | Sell at $142.86 |
| 40% | 66.67% | 1.667x | Sell at $166.67 |
| 50% | 100.00% | 2.000x | Sell at $200.00 |
| 60% | 150.00% | 2.500x | Sell at $250.00 |
| 70% | 233.33% | 3.333x | Sell at $333.33 |
| 80% | 400.00% | 5.000x | Sell at $500.00 |
Negotiate supplier costs: Even a 5% reduction in COGS directly increases your gross margin. Request volume discounts, compare multiple suppliers, and consider longer payment terms in exchange for lower prices. Many suppliers offer 2-5% discounts for early payment.
Reduce waste and inefficiency: Manufacturing waste, unsold inventory, and process bottlenecks all erode margins. Implementing lean principles can recover 5-15% in wasted costs. Restaurants that reduce food waste from 10% to 5% can see their margins improve by 1-2 full percentage points.
Increase prices strategically: A 1% price increase on a 10% margin business increases profits by 10%. Test small price increases (3-5%) and monitor sales volume. Many businesses find they can raise prices with minimal customer pushback, especially when adding perceived value through improved packaging, service, or features.
Focus on high-margin products: Analyze your product mix and identify which items generate the highest margins. Actively promote, upsell, and feature these products. A restaurant might make only 5% margin on entrees but 85% on beverages -- training staff to upsell drinks can dramatically improve overall margins.
Profit margin is closely related to several other financial calculations. The Markup Calculator helps you determine selling prices from cost -- the inverse of margin calculation. The Percentage Calculator handles general percentage computations that underpin margin math. For evaluating investment returns rather than product profitability, use the ROI Calculator. The Discount Calculator shows how discounts impact your selling price and margin. For tracking how margins change over time, the Percentage Increase Calculator and Percentage Decrease Calculator quantify those shifts. Finally, the Compound Interest Calculator shows how reinvesting profits at your margin rate compounds wealth over time.