What is this calculator for?
You sell handmade ceramics. A coffee mug costs you $12 in materials and labor to produce. You want to know: what should you charge to hit a 60% profit margin? Or: if you charge $30, what margin are you actually making? The margin calculator handles the three common business questions: profit margin given cost and selling price, selling price given cost and target margin, and the related "markup" calculation that's often confused with margin.
Margin vs markup. Margin is profit as percentage of selling price. Markup is profit as percentage of cost. These differ — selling a $12 product for $20 has a $8 profit. Margin: $8 / $20 = 40%. Markup: $8 / $12 = 67%. Same transaction, two different percentages, both legitimate measures. Retail typically uses margin; wholesale and manufacturing sometimes use markup. Confusing the two leads to underpricing — "I marked it up 50%" doesn't mean "I have a 50% margin."
This calculator handles all three operations: find margin given cost and price, find price given cost and margin target, convert between margin and markup. Use for retail pricing decisions, freelance rate setting, manufacturing analysis.
How to use this calculator
Enter any two of: cost, selling price, margin percentage, markup percentage. The calculator computes the others.
For pricing a new product: enter cost and target margin. Output: selling price required to hit that margin.
For evaluating an existing product: enter cost and selling price. Output: current margin and markup.
For quick markup-to-margin conversion: enter markup, get margin. 50% markup = 33.3% margin. 100% markup (doubled price) = 50% margin. 200% markup (tripled) = 67% margin. Always know which framing you're using.
Understanding your results
The calculator outputs margin %, markup %, and dollar profit for the given combination.
Industry margin benchmarks:
Retail: typical 40-60% margin (gross margin before overhead). Department stores: 45-55%. Specialty retail: 50-65%. Discount retail (Walmart, Target): 25-35%.
Restaurants: food cost typically 28-32% of price (meaning 68-72% gross margin on food). Drinks: much higher (75-85% margin on alcohol). Labor and overhead eat most of this, leaving 5-15% net profit on revenue.
Manufacturing: gross margins 30-50% typical, depending on category. Software/SaaS: gross margins 70-90% (digital products with marginal cost near zero).
Services and consulting: high gross margins (often 70-90%) because labor is the main cost; revenue per consultant matters more than per-project margin.
E-commerce: 30-50% gross margin typical, with significant shipping and platform fees reducing net.
The freelance rate equation. Freelance hourly rate isn't just "what feels reasonable." You need to cover: 50% of working hours (non-billable: admin, sales, learning, vacation, sick) — so a 40-hour-week consultant typically bills 20 hours. Plus self-employment tax (15.3%), health insurance (~$800-1500/month), retirement savings, business expenses, profit margin. To make $80K take-home equivalent to a $100K W-2 salary: gross billable revenue needs to be roughly $150K. At 1,000 billable hours/year: $150/hour minimum. Many freelancers significantly underprice; they don't make the equivalent of their employed counterparts.
The retail markup math. Wholesalers often sell to retailers at "keystone" pricing (2x cost = 50% margin for retailer). For a $20 wholesale item: retailer sells at $40, makes $20 margin. Some retailers operate on tighter margins (Walmart's strategy): buy at $20, sell at $25 = 20% margin, but make up volume on lower price point.
A worked example
Maya makes handmade ceramic mugs. Materials per mug: $3. Labor: 30 minutes at $15/hour effective = $7.50. Cost per mug: $10.50.
She wants to hit a 60% margin (typical for handmade craft items). Math: cost / (1 − margin%) = price. $10.50 / (1 − 0.60) = $10.50 / 0.40 = $26.25. So she should sell each mug at ~$26.
Markup view: $26.25 − $10.50 = $15.75 profit. Markup = $15.75 / $10.50 = 150%. Same transaction, different framing. She finds the margin view more useful for understanding her actual return on each sale.
Etsy fees and shipping. Etsy takes ~6.5% of selling price + payment processing ~3%. So her effective per-mug revenue after fees: $26.25 × (1 − 0.095) = $23.75. Plus shipping costs $5 to ship. Net effective revenue: $18.75. Net effective margin: ($18.75 − $10.50) / $26.25 = 31%. The "60% gross margin" target turned into 31% effective margin after platform fees and shipping. For sustainable business: price needs to be higher OR fees lower.
She raises price to $32 to net the 60% margin she wanted. $32 × 0.905 = $28.96 net of Etsy fees. Minus $5 shipping = $23.96 effective revenue. ($23.96 − $10.50) / $32 = 42% effective margin. Better but still below the 60% target.
The deeper truth: handmade artisan pricing on platforms with significant fees requires substantially higher gross prices than the "cost × 2.5" rule of thumb. To hit 60% NET margin after platform fees: cost / (1 − 0.60) / 0.85 effectivity = price = $30.88. To net 60% after both platform fees AND shipping: even higher. Many artisans underprice and run businesses that don't sustain.
Related resources
For underlying percentage math, see Percentage Calculator. For discount math when running sales on margin-priced products, the Discount Calculator. For broader business financial planning, the ROI Calculator. The BLS Occupational Outlook publishes US industry margin benchmarks; SCORE offers free mentorship for small business pricing decisions.