How to Use the Margin Calculator
Confusing margin and markup is one of the most costly pricing errors a business can make. A product priced at a "50% markup" over cost actually has only a 33.3% margin — and if your operating model requires a 50% margin to be profitable, you are systematically underpricing every single product. This calculator eliminates that confusion by letting you solve for whichever variable you're missing, using the correct formula every time.
Choosing the Right Calculation Mode
The five-button mode selector at the top changes which values are inputs and which are calculated outputs. The highlighted (read-only) fields are computed automatically from your inputs.
Find Revenue (Margin) — You know your cost and target margin percentage. The calculator finds the selling price. This is the most common pricing scenario for retailers and e-commerce sellers who start with cost and set margin targets by category.
Find Revenue (Markup) — You know your cost and the markup percentage you want to apply. The calculator finds the selling price. Manufacturers and wholesalers often work in markup terms; this mode converts markup to a selling price and shows the equivalent margin.
Find Cost — You know your selling price and target margin. The calculator back-solves for the maximum cost you can pay to hit that margin — useful for buyers and procurement teams negotiating supplier pricing.
Find Margin & Markup — You know both revenue and cost and want to see the resulting margin, markup, and profit. This is the reporting mode — enter actual sales data and see what margins you're achieving.
Bulk / Multi-Product — Enter multiple products with individual costs, target margins, and unit quantities. The calculator shows per-product and portfolio-level results — total revenue, total profit, and blended margin across your full product mix.
The Core Formulas
Margin and markup are related but not interchangeable. At a 40% margin, the markup is 66.7%. At a 50% markup, the margin is 33.3%. The Margin Comparison table at the bottom of the calculator shows revenue, profit, and markup at 10 standard margin levels for your specific cost — allowing instant visual comparison without recalculating.
Step-by-Step Example
Sarah runs an e-commerce store selling handmade candles. Each candle costs her $8.50 in materials and packaging. She targets a 55% gross margin.
Using "Find Revenue (Margin)" mode: Revenue = $8.50 ÷ (1 − 0.55) = $8.50 ÷ 0.45 = $18.89 selling price. Gross profit = $18.89 − $8.50 = $10.39. Markup = $10.39 ÷ $8.50 = 122.2%.
She sells 500 candles per month with $2,000 in monthly overhead (Etsy fees, shipping supplies, studio rent). Break-even = $2,000 ÷ $10.39 = 193 units. At 500 units, profit before tax = (500 × $10.39) − $2,000 = $3,195. At a 15% self-employment tax rate, net profit = $3,195 × (1 − 0.15) = $2,716/month.
Break-Even Analysis Explained
Break-even analysis answers the question: how many units do I need to sell before I start making money? Every sale below break-even is loss-making; every sale above is profit. The formula is straightforward: divide your total fixed overhead by the gross profit per unit. Fixed overhead includes anything that doesn't change with volume — rent, salaries, software subscriptions, insurance, and loan payments.
Variable costs (direct materials, shipping, platform fees) are already embedded in your COGS figure. Don't include them in the overhead field — only fixed costs belong there.
Gross vs Net Margin: What the Tax and Overhead Fields Add
Gross margin tells you how profitable your product is before operating costs. Net margin — what you keep after overhead and taxes — is the number that matters for business viability. Enter your total fixed overhead (monthly or annually, as long as your unit count matches the same period) and your applicable tax rate to see the full picture. The US federal corporate tax rate is 21% flat; most states add 3–12%. S-Corp and LLC pass-through income is taxed at individual rates, which range from 10% to 37%.
Common Pricing Mistakes
The most frequent error is pricing using markup when the business model requires a margin target — resulting in systematic underpricing. A second common mistake is omitting transaction fees, payment processing (2.9% + $0.30 for Stripe/PayPal), and marketplace commissions (Amazon charges 8–17%) from COGS, making margins look higher than they are. A third mistake is setting a single margin target across all products rather than recognizing that high-volume, low-margin anchor products can coexist with high-margin specialty items to optimize portfolio profitability.
Disclaimer
Results are for informational and business planning purposes only. Tax calculations are estimates based on inputs provided and do not constitute tax advice. Consult a licensed CPA or tax professional for your specific situation. US corporate tax rates and state rates referenced reflect current law and are subject to change.