Skip to content
TheCalcUniverse

Profit Margin & Markup Calculator — Free Online Calculator & Guide

Calculate gross profit margin, markup percentage, and selling price. Converts between margin and markup with full profit breakdown.

✓ Tested formula & cited sources Formula verified 2026-05-17 Runs in your browser — inputs never sent anywhere

See it worked out

Example — Cost / COGS 50, Selling Price / Revenue 80, Target Margin or Markup % 40 %:

Gross Profit Margin

37.50%

Margin (profit ÷ selling price) and markup (profit ÷ cost) describe the same $30.00 of profit differently — margin is always the smaller number of the two. This is gross profit only, before overhead like rent, salaries, or marketing; net margin after those costs will be lower.

Gross Profit

$30.00

Gross Margin %

37.50%

Markup %

60.00%

The formula

Margin % = (Revenue − Cost) ÷ Revenue × 100 | Markup % = (Revenue − Cost) ÷ Cost × 100

Margin
Gross Profit Margin
Markup
Markup Percentage

Worked example — Cost / COGS 50, Selling Price / Revenue 80, Target Margin or Markup % 40 %

Gross Profit Margin = 37.50%

Full explanation ↓

How Profit Margin Works

Margin % = (Revenue − Cost) ÷ Revenue × 100 | Markup % = (Revenue − Cost) ÷ Cost × 100

Profit margin measures profit as a percentage of revenue. Markup measures profit as a percentage of cost. These are related but different metrics that are frequently confused in business.

Margin
Gross Profit MarginProfit divided by revenue. A 40% margin means 40 cents of every dollar is profit. Used by investors, accountants, and for industry benchmarking.
Markup
Markup PercentageProfit divided by cost. A 60% markup means you charge 60% more than your cost. Used by retailers and wholesalers for pricing from cost.
Profit margin shows how much of your revenue you keep after all costs: Revenue − COGS − Expenses = Net Profit

How to Use

  1. Select what you want to calculate from the dropdown: margin %, markup %, selling price from margin, or selling price from markup.
  2. Enter your cost/COGS (cost of goods sold).
  3. Enter the selling price (for margin/markup) or target percentage (for price calculation).
  4. View the profit, margin %, and markup % all at once.
  5. Use the results to set your pricing strategy — target margins vary widely by industry and business model.

Quick Reference

25% Margin33.3% Markup
33.3% Margin50% Markup
50% Margin100% Markup
60% Margin150% Markup
75% Margin300% Markup
Margin from MarkupM% = Mu% ÷ (100 + Mu%)
Markup from MarginMu% = M% ÷ (100 − M%)
Price from MarginCost ÷ (1 − M%/100)
Ecom Target (Standard)35-50% Gross Margin
Ecom Target (Premium)50-65% Gross Margin

Common Uses

  • Setting retail prices by calculating the required selling price to achieve a target gross margin percentage
  • Analyzing product profitability by computing gross margin from cost and revenue for inventory management decisions
  • Understanding the difference between margin and markup to avoid costly miscommunication in wholesale and retail pricing negotiations

Understanding the Result

Margin and markup are frequently confused. A 50% markup does NOT equal a 50% margin. If cost is $100 and markup is 50%, the price is $150 — but the margin is only 33% (50 ÷ 150). This distinction is critical when negotiating wholesale pricing, setting retail prices, or comparing profitability across industries. Retailers typically target 50-60% gross margins; manufacturers are often lower at 30-40%. SaaS software margins can exceed 70-80%. Real-world example: a furniture store buys a table for $200 and wants a 50% markup, so they price it at $300. The gross margin is 33%. If a buyer asks for "50% margin" pricing on a wholesale deal, the store would need to price at $400 (markup of 100%). Confusing these two terms in a wholesale negotiation could cost thousands in lost profit per order. Another common scenario: a restaurant with food cost of $8 per plate marks up 300% to a menu price of $32. That 300% markup equals a 75% gross margin (24 ÷ 32). Understanding both numbers helps the owner decide whether to raise prices or negotiate with suppliers.

Worked Examples

Jenny runs a handmade candle e-commerce brand. Her soy wax, fragrance, and jar cost $8.50 per candle. She currently sells for $18.99 and wants to know her current margin, then figure out what price she needs for a 60% margin.

cost = 8.50 · revenue = 18.99 · targetPct = 60 · mode = price_from_margin

Current: 55.24% margin, $10.49 profit. Target price for 60% margin: $21.25

At $18.99 with $8.50 cost, Jenny has a 55.2% gross margin and $10.49 profit per candle. To achieve a 60% margin, she would need to price at $21.25 — a modest $2.26 increase per candle that delivers a significant improvement in unit profitability. This insight helped her confidently raise prices without losing her customer base.

Marcus runs a wholesale electronics business. A retail buyer asks him for "50% margin" on a product that costs Marcus $120 to source. Marcus initially quotes $240 (a 100% markup, assuming 50% markup means 50% margin). The buyer corrects him: 50% margin means the product should be priced at $240... wait, that is the same? Actually, Marcus quotes $180 (at 50% markup) and learns his mistake when the buyer expects $240.

cost = 120 · revenue = 240 · targetPct = 50 · mode = margin

Gross Margin = 50.00%, Gross Profit = $120.00, Markup = 100.00%

At $240 selling price with $120 COGS, the gross margin is exactly 50% ($120 profit / $240 revenue). If Marcus had sold at $180 (thinking 50% markup = 50% margin), he would only have a 33.3% margin. The key lesson: when a buyer asks for "margin," they mean margin, not markup. Marcus saved thousands by clarifying the terminology before quoting.

