The Profit Margin Calculator shows how much of each dollar of revenue remains as profit after cost of goods sold (COGS) is removed. It is a compact way to evaluate pricing, product economics, and overall business efficiency. Because profit margin is based on revenue, it answers a different question than markup: margin tells you the profit share of sales, while markup tells you how much the price exceeds cost.
Use this calculator when you know selling price and direct cost for a product, order, or service. The result helps you compare products, test pricing changes, and spot items that may be sold too cheaply. For best accuracy, keep revenue and cost on the same basis and exclude items that do not belong in the direct cost calculation.
How This Calculator Works
The calculator first finds profit by subtracting cost from revenue. It then divides that profit by revenue to calculate profit margin, expressed as a percentage. It also calculates markup on cost, which compares profit to cost instead of revenue. These outputs are related, but they are not interchangeable.
In practical terms, the calculator answers: how much did you keep, relative to what you sold it for? If revenue is equal to cost, profit is zero and margin is 0%. If cost is higher than revenue, profit and margin become negative, which signals a loss on that sale.
Formula
Profit = Revenue - Cost
Profit Margin (%) = 100 × (Revenue - Cost) / Revenue
Markup (%) = 100 × (Revenue - Cost) / Cost
| Variable | Meaning |
|---|---|
| Revenue | Selling price or total sales value |
| Cost | COGS or direct cost associated with the item or order |
| Profit | Revenue minus cost |
| Margin | Profit as a percentage of revenue |
| Markup | Profit as a percentage of cost |
The margin formula is mathematically correct only when revenue is the denominator. If you instead divide by cost, you are calculating markup, not margin. That distinction is important when comparing pricing rules or vendor quotes.
Example Calculation
- Start with revenue of $50 and cost of $30.
- Calculate profit: $50 - $30 = $20.
- Calculate profit margin: $20 / $50 × 100 = 40%.
- Calculate markup: $20 / $30 × 100 = 66.7%.
- Interpret the result: 40% of sales value remains as profit, while the selling price is 66.7% above cost.
Where This Calculator Is Commonly Used
- Product pricing and retail margin checks
- E-commerce and marketplace unit economics
- Wholesale and distribution pricing analysis
- Service business quoting and package design
- Inventory planning and category profitability reviews
- Competitive benchmarking across product lines
How to Interpret the Results
A higher profit margin usually indicates stronger pricing power, lower direct costs, or both. A lower margin can still be acceptable if the business depends on high sales volume, recurring revenue, or strategic loss leaders. The right benchmark depends on your industry, channel, and business model.
Use profit margin to understand efficiency, and use markup to understand pricing structure. If your margin looks weak, check whether costs are understated, revenue is overstated, or the product simply needs a price increase. If your margin is negative, the sale does not cover direct cost and should be reviewed carefully.
Frequently Asked Questions
What is the difference between profit margin and markup?
Profit margin measures profit as a percentage of revenue, while markup measures profit as a percentage of cost. Both use the same profit number, but the denominator changes the meaning. Margin is better for understanding how much of sales you keep, while markup is better for pricing from cost upward.
Can profit margin be negative?
Yes. If cost is greater than revenue, profit is negative and the margin is also negative. That means the sale loses money before overhead or other business expenses are considered. Negative margin is often a signal to review pricing, supplier costs, shipping, or discounts applied to the sale.
Is profit margin the same as gross margin?
In many business contexts, this calculator is effectively calculating gross margin because it uses revenue and COGS. Gross margin focuses on direct product costs before operating expenses. If you need net margin, you would also subtract operating expenses, taxes, and other non-COGS costs.
Should I include discounts and returns in revenue?
For accurate margin analysis, revenue should reflect the amount actually earned, not the sticker price. Discounts, refunds, and returns can materially change the result. If those items are part of normal selling activity, include them in your net revenue figure before calculating margin.
Why does markup look higher than margin for the same sale?
Markup is usually higher because cost is smaller than revenue, and the denominator is cost rather than revenue. For example, a 40% margin can correspond to a 66.7% markup. This is normal and is one reason the two terms should not be used interchangeably in pricing conversations.
What margin level is considered good?
There is no universal target. A good margin depends on industry norms, overhead structure, risk, and sales volume. Grocery, hardware, software, and consulting businesses often operate with very different expectations. Compare your result with similar products or services rather than using a single benchmark for every business.
FAQ
What is the difference between profit margin and markup?
Profit margin measures profit as a percentage of revenue, while markup measures profit as a percentage of cost. Both use the same profit number, but the denominator changes the meaning. Margin is better for understanding how much of sales you keep, while markup is better for pricing from cost upward.
Can profit margin be negative?
Yes. If cost is greater than revenue, profit is negative and the margin is also negative. That means the sale loses money before overhead or other business expenses are considered. Negative margin is often a signal to review pricing, supplier costs, shipping, or discounts applied to the sale.
Is profit margin the same as gross margin?
In many business contexts, this calculator is effectively calculating gross margin because it uses revenue and COGS. Gross margin focuses on direct product costs before operating expenses. If you need net margin, you would also subtract operating expenses, taxes, and other non-COGS costs.
Should I include discounts and returns in revenue?
For accurate margin analysis, revenue should reflect the amount actually earned, not the sticker price. Discounts, refunds, and returns can materially change the result. If those items are part of normal selling activity, include them in your net revenue figure before calculating margin.
Why does markup look higher than margin for the same sale?
Markup is usually higher because cost is smaller than revenue, and the denominator is cost rather than revenue. For example, a 40% margin can correspond to a 66.7% markup. This is normal and is one reason the two terms should not be used interchangeably in pricing conversations.
What margin level is considered good?
There is no universal target. A good margin depends on industry norms, overhead structure, risk, and sales volume. Grocery, hardware, software, and consulting businesses often operate with very different expectations. Compare your result with similar products or services rather than using a single benchmark for every business.