Margin Calculator
Calculate profit margin, markup percentage, gross profit, required selling price, or cost from any two known values โ five modes in one tool. See a visual revenue-cost-profit breakdown, a margin health rating, and a plain-English explanation of every result.
Choose a margin mode
Pick what you want to find. Enter the two values you already know and click Calculate.
Know cost and selling price. Find your gross profit margin as a percentage of revenue.
Know cost and selling price. Find your markup โ profit as a percentage of cost.
Know cost and target margin. Find the selling price you need to hit that margin.
Know cost and selling price. Find your gross profit in dollar terms.
Know selling price and target margin. Work backwards to find the maximum allowable cost.
Margin vs markup
Margin = Profit รท Revenue ร 100
Markup = Profit รท Cost ร 100
Same profit, different denominators โ margin is always lower than markup for the same transaction.
Five modes at a glance
Know cost + price โ find margin or markup or profit
Know cost + target margin โ find required price
Know price + target margin โ find max cost
Margin vs markup โ the key difference
Margin and markup both measure profitability but use different bases โ and they are frequently confused in business pricing conversations.
For the same transaction (cost $60, price $100), margin is 40% while markup is 66.7%. Margin is always the lower number. If someone says "we want 40% margin" and you price to 40% markup, you will always undercharge โ this is one of the most common and costly pricing mistakes in small business.
| Cost | Price | Profit | Margin | Markup |
|---|---|---|---|---|
| $60 | $100 | $40 | 40.0% | 66.7% |
| $75 | $100 | $25 | 25.0% | 33.3% |
| $50 | $100 | $50 | 50.0% | 100.0% |
| $80 | $100 | $20 | 20.0% | 25.0% |
All five formulas
Margin benchmarks by industry
Gross margin and net margin differ significantly because operating expenses (rent, salaries, marketing, logistics) sit between them. A 60% gross margin can easily become a 10% net margin after operating costs.
Frequently asked questions
What is the difference between margin and markup?
Margin divides profit by revenue (selling price). Markup divides profit by cost. For cost $60 and price $100: margin = $40 รท $100 = 40%, markup = $40 รท $60 = 66.7%. Margin is always lower than markup for the same transaction. Always clarify which metric someone means in a pricing conversation.
How do I calculate the selling price I need for a target margin?
Use the formula: Selling price = Cost รท (1 โ target margin รท 100). For a $60 cost and 40% target margin: $60 รท (1 โ 0.40) = $60 รท 0.60 = $100. Use the Selling Price mode in this calculator โ enter cost and target margin.
Does a discount reduce my margin?
Yes โ discounting revenue while cost stays fixed reduces your margin. A 10% discount on a $100 item (cost $60) drops revenue to $90. New margin = ($90 โ $60) รท $90 = 33.3% โ down from 40%. At larger discounts, margin compresses rapidly. Use the Discount Calculator alongside this tool.
Is gross margin the same as net profit margin?
No. Gross margin = (Revenue โ Cost of Goods Sold) รท Revenue. Net margin = (Revenue โ All expenses including operating costs, tax) รท Revenue. This calculator computes gross margin only. Net margin requires full P&L data.
What is a good profit margin?
It depends heavily on industry. Grocery operates on 2โ5% net margin; software on 15โ30%. For gross margin, most product businesses aim for 40โ60% to cover operating costs and still generate net profit. The best benchmark is your industry's median โ not a universal number.
Related finance calculators
These tools pair naturally with margin analysis.
Disclaimer
This calculator computes gross profit margin and markup only. It does not account for operating expenses, SG&A, depreciation, interest, or taxes. Gross margin is not the same as net profit margin. Use these figures as a starting point for pricing decisions โ consult an accountant for full profitability analysis.