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.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
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.
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?
Need something this doesn't cover?
Suggest a tool — we'll build it →