Profit Margin Calculator
Understanding Profit Margin and What Your Numbers Are Telling You
Revenue is vanity, profit is sanity. A business with $500,000 in revenue and $480,000 in costs is in a far more precarious position than one with $100,000 in revenue and $60,000 in costs. Profit margin cuts through the noise and tells you the real story: of every dollar that comes in, how much do you actually keep?
How to Use This Calculator
Enter your revenue (total sales) and your cost of goods sold (COGS): the direct costs of producing or delivering what you sell. Hit Calculate Margin to see your gross profit, profit margin percentage, markup, and cost ratio instantly.
How the Math Works
Three related formulas, each measuring profitability from a different angle:
Margin and markup always give different numbers from the same data: margin is relative to revenue, markup is relative to cost. A product that costs $65 and sells for $100 has a 35% margin but a 53.8% markup.
Real-World Example
Using the calculator's defaults ($50,000 revenue, $32,500 COGS):
- Gross profit: $50,000 − $32,500 = $17,500
- Profit margin: $17,500 ÷ $50,000 = 35%
- Markup: $17,500 ÷ $32,500 = 53.8%
- Cost ratio: $32,500 ÷ $50,000 = 65%
This means 65 cents of every dollar of revenue goes to cover the cost of goods, and 35 cents is gross profit available to cover operating expenses and generate net income.
Gross Margin vs. Net Margin: What's the Difference?
Gross profit margin (what this calculator shows) only subtracts the direct cost of producing or delivering your product or service. It does not include operating expenses like rent, salaries, marketing, software, or utilities.
Net profit margin subtracts everything: COGS, operating expenses, interest, and taxes. It's the true bottom line. A business can have a healthy gross margin but a terrible net margin if operating costs are out of control. Use gross margin to evaluate product/service profitability; use net margin to evaluate overall business health.
Profit Margin vs. Markup: Why the Confusion?
These two numbers are frequently confused because both describe the relationship between cost and price, just from opposite directions. Margin uses revenue as the base; markup uses cost as the base. They are mathematically related:
A 35% margin equals a 53.8% markup. A 50% markup equals a 33.3% margin. When someone says they "mark up" their products, ask whether they mean margin or markup, as the difference is significant.
Industry Benchmarks
What constitutes a "good" profit margin varies enormously by industry:
- Software / SaaS: 60–80%+ gross margin is common
- Professional services: 30–50%
- Retail: 20–50% depending on category
- Manufacturing: 10–25%
- Grocery / food retail: 2–5%
- Restaurants: 3–9%
Compare yourself to your industry, not to a generic "good margin" number. A 10% gross margin is catastrophic for a SaaS company and perfectly normal for a grocery store.
Frequently Asked Questions
What should I include in cost of goods sold?
COGS includes the direct costs of producing your product or delivering your service: raw materials, direct labor, manufacturing overhead, and purchasing costs. It does not include indirect expenses like office rent, marketing, or administrative salaries. Those are operating expenses that reduce net margin, not gross margin.
How do I use margin to set prices?
If you know your cost and your target margin, you can back-calculate your required selling price: Price = Cost ÷ (1 − Target margin). For a 40% target margin on a $30 cost item: $30 ÷ 0.60 = $50 selling price. Many businesses make the mistake of using markup instead of margin in this formula, which results in a lower price than intended.
Why is my gross margin high but I'm still losing money?
High gross margin with net losses almost always means operating expenses are too high relative to revenue. Your COGS is under control, but rent, payroll, marketing, or other overhead is consuming all the gross profit. Focus on growing revenue or cutting operating expenses. The product economics are actually fine.
How does discounting affect my margin?
Significantly and non-linearly. A 10% discount on a 35% margin product reduces gross profit by 28.6%, nearly three times the discount percentage. Discounting is expensive when margins are thin, which is why high-volume, low-margin businesses (like grocery stores) rarely discount and high-margin businesses (like software) can afford to.
What's the relationship between margin and break-even?
Contribution margin (selling price minus variable cost) is what determines your break-even point. Higher contribution margin means fewer units needed to cover fixed costs and a lower break-even threshold. Use our break-even calculator alongside this one for a complete picture of your business unit economics.