AJ Designer

Markup & Margin Calculator

Solution

Share:

Markup & Margin (from Cost & Price)

Enter a cost and a selling price to see both markup percent and gross profit margin percent side-by-side. Use this mode when you already know what you paid and what you charge.

Markup = (Price − Cost) / Cost × 100 | Margin = (Price − Cost) / Price × 100

Selling Price (from Cost + Markup or Margin)

Solve for the selling price needed to hit a target markup or a target gross profit margin on a known cost. Margin-based pricing divides by (1 − margin), not (1 + margin) — using the wrong form is the most common pricing mistake.

Price = Cost × (1 + Markup / 100) | Price = Cost / (1 − Margin / 100)

Cost (from Price + Markup or Margin)

Back out the implied cost from a known retail price and a typical markup or margin. Useful for sourcing, competitor analysis, and verifying supplier quotes.

Cost = Price / (1 + Markup / 100) | Cost = Price × (1 − Margin / 100)

How It Works

Markup and profit margin both turn the same dollar of profit (price minus cost) into a percentage, but they divide by different bases. Markup divides by cost — it tells you how much you increased the price above what you paid. Profit margin divides by price — it tells you what fraction of each sale is profit. Because the denominators differ, the two percentages are never equal for a profitable sale, and margin is always lower than markup. A $25 profit on a $50 cost item priced at $75 is a 50% markup but only a 33.33% margin. Using one in place of the other underprices the product, which is why this calculator shows both at once.

Example Problem

A boutique buys a sweater for $50 and sells it for $75. What is the markup percentage and what is the gross profit margin?

  1. Identify the values: Cost = $50, Price = $75.
  2. Compute profit per unit: Profit = Price − Cost = 75 − 50 = $25.
  3. Markup divides profit by cost: Markup = 25 / 50 × 100 = 50%.
  4. Margin divides profit by price: Margin = 25 / 75 × 100 ≈ 33.33%.
  5. Sanity check the conversion: Margin = Markup / (1 + Markup/100) = 50 / 1.50 = 33.33%. ✓
  6. Interpret: a 50% markup over cost is the same dollar of profit as a 33.33% gross margin on the sale.

Markup and margin describe the same profit from two perspectives. Pricing-by-margin (Price = Cost / (1 − Margin/100)) and pricing-by-markup (Price = Cost × (1 + Markup/100)) give very different selling prices for the same target percent, so always confirm which one you mean.

When to Use Each Variable

  • Compute Markup and Margin TogetherUse this mode when you already know both the cost and the selling price. The calculator returns the markup percentage and the gross profit margin percentage in one step, plus the profit per unit. Useful for analyzing existing prices, comparing items in a product mix, or auditing reseller margins.
  • Solve for Selling PriceUse this mode when you have a cost and a target rate. Switch the Rate Type pill to markup if your supplier or category expresses pricing as “cost plus X%” (Price = Cost × (1 + Markup/100)). Switch to margin if your finance team expresses pricing as a target gross profit percent (Price = Cost / (1 − Margin/100)).
  • Solve for CostUse this mode when you have a retail price and a typical markup or margin and want to back out the implied cost. Common for competitor analysis, sourcing decisions, or sanity-checking supplier quotes against a known retail price.

Key Concepts

Margin is always lower than markup because the denominator (price) is larger than the denominator used for markup (cost). The two are linked: margin = markup / (1 + markup/100) and markup = margin / (1 − margin/100). A 100% markup equals a 50% margin; a 200% markup equals a 66.67% margin. Margin caps below 100% (since price > cost ≥ 0 implies profit < price), but markup has no upper bound — a tenfold price multiplier is a 900% markup. Many businesses confuse the two and unintentionally underprice: a retailer who tells a vendor they need a “40% margin” but applies a 40% markup to their cost actually leaves about 29% margin on the table.

Applications

  • Retail and e-commerce: setting consistent markup percentages across SKUs while reporting margin to investors
  • Wholesale and distribution: quoting cost-plus pricing to resellers while planning around a target gross margin
  • Restaurants and food service: using food-cost percentage (the inverse of margin) to price menu items
  • Manufacturing: layering markup over standard cost to set list prices that survive volume discounts
  • Real estate flips: comparing renovation cost vs. resale price as both markup (over cost) and margin (on sale)
  • Personal finance and side hustles: pricing handmade goods or resold items to clear a target profit per unit

Common Mistakes

  • Confusing markup and margin and applying a markup rate when a margin was intended — a 40% markup on $30 cost is $42 (28.6% margin), not the 40% margin a $50 price would deliver
  • Adding the rate to the cost when pricing by margin — margin-based pricing divides by (1 − margin/100), not (1 + margin/100)
  • Setting a margin ≥ 100% — impossible without a negative cost; the formula divides by zero or returns a negative number
  • Stacking percent discounts as if they subtract directly — two successive 20% discounts off a marked-up price erode margin more than a single 40% discount because each applies to the previous reduced price
  • Computing margin off of revenue instead of price-per-unit when units are sold in bundles — keep the comparison apples-to-apples (per unit cost vs. per unit price)
  • Forgetting that markup over an already-marked-up wholesale price compounds — a 50% retail markup on a 50% wholesale markup ends at 125% total markup over the original cost, not 100%

Frequently Asked Questions

How do you calculate markup and margin?

