CPM (Cost Per Mille) tells you what 1,000 ad impressions cost, and the rule is simple: divide the total cost of a campaign by the number of impressions, then multiply by 1,000. You enter the total spend and the impressions served, and the calculator returns the CPM. This is the standard pricing model for display, video, and social media advertising, and it is the first number most media buyers check when comparing inventory.
in cost | Total ad spend | USD | 500 | 0 in impr | Impressions | - | 100000 | 1 out cpm | CPM | USD | cost / impr * 1000 | 2 out cpp | Cost per impression | USD | cost / impr | 4
Formula
CPM = (Total Cost ÷ Total Impressions) × 1,000
- CPM – cost per thousand impressions, in the same currency as the spend (e.g., USD, EUR, GBP)
- Total Cost – the full amount paid for the campaign, including any fees or taxes the platform charges
- Impressions – the number of times the ad was displayed, regardless of clicks or views
The “M” in CPM comes from the Roman numeral for 1,000, so the multiplication by 1,000 is the core of the rule. If you spend $500 and get 100,000 impressions, the CPM is (500 ÷ 100,000) × 1,000 = $5.00. That means every 1,000 times the ad appears, it costs $5.
Worked Example
Using the default values from the calculator:
- Start with the total spend: $500
- Start with the impressions: 100,000
- Divide cost by impressions: 500 ÷ 100,000 = 0.005
- Multiply by 1,000: 0.005 × 1,000 = 5.00
The result is a CPM of $5.00. The calculator also shows the cost per single impression: 500 ÷ 100,000 = $0.0005, or 0.05 cents. That second figure is rarely quoted but useful for sanity checks.
When to Use CPM vs. CPC vs. CPA
CPM is the right metric when the goal is visibility, not action. Brand awareness campaigns, retargeting, and video views are typically priced this way because the advertiser pays for the chance to be seen, not for a click or a sale. Cost per click (CPC) matters when you want traffic to a landing page, and cost per acquisition (CPA) matters when you want a completed purchase or signup.
A common misconception is that a low CPM is always better. A $2 CPM on a low-quality website can deliver zero engaged users, while a $20 CPM on a premium, well-targeted placement may produce a strong return. The rule is to compare CPM only within the same audience, placement type, and time period.
How Platforms Calculate Impressions
Not all impressions are equal. Most platforms count an impression when the ad is at least partially visible on screen, but the exact threshold varies:
- Google Display Network – counts when 50% of the ad is visible for at least 1 second (for standard banners)
- Facebook/Instagram – counts when the ad enters the viewport, even if the user scrolls past quickly
- YouTube – counts a view after 30 seconds (or the full ad if shorter), but impressions are counted when the ad is shown
- Programmatic exchanges – often use the IAB standard: 50% visibility for 1 second, or 30% for large formats
This matters because the same creative can show a different CPM on different platforms due to how they count. Always read the platform’s measurement definition before comparing numbers.
Common Mistakes in CPM Calculation
The most frequent error is mixing up “impressions” with “reach.” Reach is the number of unique people who saw the ad; impressions include repeated views. If one person sees the ad three times, that is three impressions but one reach. CPM is always based on impressions, not reach.
Another mistake is forgetting to include all costs. If you spend $300 on the ad platform and $50 on a design tool, the true CPM should use $350, not $300. Similarly, if the platform charges a fee on top of the bid, include it.
Finally, be careful with decimal places. A CPM of $4.5 is not the same as $45. The calculator rounds to two decimals, which is standard for reporting. For very low CPMs (under $1), keep at least three decimals to see meaningful differences.
How to Benchmark Your CPM
There is no universal “good” CPM because it varies wildly by industry, country, and ad format. As a general guide, display ads in the US often range from $2 to $10, while video ads can run $10 to $30. Targeted B2B campaigns can exceed $50. Instead of comparing to an average, benchmark against your own past campaigns and against the platform’s suggested range.
If your CPM is higher than expected, check:
- Targeting narrowness – very specific audiences cost more per impression
- Ad placement – premium sites and above-the-fold positions cost more
- Time of year – Q4 retail season inflates prices
- Ad format – interstitial and video cost more than standard banners
If your CPM is lower than expected, verify that the impressions are real and not bot traffic. Very low CPMs on obscure websites often indicate fraudulent inventory.
CPM vs. eCPM and vCPM
You will also see eCPM and vCPM. eCPM (effective CPM) is what you actually paid per 1,000 impressions when you bought on a CPC or CPA basis – it is a backward-looking calculation. vCPM (viewable CPM) only charges for impressions that meet the viewability standard (e.g., 50% visible for 1 second).
When comparing, always check which one you are looking at. A campaign bought on a $5 CPM basis might have an eCPM of $8 if the platform only counted 60% of impressions as viewable. The eCPM tells you the true cost of what you got, while the headline CPM tells you what you agreed to pay.
Limits of the CPM Formula
The formula itself is simple, but it does not account for ad quality, audience intent, or creative performance. Two campaigns with the same CPM can have wildly different outcomes. CPM also does not include the cost of the creative production or the landing page, so it is a media cost only, not a total campaign cost.
For budgeting, you can work backwards: if you know your target CPM and your budget, the number of impressions you can buy is (Budget ÷ CPM) × 1,000. For example, with $1,000 and a $10 CPM, you get 100,000 impressions. That reverse calculation is often more useful in planning than the forward one.
Frequently Asked Questions
What is a good CPM rate?
It depends on the industry, format, and country. For standard display ads in the US, $2–$5 is typical; for video, $10–$30 is common. The best benchmark is your own historical data and the platform’s suggested bid range.
Does CPM include clicks?
No. CPM is strictly about impressions. Clicks are a separate metric. You can calculate a click-through rate (CTR) by dividing clicks by impressions, but that is not part of the CPM formula.
How do I calculate CPM in Excel?
Put the cost in cell A1 and the impressions in cell B1, then use the formula =A1/B1*1000. Format the result as a number with two decimals.
Is CPM the same as cost per 1,000 views?
On video platforms, an “impression” is not always a “view.” A view usually requires a longer duration (e.g., 30 seconds on YouTube), while an impression is counted as soon as the ad is shown. CPM is always per impression, not per view.
Why is my CPM different from what I bid?
Because the platform may have charged you based on a different metric (e.g., vCPM), or because your bid was adjusted by auction dynamics. Your invoice should show the exact basis.
Can I use CPM for social media ads?
Yes, but social platforms often report “CPM” as the cost per 1,000 impressions, and they also show “CPC” and “CPA.” The same formula applies, but check the platform’s definition of an impression.