{
  "id": "cpm",
  "version": "47d2d60501ee",
  "status": "published",
  "name": "CPM Calculator",
  "question": "What is my CPM?",
  "summary": "Computes CPM (the cost per 1,000 ad impressions) from the campaign cost and impressions, or the cost or the impressions from the other two.",
  "category": "finance",
  "subcategory": "business",
  "url": "https://www.acalculator.org/finance/cpm-calculator",
  "markdown": "https://www.acalculator.org/finance/cpm-calculator.md",
  "kind": "formulas",
  "method": "CPM = cost ÷ impressions × 1,000; cost = CPM × impressions ÷ 1,000; impressions = cost ÷ CPM × 1,000.",
  "assumptions": [
    "Every impression costs the same: the CPM is an average over the campaign.",
    "Arithmetic is exact on the typed decimals; money shows to the cent and impressions to the whole number, halves up."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "cost": {
        "title": "Campaign cost",
        "description": "What the ads cost in total.",
        "type": "number",
        "x-unit": "USD",
        "exclusiveMinimum": 0,
        "maximum": 1000000000000
      },
      "impressions": {
        "title": "Impressions",
        "description": "How many times the ads were shown.",
        "type": "number",
        "exclusiveMinimum": 0,
        "maximum": 1000000000000
      },
      "cpm": {
        "title": "CPM",
        "description": "The cost per 1,000 impressions: cost ÷ impressions × 1,000.",
        "type": "number",
        "x-unit": "USD",
        "exclusiveMinimum": 0,
        "maximum": 10000
      }
    }
  },
  "solve": {
    "fillAny": 2,
    "variables": [
      "cost",
      "impressions",
      "cpm"
    ],
    "inputsOnly": []
  },
  "outputs": {
    "cost": {
      "label": "Campaign cost",
      "description": "What the ads cost in total.",
      "format": "money"
    },
    "impressions": {
      "label": "Impressions",
      "description": "How many times the ads were shown, to the nearest whole impression (halves up).",
      "format": "number"
    },
    "cpm": {
      "label": "CPM",
      "description": "The cost per 1,000 impressions: cost ÷ impressions × 1,000.",
      "format": "money"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "cost": 500,
      "impressions": 50000
    },
    "outputs": {
      "cpm": 10
    },
    "text": "Paying $500.00 for 50,000 impressions is a CPM of $10.00."
  },
  "examples": [
    {
      "given": {
        "cost": 15000,
        "impressions": 2400000
      },
      "expect": {
        "cpm": 6.25
      },
      "source": "Wikipedia, \"Cost per mille\" (https://en.wikipedia.org/wiki/Cost_per_mille): 15,000 ÷ 2,400,000 = 0.00625; × 1,000 = 6.25"
    },
    {
      "given": {
        "cpm": 6.25,
        "impressions": 2400000
      },
      "expect": {
        "cost": 15000
      },
      "source": "Wikipedia, \"Cost per mille\" (https://en.wikipedia.org/wiki/Cost_per_mille), worked back: 6.25 × 2,400,000 ÷ 1,000 = 15,000"
    },
    {
      "given": {
        "cost": 15000,
        "cpm": 6.25
      },
      "expect": {
        "impressions": 2400000
      },
      "source": "Wikipedia, \"Cost per mille\" (https://en.wikipedia.org/wiki/Cost_per_mille), worked back: 15,000 ÷ 6.25 × 1,000 = 2,400,000"
    },
    {
      "given": {
        "cost": 1000,
        "impressions": 30000
      },
      "expect": {
        "cpm": 33.333333333333336
      },
      "source": "hand calculation in content.mdx: 1,000 ÷ 30,000 × 1,000 = 33.33…, shown as $33.33"
    }
  ],
  "sources": [
    "Wikipedia, \"Cost per mille\": formula and worked example ($15,000 for 2,400,000 impressions is a $6.25 CPM). https://en.wikipedia.org/wiki/Cost_per_mille",
    "Google Ads Help, \"Cost-per-thousand impressions (CPM): Definition\". https://support.google.com/google-ads/answer/6310"
  ],
  "related": [
    "youtube-money",
    "roi",
    "profit"
  ],
  "changelog": []
}
