{
  "id": 19871506,
  "title": "Markup vs margin: the pricing bug that quietly eats marketplace profit",
  "url": "https://urgent.news/2026/11/13/markup-vs-margin-the-pricing-bug-that-quietly-eats-marketplace-profit",
  "topic": "finance",
  "section": "Finance & Markets",
  "published": "2026-11-13T21:58:54.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/__a275a1bef4/markup-vs-margin-the-pricing-bug-that-quietly-eats-marketplace-profit-1ei7"
  },
  "original_language": "en",
  "account": "Small businesses and side projects often make a pricing mistake: they confuse markup and margin when setting prices. Markup is profit as a percentage of cost, while margin is profit as a percentage of price. For example, if an item costs $20 and a seller wants a 30% profit, they incorrectly set the price at $26. Markup is 50% and margin is 33.3% in this case.\n\nMarketplace fees are charged as a percentage of the price, not the cost, so they affect margin more than markup. Using JavaScript, we can calculate the correct price needed to achieve a target margin after fees. The formula is: price = (cost + FIXED) / (1 - PCT - m), where PCT is the marketplace fee rate, m is the target margin, and FIXED is the fixed payment processing fee.\n\nIf fees and target margin add up close to 1, the required price can become very high, making it impossible to achieve the desired margin. A 13% fee combined with an 87% margin, for instance, is unattainable. Discounts have a more significant impact on profit than they appear. Offering a 20% discount on a $35.62 item reduces profit by around 58%, and a 34% discount would lead to selling at a loss.\n\nWhen setting prices, sellers should decide whether to use markup or margin and calculate the price based on their target margin after fees. Platforms like Etsy and eBay offer calculators to help with these calculations. This arithmetic is crucial to ensure profitability and avoid common pricing mistakes.",
  "summary": "Here's a pricing rule I see in a lot of small shops and side projects: \"My item costs $20, I want 30% profit, so I'll sell it for $26.\" It feels right. It's wrong twice: it mixes up markup and margin, and it forgets that marketplace fees are charged on the price , not on the cost. Let's put numbers and a bit of JavaScript on it. Markup and margin are different numbers Markup is profit relative to…",
  "key_points": [
    "Markup and margin are pricing concepts often confused by small businesses",
    "Marketplace fees impact margin more than markup due to percentage-based pricing",
    "Incorrectly setting prices leads to unattainable margins or selling at a loss"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}