{
  "id": "cpc",
  "version": "439836ffcf31",
  "status": "published",
  "name": "CPC Calculator",
  "question": "What is my CPC?",
  "summary": "Computes the average cost per click (CPC) of an ad campaign from its total cost and clicks, or the cost or the clicks from the other two.",
  "category": "finance",
  "subcategory": "business",
  "url": "https://www.acalculator.org/finance/cpc-calculator",
  "markdown": "https://www.acalculator.org/finance/cpc-calculator.md",
  "kind": "formulas",
  "method": "Average CPC = total cost ÷ clicks; total cost = average CPC × clicks; clicks = total cost ÷ average CPC.",
  "assumptions": [
    "The cost is what you paid for the clicks (the actual cost per click summed over all clicks), not your bids.",
    "Arithmetic is exact on the typed decimals; money shows to the cent and clicks to the whole number, halves up."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "cost": {
        "title": "Total cost of clicks",
        "description": "What the clicks cost in total.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0,
        "maximum": 1000000000000
      },
      "clicks": {
        "title": "Clicks",
        "description": "How many clicks the ads got.",
        "type": "number",
        "exclusiveMinimum": 0,
        "maximum": 100000000
      },
      "cpc": {
        "title": "Average CPC",
        "description": "The average cost per click: total cost ÷ clicks.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0,
        "maximum": 10000
      }
    }
  },
  "solve": {
    "fillAny": 2,
    "variables": [
      "cost",
      "clicks",
      "cpc"
    ],
    "inputsOnly": []
  },
  "outputs": {
    "cost": {
      "label": "Total cost of clicks",
      "description": "Average CPC × clicks, to the cent.",
      "format": "money"
    },
    "clicks": {
      "label": "Clicks",
      "description": "Total cost ÷ average CPC, to the nearest whole click (halves up).",
      "format": "number"
    },
    "cpc": {
      "label": "Average CPC",
      "description": "Total cost ÷ clicks, to the cent.",
      "format": "money"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "cost": 1500,
      "clicks": 1200
    },
    "outputs": {
      "cpc": 1.25
    },
    "text": "$1,500.00 for 1,200 clicks is an average CPC of $1.25."
  },
  "examples": [
    {
      "given": {
        "cost": 0.6,
        "clicks": 2
      },
      "expect": {
        "cpc": 0.3
      },
      "source": "Google Ads Help, \"Average cost-per-click (Avg. CPC): Definition\" (the total cost of your clicks ÷ the total number of clicks; two clicks costing $0.20 and $0.40 are $0.60 ÷ 2 = $0.30). https://support.google.com/google-ads/answer/14074: 0.60 ÷ 2 = 0.30"
    },
    {
      "given": {
        "cpc": 1.25,
        "clicks": 800
      },
      "expect": {
        "cost": 1000
      },
      "source": "Google Ads Help, \"Average cost-per-click (Avg. CPC): Definition\" (the total cost of your clicks ÷ the total number of clicks; two clicks costing $0.20 and $0.40 are $0.60 ÷ 2 = $0.30). https://support.google.com/google-ads/answer/14074, worked back; hand calculation in content.mdx: 1.25 × 800 = 1,000"
    },
    {
      "given": {
        "cost": 1500,
        "cpc": 2.5
      },
      "expect": {
        "clicks": 600
      },
      "source": "Google Ads Help, \"Average cost-per-click (Avg. CPC): Definition\" (the total cost of your clicks ÷ the total number of clicks; two clicks costing $0.20 and $0.40 are $0.60 ÷ 2 = $0.30). https://support.google.com/google-ads/answer/14074, worked back; hand calculation in content.mdx: 1,500 ÷ 2.50 = 600"
    },
    {
      "given": {
        "cost": 100,
        "clicks": 3
      },
      "expect": {
        "cpc": 33.333333333333336
      },
      "source": "Google Ads Help, \"Average cost-per-click (Avg. CPC): Definition\" (the total cost of your clicks ÷ the total number of clicks; two clicks costing $0.20 and $0.40 are $0.60 ÷ 2 = $0.30). https://support.google.com/google-ads/answer/14074; hand calculation in content.mdx: 100 ÷ 3 = 33.33…, shown as $33.33"
    }
  ],
  "sources": [
    "Google Ads Help, \"Average cost-per-click (Avg. CPC): Definition\": average CPC is the total cost of your clicks divided by the total number of clicks; two clicks costing $0.20 and $0.40 give $0.60 ÷ 2 = $0.30. https://support.google.com/google-ads/answer/14074 (retrieved 2026-10-18)",
    "Google Ads Help, \"Actual cost-per-click (CPC): Definition\": you are often charged less than your maximum CPC bid. https://support.google.com/google-ads/answer/6297 (retrieved 2026-10-18)"
  ],
  "related": [
    "cpm",
    "ctr",
    "roas",
    "cac"
  ],
  "changelog": []
}