Sophia sells herbal tea blends through her Shopify store. Her blend costs $4.20 per unit including packaging. She currently sells for $12.00 and runs a 15% off sale for Black Friday. She wants to know her margin at full price vs. sale price.

cost = 4.20 · revenue = 12.00 · mode = margin

Gross Margin = 65.00%, Gross Profit = $7.80, Markup = 185.71%

At full price of $12.00, Sophia has a 65% gross margin with $7.80 profit per unit. During the 15% sale at $10.20, her margin drops to 58.8% with $6.00 profit per unit — a 23% reduction in dollar profit per sale. To make the same total profit during the sale period, she would need to sell 30% more units. This helps her decide whether the volume lift justifies the margin sacrifice, and she sets a sale price floor of $9.60 (55% margin) to protect profitability.

Frequently Asked Questions

What is the difference between margin and markup?
Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. Same profit, different denominators — leading to different percentages. The quick conversion: Margin = Markup / (100 + Markup); Markup = Margin / (100 − Margin). For example, if you want 50% margin, you need 100% markup. If you use 50% markup, you only get 33% margin.
What is a good profit margin for retail?
Retail gross margins typically range from 20-60% depending on the category. Grocery is often 1-5% net; apparel is 50-60% gross. Net margin (after all expenses) is typically 2-10%. Luxury goods can achieve 60-80% gross margins due to brand premium. E-commerce brands often see 40-60% gross margins before platform fees and advertising costs.
How do I calculate my target selling price from desired margin?
Use the formula: Selling Price = Cost ÷ (1 − Desired Margin %). For example, if your product costs $75 and you want 40% margin: $75 ÷ (1 − 0.40) = $125. This ensures you achieve exactly the margin percentage you target. For a 25% margin on a $60 item: $60 ÷ (1 − 0.25) = $80 selling price.
How do e-commerce platform fees affect my real margin?
Platform fees are deducted from revenue before calculating net margin, not included in COGS. If a product has 50% gross margin ($50 cost, $100 price) but Amazon charges 15% referral fee ($15) and FBA fee ($5), the net product margin is just 30% ($30 profit on $100). Always model these separately from gross margin.
What is the difference between gross margin and net margin?
Gross margin only subtracts COGS from revenue. Net margin subtracts ALL expenses: COGS, salaries, rent, marketing, platform fees, shipping, and returns. A business can have 60% gross margin and 3% net margin if overhead is high. This calculator handles gross margin; track both for a complete picture.
Why does my margin drop when I run a discount or sale?
Discounts reduce revenue without reducing COGS, so every percentage point off your price dramatically impacts margin. If a product has a 40% margin at full price ($100 cost, $167 sale), a 20% discount brings the price to $133 — your margin drops to 25% because COGS remained $100. To maintain the same dollar profit during a sale, you would need to sell significantly more volume. This is why many retailers limit discounts to clearance or specific promotional periods rather than ongoing strategies.
How do shipping costs affect my gross margin calculation?
If you pass shipping costs to the customer, exclude them from both revenue and COGS. If you offer free shipping and absorb the cost, include inbound shipping in COGS and outbound shipping as a separate operating expense (not COGS for gross margin). E-commerce businesses that absorb shipping costs typically see a 5-15% erosion of gross margin compared to those that charge for shipping. Many successful DTC brands build shipping cost into the product price to offer "free shipping" while protecting margin.
How should I think about margin when expanding internationally?
International expansion adds several margin-diluting costs: currency conversion fees (1-3%), higher shipping costs, duties and tariffs (typically 5-20% depending on product category and country), local payment processing fees, and potential localization costs. A product with 50% domestic gross margin may drop to 25-35% when sold internationally. Always run the margin calculation with country-specific costs before committing to a new market.

Pro Tips

  • Always use margin when talking to investors, accountants, or comparing profitability across competitors. Use markup only for internal pricing from cost — the two metrics are never equal and confusing them in negotiations can cost you thousands.
  • Build a margin buffer for e-commerce platform fees: if your target gross margin is 50%, aim for 55-60% before fees so you still hit 50% after platform commissions, payment processing, and shipping subsidies.
  • Track margin per SKU monthly in a spreadsheet alongside sales volume. Products with declining margins need immediate attention — the cause could be rising supplier costs, increased competition forcing price cuts, or hidden fulfillment cost creep.
  • When evaluating a new product, run the "margin from cost" calculation first: if your target retail price is $40 and you need 50% margin, your max allowable cost is $20. Only source products that come in at or below that number.
  • For subscription or repeat-purchase products, calculate margin on the first order and on recurring orders separately. First-order margin is usually negative due to acquisition costs; recurring margin on months 2+ is where profitability lives.

Limitations to Know

  • This calculator computes gross margin only — the profit remaining after subtracting the direct cost of goods sold from revenue. It does not account for operating expenses, fulfillment costs, platform fees, payment processing, advertising, or taxes.
  • For e-commerce specifically, net product margin after all selling costs is typically 40-70% lower than the gross margin shown here. Model your full P&L including all variable selling costs for a complete picture.
  • This calculator uses a single-product model and does not handle multi-product margin mix, volume-based discount tiers, or supplier minimum order quantity economics.
  • For financial reporting or tax purposes, consult an accountant.
Was this calculator helpful?
Cite this calculator

TheCalcUniverse. "Profit Margin & Markup Calculator — Free Online Calculator & Guide." TheCalcUniverse, 2026, https://thecalcuniverse.com/ecommerce/profit-margin-calculator/. Accessed July 24, 2026.

Embed this calculator on your site

Free to embed. Paste this into any HTML page — it stays up to date automatically.

Open embed ↗

You may also like

Guides that use this calculator