Margin Calculator

Calculate profit margin, markup, revenue, or cost — whichever you need. Includes gross profit, net profit after tax and overhead, ROI, break-even units, and a multi-product bulk calculator.

Margin Calculator

Enter Cost and Margin % → Revenue and Profit are calculated.
$
$
%
%
$
%
US federal corporate rate: 21%
Gross Profit Margin
% of revenue that is gross profit
Revenue / Selling Price Per unit
Cost of Goods (COGS) Per unit
Gross Profit Revenue minus COGS per unit
Markup % above cost
ROI Return on cost invested
Net Profit (After Tax) After overhead & tax
Tax Liability At selected rate
Fixed Overhead Entered overhead total
Break-Even Units Units to cover overhead
Total Revenue × quantity
Total Cost × quantity
Total Gross Profit Gross profit × quantity

Revenue Breakdown

Revenue

Cost vs Profit Split

Margin Revenue Profit Markup Total Revenue

Quick Summary

  • Four calculation modes: find Revenue from Cost + Margin, find Cost from Revenue + Margin, find Margin from Revenue + Cost, or find Revenue from Cost + Markup.
  • Gross profit margin = (Revenue − Cost) ÷ Revenue × 100. Markup = (Revenue − Cost) ÷ Cost × 100.
  • Optional overhead and corporate tax rate fields calculate net profit and tax liability.
  • Unit quantity field scales results to total revenue, total cost, and total profit.
  • Break-even units calculation shows how many units must be sold to cover fixed overhead.
  • Multi-product bulk calculator handles up to unlimited products with per-row results and portfolio totals.

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

Gross Margin (%) = (Revenue − Cost) ÷ Revenue × 100 Markup (%) = (Revenue − Cost) ÷ Cost × 100 Revenue = Cost ÷ (1 − Margin ÷ 100) Cost = Revenue × (1 − Margin ÷ 100) ROI (%) = (Revenue − Cost) ÷ Cost × 100 [same as Markup]

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.

Frequently Asked Questions

Conclusion

Margin and markup are two sides of the same profit coin — but using the wrong one for pricing decisions costs real money at scale. This calculator removes the ambiguity, solves for any missing variable, and gives you net profit after overhead and tax so you're working with the number that actually hits your bank account.

Bookmark this page and use it whenever you're pricing a new product, evaluating a supplier quote, reviewing category performance, or building a business model. The Bulk calculator makes it practical for real product catalogs, not just single-product hypotheticals.

Explore More Financial Calculators →