Markup & Margin Calculator | Retail Pricing

Quick Start Guide

  1. Select a calculation mode: Choose what you want to calculate (Price, Cost, Markup, or Margin).
  2. Enter known values: Fill in cost, price, markup, or margin based on your selected mode.
  3. Include e-commerce fees (optional): Turn on fee deduction to see net profit and net margin after marketplace and payment-processing fees.
  4. View your results: See markup and margin percentages side-by-side, along with profit per unit.
  5. Convert between markup and margin: Switch calculation mode anytime to convert a known markup into its margin equivalent, or vice versa.
  6. Export or copy your results: Save as JSON (guests) or PDF/CSV (signed in), or copy a formatted summary.

Understanding Markup vs. Margin

Same profit, different denominator

Markup and margin describe the exact same dollar profit, just as a percentage of two different bases: markup divides profit by cost, margin divides profit by price. Because price is always higher than cost (when there is any profit at all), margin is always a smaller percentage than markup for the same sale — a 100% markup is only a 50% margin, not a 100% margin.

Converting markup to margin, and back

The two formulas are short and worth knowing. Margin = markup ÷ (100 + markup), and markup = margin ÷ (100 − margin), both × 100 for a percentage. A 50% markup is a 33.33% margin; a 30% margin needs a 42.86% markup; a 100% markup is exactly a 50% margin, which is the pair most people already know and the reason the rest feel wrong. A few more, since these are the ones that come up: 25% markup is a 20% margin, 20% margin is a 25% markup, and 50% margin is a 100% markup. Switch to Conversion mode and enter either figure to get its counterpart without doing the arithmetic — which matters most when a supplier quotes you one and your accounting reports the other.

Why the confusion causes real pricing mistakes

Confusing the two is a common, costly mistake: setting a price by adding a "50% margin" using the markup formula actually produces a 33.3% margin, undercutting the intended profit. Use Conversion mode when you need to translate a target expressed in one term (e.g. a supplier quote in markup) into the other (e.g. your own margin targets).

E-commerce fees quietly erode margin

Marketplace and payment-processing fees (Amazon, Shopify, Etsy, Stripe, etc.) are subtracted from revenue before profit, so a healthy-looking gross margin can shrink substantially once fees are accounted for. Turn on E-commerce Fee Deduction to see net profit and net margin after a percentage-based fee plus any fixed per-transaction fee.

What this calculator does not cover

This models a single product's cost and price — it does not account for volume discounts, blended margins across a product mix, or fixed overhead. For a full profitability picture including fixed costs and sales volume, see the Break-Even Calculator.

Features

Multi-Mode Calculation: Calculate price from cost, cost from price, or convert between markup and margin.

Instant Conversion: See how markup changes affect margin and vice versa in real time.

Profit Visualization: Clear display of profit amount per unit.

Fee-Aware Profitability: Include platform percentage and fixed fees in pricing decisions.

Export Options: Download the pricing breakdown as JSON, CSV or a branded PDF for quotes and records.

Common Use Cases

Retail Pricing: set selling price from cost and desired markup or margin, and see both markup percent and margin percent for the same price.

Wholesale Strategy: calculate bulk pricing with a consistent markup and compare margin at different price points.

Profit Analysis: evaluate product profitability (margin vs markup) and reverse-calculate cost from selling price and margin.

Supplier Evaluation: compare vendor costs and resulting margin, then copy or export for records.

Frequently Asked Questions

Markup is the percentage added to cost to reach the selling price (based on cost). Margin is the percentage of the selling price that is profit (based on revenue). A 50% markup equals a 33.3% margin. These are often confused but are not interchangeable.
Divide the markup by 100 plus the markup: margin = markup ÷ (100 + markup) × 100. A 50% markup is a 33.33% margin, and a 25% markup is a 20% margin. The reason it is never the same number is that markup is measured against your cost and margin against your selling price — a bigger denominator, so a smaller percentage. Conversion mode does it in one step in either direction.
42.86%. The formula is markup = margin ÷ (100 − margin) × 100, so 30 ÷ 70 = 0.4286. This is the conversion that catches people out most often, because pricing at a 30% markup when the business expects a 30% margin leaves you roughly a third short on every sale. For reference: a 20% margin needs a 25% markup, a 40% margin needs 66.67%, and a 50% margin needs a 100% markup.
Formula: Selling Price = Cost / (1 - Margin%). For example, if cost is $100 and you want a 25% margin: $100 / (1 - 0.25) = $133.33. Enter cost and target margin in this calculator to get the selling price instantly.
Platform fees (Amazon FBA, Shopify, Etsy, payment processing, etc.) are subtracted from revenue before profit. A product with a 30% gross margin but a 15% platform fee leaves only 15% net. Turn on the E-commerce Fee Deduction toggle in this calculator to include a percentage fee plus any fixed per-order fee and see your true net profit after marketplace deductions.
There's no single good margin — it varies enormously by industry, from single digits for general retail and grocery to 60%+ for software and luxury goods, and public-company benchmarks (like the NYU Stern margin-by-industry data) don't always reflect small-business economics. Compare your margin against your own historical numbers and your specific industry rather than a generic target, and make sure it's high enough to cover the fixed costs and fees this calculator doesn't include.

Related Calculators

Last updated