CPM Formula: How to Calculate Cost Per Mille
The first time an advertiser offered me a $5 CPM, I had to Google it in the bathroom. Here’s the dead-simple formula and real examples.
The first time an advertiser offered me a $5 CPM for a banner ad on my blog, I had no idea what that meant. I smiled, nodded, and immediately Googled it in the bathroom.
Turns out, it’s incredibly simple. But if you’re running ads or trying to monetize a website, misunderstanding CPM can cost you real money.
Let’s break down exactly what CPM is, the formula to calculate it, and two real-world examples so you never have to fake it in a meeting again.
01. What is CPM?
CPM stands for Cost Per Mille.
Mille is just the Latin word for thousand. So CPM literally translates to "Cost Per Thousand." It tells you how much you pay (or earn) for every 1,000 times an ad is shown.
Notice I said shown, not clicked. CPM is all about impressions. Whether someone clicks the ad or ignores it completely, the impression still counts. That’s what makes it different from CPC (Cost Per Click).
02. The CPM Formula
THE FORMULA
CPM = (Total Cost ÷ Total Impressions) × 1,000
That’s it. You take the total amount of money spent, divide it by the total number of impressions, and multiply by 1,000 to get a clean dollar amount.
Let’s look at how this works in real life from both sides of the table.
03. Example 1: You Are Buying Ads
Let’s say you run a Facebook ad campaign to promote your new SaaS tool. You set a budget of $500. At the end of the week, the ad was displayed 125,000 times.
🧮 The Math:
- • Total Cost: $500
- • Total Impressions: 125,000
- • CPM = ($500 ÷ 125,000) × 1,000
- • CPM = 0.004 × 1,000
- • Final CPM = $4.00
You are paying $4 for every 1,000 times your ad shows up in someone’s feed. For the software industry, a $4 CPM is actually pretty solid. If you were targeting lawyers or real estate agents, that same $4 CPM would be an absolute steal.
04. Example 2: You Are Selling Ads
Now let’s flip it. You own a niche newsletter with 20,000 subscribers. A company wants to sponsor your email and offers you $150 for one blast.
🧮 The Math:
- • Total Cost: $150
- • Total Impressions: 20,000
- • CPM = ($150 ÷ 20,000) × 1,000
- • CPM = 0.0075 × 1,000
- • Final CPM = $7.50
You are earning $7.50 per thousand impressions. Knowing this number is powerful. If another sponsor comes along and offers $100 for the same spot, you can instantly calculate that their CPM is only $5. You can confidently push back and ask for more money because you know your inventory is worth $7.50.
05. Why CPM is the Great Equalizer
Without CPM, comparing ad deals is impossible.
If Site A charges $100 for an ad and Site B charges $500, Site B sounds way more expensive. But what if Site A has 500,000 monthly views and Site B only has 20,000?
Site A’s CPM is $0.20. Site B’s CPM is $25.00. Site A is actually 125 times more expensive relative to the audience size. CPM gives you an apples-to-apples way to compare completely different platforms and deals.
Next time someone throws a CPM number at you, you won’t need to hide in the bathroom. Just run the formula, figure out if it makes sense for your niche, and make the call.