{
  "id": "market-share",
  "version": "b4038c169d0c",
  "status": "published",
  "name": "Market Share Calculator",
  "question": "What is my market share?",
  "summary": "Computes market share: your sales as a percent of the total sales in your market, in dollars or units, with the relative market share against your largest competitor.",
  "category": "finance",
  "subcategory": "business",
  "url": "https://www.acalculator.org/finance/market-share-calculator",
  "markdown": "https://www.acalculator.org/finance/market-share-calculator.md",
  "kind": "function",
  "method": "Market share = your sales ÷ total market sales × 100; relative market share = your sales ÷ largest competitor’s sales × 100, which equals your share ÷ their share × 100.",
  "assumptions": [
    "Your sales, the market total and the competitor’s sales use the same measure (dollars or units) and the same period.",
    "The total market sales include your own sales.",
    "Arithmetic is exact on the typed decimals; the shares show to 2 decimals."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "sales": {
        "title": "Your sales",
        "description": "Your sales in the period, in dollars or in units.",
        "type": "number",
        "minimum": 0,
        "maximum": 1000000000000000
      },
      "market": {
        "title": "Total market sales",
        "description": "The sales of every company in the market in the same period, yours included, in the same measure.",
        "type": "number",
        "exclusiveMinimum": 0,
        "maximum": 1000000000000000
      },
      "leader": {
        "title": "Largest competitor’s sales",
        "description": "The sales of your largest competitor (the next largest, if you lead), for the relative market share. Leave it empty to skip it.",
        "type": "number",
        "minimum": 0,
        "maximum": 1000000000000000
      }
    }
  },
  "outputs": {
    "share": {
      "label": "Market share",
      "description": "Your sales ÷ total market sales × 100.",
      "format": "percent"
    },
    "others": {
      "label": "Competitors’ share",
      "description": "(Total market sales − your sales) ÷ total market sales × 100.",
      "format": "percent"
    },
    "leaderShare": {
      "label": "Largest competitor’s share",
      "description": "Their sales ÷ total market sales × 100.",
      "format": "percent"
    },
    "relative": {
      "label": "Relative market share",
      "description": "Your sales ÷ your largest competitor’s sales × 100.",
      "format": "percent"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "sales": 1000000,
      "market": 20000000,
      "leader": 1500000
    },
    "outputs": {
      "share": 5,
      "others": 95,
      "leaderShare": 7.5,
      "relative": 66.66666666666667
    },
    "text": "Sales of 1,000,000 out of total market sales of 20,000,000 are a market share of 5%."
  },
  "examples": [
    {
      "given": {
        "sales": 1000000,
        "market": 20000000,
        "leader": 1500000
      },
      "expect": {
        "share": 5,
        "others": 95,
        "leaderShare": 7.5,
        "relative": 66.66666666666667
      },
      "source": "OpenStax, Principles of Marketing, 2.4 Marketing Plan Progress Using Metrics (market share in a category = the company’s sales ÷ the total sales in the category; relative market share = your share ÷ your leading competitor’s share). https://openstax.org/books/principles-marketing/pages/2-4-marketing-plan-progress-using-metrics: $1 million a year is a 5% share; the leader sells $1.5 million; OpenStax writes 5% ÷ 8% = 66%, and from the sales 1,000,000 ÷ 1,500,000 × 100 = 66.67% (the leader’s share is 7.5%)"
    },
    {
      "given": {
        "sales": 4500,
        "market": 30000
      },
      "expect": {
        "share": 15,
        "others": 85
      },
      "source": "OpenStax, Principles of Marketing, 2.4 Marketing Plan Progress Using Metrics (market share in a category = the company’s sales ÷ the total sales in the category; relative market share = your share ÷ your leading competitor’s share). https://openstax.org/books/principles-marketing/pages/2-4-marketing-plan-progress-using-metrics; hand calculation in content.mdx: 4,500 ÷ 30,000 × 100 = 15"
    },
    {
      "given": {
        "sales": 6000000,
        "market": 20000000,
        "leader": 4000000
      },
      "expect": {
        "share": 30,
        "leaderShare": 20,
        "relative": 150
      },
      "source": "OpenStax, Principles of Marketing, 2.4 Marketing Plan Progress Using Metrics (market share in a category = the company’s sales ÷ the total sales in the category; relative market share = your share ÷ your leading competitor’s share). https://openstax.org/books/principles-marketing/pages/2-4-marketing-plan-progress-using-metrics; hand calculation in content.mdx: 30% ÷ 20% × 100 = 150"
    }
  ],
  "sources": [
    "OpenStax, Principles of Marketing, 2.4 Marketing Plan Progress Using Metrics: market share in a category is the company's sales divided by the total sales in the category; relative market share is your share divided by your leading competitor's share, with the appliance store example. https://openstax.org/books/principles-marketing/pages/2-4-marketing-plan-progress-using-metrics (retrieved 2026-10-18)"
  ],
  "related": [
    "share-of-voice",
    "tam-sam-som",
    "revenue",
    "gross-margin"
  ],
  "changelog": []
}
