Dev.to WebDev 🛠 Dev 👁 0 📖 3 min read

CPM, Explained: The Math Behind Cost Per Mille, CPC, and CPA

Every advertiser eventually asks the same question: what did a thousand views actually cost? The answer is CPM — cost per mille — and the math behind it is one division and one multiplication. This post works through it

Every advertiser eventually asks the same question: what did a thousand views actually cost? The answer is CPM — cost per mille — and the math behind it is one division and one multiplication. This post works through it with real numbers, then shows how CPM connects to CPC and CPA, so you can translate any campaign into any model.

The formula

CPM = (Total Cost ÷ Total Impressions) × 1,000
"Mille" is Latin for one thousand. That is the whole secret: divide cost by impressions to get the cost of one view, then scale it up to a thousand so the number is readable.

The example to memorise

A $500 campaign bought 250,000 impressions. Step by step:

  1. Total cost: $500.
  2. Total impressions: 250,000.
  3. Cost per impression: 500 ÷ 250,000 = $0.002.
  4. CPM: 0.002 × 1,000 = $2.00. Reverse check: at a $2.00 CPM, $500 should buy exactly 250,000 impressions — (500 ÷ 2.00) × 1,000 = 250,000. It does. If you want to skip the arithmetic, a free cpm calculator runs the same calculation instantly, but knowing the steps means you can sanity-check any number an ad platform shows you. ## Two more examples A $1,000 campaign with 400,000 impressions: (1,000 ÷ 400,000) × 1,000 = $2.50 CPM. A $750 campaign with 100,000 impressions: (750 ÷ 100,000) × 1,000 = $7.50 CPM. The third one costs three times the first per thousand — but that does not automatically make it a bad buy. A $7.50 CPM on a narrow, high-intent audience can outperform a $2.00 CPM on a broad, indifferent one. CPM measures the price of attention, not its quality. ## Running it backwards Media planners use the formula in reverse just as often: Impressions = (Total Cost ÷ CPM) × 1,000. At a $5.00 CPM, a $2,000 budget buys 400,000 impressions. At a $3.00 CPM, a million impressions cost $3,000. That is how a quoted CPM becomes a reach forecast before a single dollar is spent. ## How CPM connects to CPC and CPA CPM, CPC (cost per click), and CPA (cost per acquisition) describe the same spend in different units, and two rates connect them: click-through rate and conversion rate. Take the $500 / 250,000-impression campaign again. At a 1% click-through rate, 2,500 people click, so CPC = $500 ÷ 2,500 = $0.20. If 25 of them buy (a 1% conversion rate), CPA = $500 ÷ 25 = $20.00. The chain is: CPM × CTR determines CPC, and CPC × conversion rate determines CPA. A cheap CPM with a 0.1% click-through rate produced $2.50 clicks in one of our examples, while a $7.50 CPM with a 2% click-through rate produced $0.38 clicks. The "expensive" CPM was nearly seven times cheaper per click. Never judge a CPM without the click-through rate. ## The classic mistake CPM is cost per 1,000 impressions, not per click — and not per person, either. Impressions count displays; reach counts unique people. If the average person saw your ad twice, 1,000 impressions reached about 500 people. The other classic mistake is using reach instead of impressions in the formula, which inflates the CPM: our $500 campaign has a $2.00 CPM on impressions but $5.00 if you mistakenly divide by 100,000 reach. Full detail, including five mistakes and a quick-reference table, is in our guide on how to calculate cpm. ## What is a good CPM? It depends on the channel. In 2026 planning ranges, Google Display typically runs $2–$5, Meta $6–$14, and LinkedIn $25–$50+. A $2.00 CPM is good on Display and impossible on LinkedIn — same number, different verdict. Judge yours against your own platform and industry, and against your own history first. ## Try it Run your own campaign through a free cpm calculator — cost and impressions in, CPM out, plus the reverse calculation for planning. And if your CPM looks high, the fixes are usually boring: broaden the audience, refresh the creative, cap frequency. Cutting CPM from $7.50 to $2.50 saves $5,000 on every million impressions. That is real money, and it comes from the auction, not the budget.
📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.