Margin Calculator – Profit Margin & Markup
Profit
0
Margin %
0%
Markup %
0%
How Profit Margin Works
Profit margin is the percentage of revenue that remains as profit after subtracting the cost of goods sold. It is one of the most widely used financial metrics for evaluating business performance, pricing strategy, and operational efficiency. According to the U.S. Small Business Administration (SBA), understanding your margins is critical for sustainable growth and cash flow management.
Margin and markup both describe profit, but from different perspectives. Margin expresses profit as a percentage of the selling price (revenue), while markup expresses it as a percentage of the cost. A product bought for $60 and sold for $100 yields a 40% margin but a 66.7% markup. This distinction matters because confusing the two can lead to significant pricing errors and lost revenue.
Businesses across every industry rely on margin analysis. Retailers use it to evaluate product-line profitability. Manufacturers use it to assess production efficiency. Service providers use it to set billing rates. This calculator supports three modes: find margin from cost and revenue, find revenue from cost and target margin, or find cost from revenue and target margin, making it useful for pricing decisions, break-even analysis, and financial planning.
The Profit Margin Formula
Profit margin is calculated using a straightforward formula that divides profit by revenue. The standard formula, used by financial analysts and accounting professionals worldwide, is:
Margin % = ((Revenue - Cost) / Revenue) x 100
- Revenue (also called selling price or sales) — the total amount received from the customer
- Cost (also called COGS or cost of goods sold) — the direct cost to produce or acquire the product
- Profit — the difference between revenue and cost (Revenue - Cost)
Worked example: A retailer buys a jacket for $45 and sells it for $80. Profit = $80 - $45 = $35. Margin = ($35 / $80) x 100 = 43.75%. The corresponding markup is ($35 / $45) x 100 = 77.78%. Notice how the same $35 profit produces very different percentages depending on the base used.
Key Terms You Should Know
- Gross Margin — profit margin calculated using only the cost of goods sold (COGS), excluding operating expenses, taxes, and interest. This shows production or sourcing efficiency.
- Net Margin — profit margin calculated after all expenses including operations, taxes, interest, and depreciation. According to Investopedia, net margin is the ultimate measure of a company's overall profitability.
- Operating Margin — profit margin calculated after operating expenses but before taxes and interest, revealing how well core business operations perform.
- Contribution Margin — the amount each unit sold contributes toward covering fixed costs, calculated as revenue minus variable costs per unit.
- Markup — the percentage added to cost to arrive at the selling price. A 100% markup means selling at double the cost.
Profit Margins by Industry
Profit margins vary dramatically across industries. According to data from NYU Stern School of Business, average net profit margins in 2025 range from under 2% in grocery to over 50% in software. Understanding industry benchmarks helps you evaluate whether your margins are competitive.
| Industry | Avg Gross Margin | Avg Net Margin |
|---|---|---|
| Grocery / Supermarkets | 28-30% | 1-3% |
| Retail (General) | 25-35% | 2-5% |
| Restaurants | 55-65% | 3-9% |
| Manufacturing | 25-35% | 5-10% |
| Consulting / Professional Services | 50-70% | 15-25% |
| Software / SaaS | 70-85% | 20-40% |
| Pharmaceuticals | 65-80% | 15-25% |
Practical Examples
Example 1 — E-commerce store: An online seller buys phone cases for $4.50 each and sells them for $19.99. Profit = $15.49. Margin = ($15.49 / $19.99) x 100 = 77.5%. Markup = ($15.49 / $4.50) x 100 = 344.2%. This high margin is typical for accessories but must cover shipping, returns, and advertising costs.
Example 2 — Restaurant dish: A pasta dish costs $3.20 in ingredients and sells for $14.00. Margin = ($10.80 / $14.00) x 100 = 77.1%. However, after labor, rent, and overhead, the restaurant's net margin on that dish may be only 5-8%. Use our profit margin calculator to explore different cost structures.
Example 3 — Freelance consultant: A consultant has $2,000/month in overhead costs and bills $8,000/month. Gross margin = ($6,000 / $8,000) x 100 = 75%. After taxes and health insurance, the net margin drops to approximately 45-50%. Use the freelancer rate calculator to ensure your hourly rate covers all costs.
Tips to Improve Your Profit Margin
- Negotiate supplier costs: Even a 5% reduction in COGS flows directly to your margin. Bulk purchasing, long-term contracts, and competitive bidding are proven strategies.
- Increase perceived value: Premium packaging, better customer service, and brand positioning allow higher prices without proportional cost increases.
- Reduce waste and shrinkage: The National Retail Federation reports that retail shrinkage (theft, damage, errors) averages 1.6% of sales, directly eroding margins.
- Optimize product mix: Focus marketing spend on high-margin items. Use this calculator to compare margins across your product line and allocate resources accordingly.
- Monitor margins monthly: Track gross and net margins over time. Declining margins may indicate rising costs, pricing pressure, or operational inefficiency.
- Automate where possible: Technology investments that reduce labor costs per unit sold improve margins at scale.
Margin vs Markup Quick Reference
One of the most common business mistakes is confusing margin with markup. The table below shows how the same cost-to-price relationship produces different percentages. A 50% margin requires a 100% markup, while a 50% markup yields only a 33.3% margin.
| Markup % | Equivalent Margin % | Example (Cost $100) |
|---|---|---|
| 15% | 13.0% | Sell at $115 |
| 25% | 20.0% | Sell at $125 |
| 50% | 33.3% | Sell at $150 |
| 100% | 50.0% | Sell at $200 |
| 200% | 66.7% | Sell at $300 |
Frequently Asked Questions
What is the difference between margin and markup?
Margin is the percentage of the selling price (revenue) that represents profit, while markup is the percentage of the cost that is added to get the selling price. For example, buying a product for $60 and selling it for $100 gives a 40% margin ($40/$100) but a 66.7% markup ($40/$60). Margin will always be a lower percentage than markup for the same transaction because revenue is always larger than cost when a profit exists. When setting prices, choose one metric and apply it consistently to avoid confusion in your pricing strategy.
What is the difference between gross margin and net margin?
Gross margin only considers the cost of goods sold (COGS), while net margin includes all business expenses such as operating costs, taxes, interest, and overhead. A company might have a 60% gross margin but only a 10% net margin after accounting for rent, salaries, marketing, and taxes. According to NYU Stern data, the average S&P 500 company had a gross margin of approximately 36% and a net margin of about 8% in 2025. Tracking both metrics together reveals whether profitability problems stem from product costs or operational expenses.
How do you calculate profit margin from cost and selling price?
Profit margin is calculated as: Margin % = ((Selling Price - Cost) / Selling Price) x 100. For example, if your selling price is $200 and your cost is $150, the profit is $50 and the margin is ($50/$200) x 100 = 25%. This means 25 cents of every dollar in revenue is profit. To reverse-engineer the required selling price from a target margin, use the formula: Selling Price = Cost / (1 - Margin % / 100). For a $150 cost with a 25% target margin: $150 / (1 - 0.25) = $200.
What is a good profit margin for a small business?
A good profit margin depends heavily on the industry. The SBA considers a net margin of 10% average, 20% high, and 5% low for most small businesses. Retail businesses typically operate on 2-5% net margins, restaurants average 3-9%, service businesses may reach 15-25%, and software companies can achieve 20-40%. Rather than comparing to a universal standard, benchmark your margins against competitors in your specific industry. Focus on consistent improvement year over year rather than hitting an arbitrary number.
How do I convert between margin and markup percentages?
To convert markup to margin: Margin % = Markup % / (100 + Markup %) x 100. For example, a 50% markup = 50 / 150 x 100 = 33.3% margin. To convert margin to markup: Markup % = Margin % / (100 - Margin %) x 100. A 33.3% margin = 33.3 / 66.7 x 100 = 49.9% markup. Use our markup calculator to quickly toggle between the two perspectives and avoid costly pricing mistakes.
Why is my profit margin decreasing even though sales are growing?
Growing sales with declining margins typically indicates rising costs that outpace revenue increases. Common causes include higher raw material prices, discounting to drive volume, increased shipping or labor costs, or a shift in product mix toward lower-margin items. To diagnose the issue, calculate margins at the product level rather than just the company level. A break-even analysis can reveal the minimum sales volume needed to cover costs at your current margin, helping you decide whether to raise prices, cut costs, or adjust your product mix.