Margin Calculator Soup

Is this product worth selling at your current price?

Enter your cost and selling price to instantly see gross margin, markup percentage, and profit. Solve in any direction — find the price that hits your target margin, or the cost ceiling that protects it.

Updated July 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Most pricing conversations start with cost-plus thinking: add a percentage on top of what something costs you and call it the price. That works for markup, but it quietly produces a lower margin than expected — and most profit benchmarks, investor thresholds, and category norms are expressed in margin terms, not markup. That mismatch is where pricing decisions go wrong.

Gross margin measures what fraction of each sale you keep before operating costs. A $30 product with a $12 cost returns $18 in gross profit — 60% margin. That 60% is the ceiling from which you pay commissions, platform fees, warehousing, customer service, and eventually yourself. If those costs together run 45 points, you have 15% net. If they run 65 points, you are losing money despite a positive gross margin.

This calculator works forward (cost plus price gives you margin and markup) and backward (cost plus target margin gives you the minimum price required). The backward direction is where the tool earns its keep: most pricing decisions start with a market price and work backward to see whether the cost structure makes the product viable, not the other way around.

When To Use This
Right tool, right situation

Use this calculator when you are pricing a new product or SKU, when a supplier raises costs and you need to see the margin impact immediately, or when a sales channel (retailer, distributor, marketplace) requires a minimum margin and you need to back into the wholesale price that still works for you.

It is also useful when you are comparing two cost sources for the same product and need to quantify the margin difference before committing to a supplier. A $1.50 cost reduction on a $30 product improves margin from 60% to 65% — that difference matters at volume.

This tool is not appropriate when you need net margin (profit after all expenses) rather than gross margin, when you are pricing services where cost per unit is not fixed, or when transfer pricing between related entities involves tax considerations. For blended margin across a product catalog, you would need a weighted average calculation that accounts for different cost structures and sales volumes per SKU.

Common Mistakes
Why results sometimes look wrong

Using markup when the industry benchmark is margin. A buyer says they need 40% margin. You calculate a 40% markup and quote a price. The buyer rejects it because your actual margin is only 28.6%. This mismatch happens constantly in wholesale and retail negotiations. Always confirm which denominator the other party is using before quoting.

Using partial cost instead of fully landed cost. A common error is entering only the supplier invoice price and ignoring inbound freight, import duties, inspection fees, and packaging. A product that appears to have 55% margin based on invoice cost might land at 38% when all acquisition costs are included. The margin display here is only as accurate as the cost figure you enter.

Treating gross margin as take-home profit. Gross margin is the starting point, not the finish line. Platform fees (Shopify, Amazon, Etsy), transaction fees, returns, damaged inventory, and customer acquisition costs all come out of gross margin. A business running 45% gross margin with 42% in operating costs has a 3% net margin — and one bad month erases it. Use gross margin to qualify whether a product is worth selling, not to estimate personal income.

The Math
Worked examples and deeper derivation

Gross margin formula: Margin % = (Price - Cost) / Price x 100. Markup formula: Markup % = (Price - Cost) / Cost x 100. The only difference is the denominator. Margin uses price; markup uses cost. Because price is always larger than cost for a profitable product, margin is always a smaller number than markup for the same sale.

To solve for price given a target margin: Price = Cost / (1 - Target Margin / 100). Example: $20 cost, 55% target margin. Price = $20 / (1 - 0.55) = $20 / 0.45 = $44.44. You can verify: ($44.44 - $20) / $44.44 = $24.44 / $44.44 = 54.99%, which rounds to 55%.

Monthly profit is straightforward multiplication: Monthly Profit = (Price - Cost) x Units Sold. This is gross profit only. To find net profit, subtract fixed and variable operating costs from this figure. The tool gives you the gross profit number; your accounting gives you the rest.

Handmade candle seller setting retail price
Cost: $8.40 per candle (wax, wick, jar, label, packaging). Selling price: $24.00.
Gross margin is 65%. Markup is 185.7%. Profit per candle is $15.60. At 200 units per month, that is $3,120 monthly gross profit — before Etsy fees or fulfillment costs, which would need to come out of that margin.
Wholesale distributor checking a thin-margin SKU
Cost: $47.20 (landed from supplier). Selling price: $52.00. Target margin: 20%.
Actual margin is only 9.23% — far below the 20% target. To hit 20%, the needed price is $59.00. The distributor can now decide whether to renegotiate cost, raise price, or discontinue the SKU.
SaaS founder benchmarking a new pricing tier
Cost: $3.80 per user per month (infrastructure + support allocation). Selling price: $29 per month.
Gross margin is 86.9%, well within the 70-80% range that SaaS investors typically expect as a minimum for scalable businesses. Markup is 663.2%. This leaves substantial room to absorb sales and marketing costs without margin compression.
Expert Unlock
The thing most explanations skip

Gross margin math assumes a linear cost structure — that the cost per unit stays constant regardless of volume. In practice, variable costs often step down at quantity breaks (bulk supplier discounts, better freight rates, more efficient production runs) while fixed costs per unit also decline with volume. A product that shows 42% margin at 100 units per month may run 58% at 1,000 units if the cost structure has meaningful economies of scale. This calculator gives you a point-in-time snapshot at current cost; it does not model the margin curve across volume scenarios.

A second limitation: this tool uses a single price point. Real-world pricing often involves tiered pricing, channel-specific pricing, and promotional discounting that affects realized margin differently from list margin. The margin you calculate here is on full-price sales. If 30% of your volume moves at a 20% discount, your blended realized margin is meaningfully lower than what this calculator shows.

Why does margin come out lower than my markup percentage?

What is the difference between gross margin and markup?
Margin is profit divided by selling price. Markup is profit divided by cost. Because the denominator is different, the same profit produces a higher markup number than margin percentage. A 50% markup on a $10 cost gives you a $15 price — but the gross margin on that sale is only 33.3%, not 50%. Confusing the two is one of the most common pricing mistakes in small business.
What gross margin percentage is considered healthy?
It depends entirely on the industry. Physical retail typically targets 40-60%. Wholesale and distribution often runs 15-30%. SaaS and software businesses aim for 70-85% or higher. Restaurants frequently operate at 60-70% on food cost alone before labor. There is no universal good margin — what matters is whether your gross margin is large enough to cover all operating expenses and still leave net profit.
How do I find the price that hits a specific margin target?
Divide your unit cost by (1 minus your target margin expressed as a decimal). To hit 60% margin on a $20 cost: $20 divided by (1 - 0.60) = $20 divided by 0.40 = $50. This tool does that calculation automatically when you enter a target margin. Never multiply cost by the margin percentage — that gives you the markup, not the margin-based price.

Need something this doesn't cover?

Suggest a tool — we'll build it →