How Do You Calculate CPM? The Formula Explained

To calculate CPM, divide the total cost of an ad campaign by the number of impressions, then multiply by 1,000. The formula looks like this: (Total Campaign Cost / Total Impressions) x 1,000 = CPM. CPM stands for “cost per mille,” with mille being Latin for thousand, so the result tells you exactly what you’re paying for every 1,000 times your ad is shown.

The CPM Formula

The math is straightforward. You need two numbers: how much you spent on the campaign and how many impressions it delivered. An impression counts each time your ad loads and is served to a user’s screen.

Say you spent $500 on a campaign that generated 200,000 impressions. Plug those into the formula:

  • $500 / 200,000 = $0.0025 per impression
  • $0.0025 x 1,000 = $2.50 CPM

That means you paid $2.50 for every 1,000 times your ad appeared. If you ran a larger campaign at $10,000 and received 2 million impressions, your CPM would be $5.00. The higher the CPM, the more you’re paying per thousand impressions.

Solving for Cost or Impressions

You can rearrange the same formula depending on what you need to figure out. If you know your CPM rate and want to estimate total cost before a campaign runs, multiply CPM by total impressions and divide by 1,000:

  • Total Cost = (CPM x Impressions) / 1,000

So at a $4.00 CPM with 500,000 impressions, you’d pay $2,000. This version is useful when a platform quotes you a CPM rate and you want to budget based on your target reach.

To figure out how many impressions a given budget will buy at a set CPM:

  • Impressions = (Total Cost / CPM) x 1,000

A $3,000 budget at a $6.00 CPM gets you 500,000 impressions. Running these numbers before you commit helps you compare platforms and decide where your money goes furthest.

What Counts as an Impression

An impression is recorded when an ad is served to a page or app screen. It does not mean the user actually looked at the ad, clicked it, or interacted with it in any way. If your ad loads at the bottom of a long webpage and the reader never scrolls down, that still counts as an impression under the standard CPM model.

This distinction matters because it affects how you interpret your CPM. A low CPM looks efficient on paper, but if most of those impressions are never actually seen by a human, the real cost of reaching people is higher than the number suggests.

eCPM: The Publisher’s Version

If you’re a publisher (someone running a website or app that displays ads), you’ll encounter eCPM, or effective cost per mille. The formula is nearly identical:

  • eCPM = (Total Ad Revenue / Total Impressions) x 1,000

The difference is perspective. CPM is the rate an advertiser pays. eCPM is what a publisher earns. Publishers use eCPM to measure how well their ad inventory is performing across different channels. If you sell some ad slots through direct deals and others through programmatic auctions, eCPM lets you compare them on equal footing by normalizing everything to a per-thousand rate.

For example, if your site earned $1,200 from 400,000 impressions last month, your eCPM was $3.00. If a different ad network delivered 400,000 impressions but only generated $800, that network’s eCPM was $2.00, telling you the first arrangement is more profitable.

Viewable CPM

Viewable CPM (sometimes written as vCPM) adjusts the standard calculation to count only impressions that were actually visible to a user. The industry standard, set by the Media Rating Council, defines a display ad as viewable when at least 50% of its pixels are on screen for at least one continuous second. For video ads, the threshold is 50% of pixels for two continuous seconds.

With vCPM, an advertiser only pays for impressions meeting that viewability standard, so the rate per thousand is typically higher than standard CPM. But each impression carries more value because a real person had the chance to see the ad. If you’re comparing a $3.00 standard CPM against a $5.00 vCPM, the vCPM option may deliver better results despite the higher sticker price.

What Affects CPM Rates

CPM rates vary widely depending on several factors. The platform matters: social media, display networks, video streaming, and in-app ads all carry different price ranges. Video ads typically command higher CPMs than static banner ads because they hold attention longer.

Audience targeting also drives CPM up. Broad campaigns shown to general audiences cost less per thousand than narrowly targeted campaigns aimed at specific demographics, interests, or behaviors. The more precisely you define your audience, the smaller the available pool of impressions, and the more each one costs.

Seasonality plays a role too. CPMs tend to spike in the fourth quarter of the year when advertisers compete aggressively for holiday shoppers. Industry also matters: finance, insurance, and technology advertisers routinely pay higher CPMs than entertainment or lifestyle brands because each conversion is worth more to them.

When CPM Is the Right Metric

CPM works best for campaigns focused on brand awareness and visibility rather than direct conversions. If your goal is to get your name in front of as many people as possible, CPM gives you a clean way to compare costs across platforms and campaigns.

If your goal is clicks, sign-ups, or purchases, you’ll want to pair CPM with other metrics. CPC (cost per click) tells you what each click costs. CPA (cost per acquisition) tells you what each conversion costs. A campaign with a low CPM but almost no clicks might be cheaper per impression but more expensive per result than a higher-CPM campaign that drives real engagement. Running the CPM calculation is always a useful starting point, but connecting it to downstream outcomes gives you the full picture of what your ad spend is actually buying.

Post navigation