Profit Margin Calculator
Calculate gross profit margin, markup, and selling price instantly from cost. Two modes: derive margin from a known price, or find the selling price from a target margin. Runs entirely in your browser.
⏱ 5 min read · Complete guide below
Enter cost and selling price to see your profit breakdown.
How the Profit Margin Calculator Works
- 1Choose a mode: Cost + Price to calculate margin from known figures, or Cost + Target Margin to find what to charge.
- 2Enter your cost price — the amount you pay to produce or acquire the item.
- 3Enter either the selling price or your desired profit margin percentage.
- 4Hit Calculate — see gross profit, margin %, markup %, and the full revenue breakdown.
Margin vs Markup — Key Difference
Margin and markup are both ratios of profit to a base figure, but the base differs. Margin uses revenue (selling price) as the base; markup usescost. A 50% markup is not a 50% margin — it is a 33.3% margin. Confusing the two is a common pricing mistake that can leave a business under-pricing its products by a significant amount.
Gross Margin vs Net Margin
This calculator works with gross profit margin — the gap between what an item costs you and what you sell it for, before any other expenses. That is exactly the right figure for setting prices on individual products. It is not, however, the whole profitability picture. Net profit margintakes your gross profit and subtracts everything else it takes to run the business: rent, salaries, marketing, software, shipping, and taxes. A shop can boast healthy 50% gross margins and still lose money if those operating costs are too high. The practical rule is to use gross margin for pricing decisions and net margin for judging the overall health of the business.
What Counts as a Good Margin?
There is no universal “good” margin — it varies enormously by industry, and comparing across sectors is misleading. Grocery and retail often run on thin gross margins of 5–20% and make money through volume. Restaurants and manufacturing sit in the middle. Software, digital products, and many services enjoy 60–80% or higher because each additional sale costs almost nothing to deliver. Rather than chasing an arbitrary target, the real question is whether your margin comfortably covers your operating costs and leaves a net profit. Benchmarking against typical figures for your industry is far more useful than aiming for a round number.
Pricing From a Target Margin
One of the most common — and costly — mistakes is to guess a price and hope the margin works out. The more disciplined approach is to work backwards from the margin you need. If a product costs $50 and you require a 40% margin, the correct selling price is $50 ÷ (1 − 0.40) = $83.33, not $50 plus 40%, which would give only $70 and a much thinner margin. This is exactly the margin-versus-markup trap in action. Use the target-margin mode of this calculator whenever you launch a new product, so your price is anchored to a margin that actually sustains the business rather than to a number that merely looks reasonable.
Pricing Tips for Better Margins
Know your break-even margin
Calculate the minimum margin that covers all fixed and variable costs before setting prices. Selling below this point generates a loss even with high volume.
Distinguish gross from net margin
Gross margin ignores operating costs. Net margin accounts for rent, salaries, marketing, and taxes. Use gross margin for pricing, net margin for profitability decisions.
Use target-margin mode for new products
When launching a new product, start with the margin you need and let the calculator derive the selling price — rather than guessing a price and hoping the margin is sufficient.
Review margins by product line
Average margins can mask underperforming SKUs. Calculate margin per product and prune or reprice anything dragging down your overall profitability.
Frequently Asked Questions
What is the difference between profit margin and markup?
Profit margin is profit expressed as a percentage of the selling price (revenue). Markup is profit expressed as a percentage of the cost. A product that costs $50 and sells for $80 has a profit of $30, a margin of 37.5% (30/80), and a markup of 60% (30/50).
How is profit margin calculated?
Profit Margin (%) = ((Selling Price − Cost) / Selling Price) × 100. For example, if a product costs $40 and sells for $100, the margin is ((100 − 40) / 100) × 100 = 60%.
How do I calculate the selling price from a target margin?
Selling Price = Cost / (1 − Margin%). If your cost is $50 and you want a 40% margin, the selling price is $50 / (1 − 0.4) = $83.33.
What is a good profit margin?
It depends heavily on the industry. Retail typically operates on 5–20% margins, while software and services can reach 60–80%. What matters is whether your margin covers operating costs and leaves a healthy net profit.
Does this calculator account for taxes or overheads?
No — this tool calculates gross profit margin based on cost and selling price only. To calculate net profit margin you would need to subtract operating expenses, taxes, and other overheads from the gross profit.
Why can profit margin never reach 100%?
Because margin is measured against the selling price, and the selling price always includes your cost. Profit is selling price minus cost, so profit can equal the selling price only if cost is zero — which never happens for a real product. As your price rises, margin approaches but never reaches 100%. Markup, by contrast, is measured against cost and has no upper limit, which is one more reason the two are easy to confuse.
How do I convert a markup percentage into a margin percentage?
Divide the markup by one plus the markup (as a decimal). A 50% markup becomes 0.50 ÷ 1.50 = 0.333, or a 33.3% margin. A 100% markup is a 50% margin. This conversion matters because suppliers and buyers often quote markup while your accounts and pricing targets are usually stated as margin — mixing them up systematically under-prices your products.
Should I price every product at the same margin?
Not necessarily. A single blanket margin is simple but rarely optimal. Staple or highly competitive items often carry lower margins to stay price-attractive, while unique, premium, or low-volume products can support higher ones. What matters is that your overall mix of margins covers your costs and hits your profit goals. Calculating margin per product — rather than relying on a store-wide average — reveals which lines are pulling their weight and which need repricing.