Markup = (Price − Cost) / Cost × 100. Margin = (Price − Cost) / Price × 100. Subtract cost from price to get profit per unit, then divide by cost for markup or by price for margin and multiply by 100. A $25 profit on a $50 cost item priced at $75 is a 50% markup and a 33.33% margin.

What is the formula for markup vs. margin?

Both share the same profit numerator (Price − Cost) but use different denominators. Markup divides by cost (the input). Margin divides by price (the output). That single change is why markup is always larger than margin for a profitable sale — you are dividing the same profit by a smaller number when you use cost.

Markup vs. margin — what's the difference?

Markup expresses profit as a percent of what you paid; margin expresses profit as a percent of what the customer pays. Markup answers “how much did I add on top of cost?” Margin answers “what fraction of each sale do I keep as profit?” Telling a vendor you ran a 50% margin when you meant 50% markup understates your profitability by about 17 percentage points.

Why is margin always lower than markup?

Because margin divides the same dollar of profit by a larger number (price) than markup does (cost). For any positive profit, dividing by a larger number gives a smaller percentage. The two only converge at 0% (no profit). The formula margin = markup / (1 + markup/100) makes the relationship explicit: the denominator is always greater than 1 for a positive markup.

How do I calculate retail markup?

Subtract the wholesale cost from the retail price, divide by the wholesale cost, and multiply by 100. If you bought an item for $40 and sell it for $100, the retail markup is (100 − 40) / 40 × 100 = 150%. Different retail categories carry different typical markups — apparel and jewelry often run 100–300%, while groceries and electronics run closer to 10–40%.

What is a good profit margin?

It depends on the industry. Grocery and food retail typically run net margins of 1–3% and gross margins of 25–35%. Software and SaaS often sustain gross margins above 70%. Restaurants target 60–70% gross margin on food and 75–85% on beverages. Compare your gross profit margin against benchmarks for your specific industry rather than chasing a universal target.

How do I convert markup to margin?

Use margin = markup / (1 + markup/100). For example, a 50% markup converts to 50 / 1.50 = 33.33% margin. A 100% markup converts to 50% margin; a 200% markup converts to 66.67% margin. The reverse conversion is markup = margin / (1 − margin/100) — a 40% margin needs a 66.67% markup over cost.

Why is my markup high but my profit low?

A high markup percentage on a small unit cost still produces a small per-unit dollar profit, and operating expenses (rent, payroll, freight, returns) come out of that dollar profit. A 200% markup on a $3 item is only $6 of gross profit per unit — if it costs the business $4 in overhead to sell that unit, the net profit is just $2. Track gross profit dollars and operating margin alongside the markup percentage, not just the headline rate.

Reference: Horngren, Charles T., Datar, Srikant M., and Rajan, Madhav. Cost Accounting: A Managerial Emphasis. Pearson. (Markup vs. margin formulas, target-pricing methods.)

Variables in the Markup and Margin Formulas

Markup and profit margin describe the same dollar of profit from two different bases. Markup divides profit by cost — it answers “how much did I mark this up from what I paid?” Margin divides profit by price — it answers “what fraction of each sale is profit?” Because the denominators differ, the two percentages are never equal for a profitable sale, and margin is always lower than markup.

Markup = (Price − Cost) / Cost × 100
Margin = (Price − Cost) / Price × 100

Where:

  • Cost — what you paid (or the cost of goods sold). Must be positive.
  • Price — what you sell it for. Must be positive and greater than cost for a profitable sale.
  • Markup % — profit as a percent of cost. No upper bound; a 200% markup means the price is triple the cost.
  • Margin % — profit as a percent of price. Capped below 100%; a 100% margin would require infinite cost.

Conversion shortcuts: margin = markup / (1 + markup/100) and markup = margin / (1 − margin/100). A 50% markup is a 33.33% margin; a 33.33% margin is a 50% markup.

Worked Examples

Retail

What is the markup and margin on a $75 item that cost $50?

A boutique buys a sweater for $50 and sells it for $75. What is the markup percentage and what is the profit margin?

  • Cost = 50, Price = 75
  • Profit per unit: 75 − 50 = 25
  • Markup = (75 − 50) / 50 × 100 = 50%
  • Margin = (75 − 50) / 75 × 100 = 33.33%

Markup = 50% | Margin = 33.33%

Same $25 profit, two different rates. Telling a supplier you ran a “50% margin” when you meant 50% markup would understate your true profitability.

Wholesale

What sale price gives a 40% gross margin on a $30 cost?

A wholesaler has a cost of $30 per unit and targets a 40% gross profit margin. What selling price does that require?

  • Cost = 30, Target Margin = 40%
  • Price = Cost / (1 − Margin/100)
  • Price = 30 / (1 − 0.40)
  • Price = 30 / 0.60

Price = $50.00 (profit $20, 66.67% markup)

Margin-based pricing divides by (1 − margin), not (1 + margin). A 40% margin requires a 66.67% markup over cost — a common reason businesses set prices too low.

Reverse pricing

What cost is implied by a $99 retail price at 60% markup?

A reseller sees a competitor's $99 retail price and knows the category typically runs at 60% markup. What's the implied wholesale cost?

  • Price = 99, Markup = 60%
  • Cost = Price / (1 + Markup/100)
  • Cost = 99 / (1 + 0.60)
  • Cost = 99 / 1.60

Cost ≈ $61.88 (profit $37.13, 37.5% margin)

Use the inverse markup formula when you know the retail price and the typical markup but not the underlying cost. Useful for sourcing, competitor analysis, and re-shelf decisions.

Related Calculators

Related Sites