CPM Formula: How to Calculate Cost Per Thousand Impressions
Last updated: July 31, 2026
The CPM formula is CPM = (Cost ÷ Impressions) × 1,000. It tells you what you’re paying for every thousand times your ad is served. This page walks through every direction you can solve it — finding CPM, finding cost, finding impressions — with real campaign numbers you can check against your own.
What Is the CPM Formula?
CPM equals your total ad spend divided by the number of impressions delivered, then multiplied by 1,000. Three variables. One division. One multiplication.
The “M” stands for mille — Latin for thousand. You’re calculating cost per thousand impressions, not cost per single impression. That × 1,000 is doing real work. Without it you’d get a number like $0.0075, which is technically correct but useless for comparing campaigns or negotiating media rates.
The formula works the same across every channel. Display banners on Google Display Network, pre-roll on YouTube, programmatic audio, podcast host-reads — platform doesn’t change the math. What changes is the CPM rate itself, and that’s a function of supply, demand, and targeting precision.
What Does Each Variable in the CPM Formula Mean?
- Cost
- Total amount spent on the campaign or ad set.
- Impressions
- Total number of times the ad was displayed — not unique viewers.
- 1,000
- Fixed multiplier converting cost-per-impression to cost-per-thousand.
Cost is your actual spend. Not your budget ceiling — your real expenditure. You set a $1,000 daily budget but Meta only spent $847? Use $847.
Impressions is total ad serves. One person seeing your ad 5 times counts as 5 impressions. That distinction between impressions and reach trips people up — more on that in the mistakes section below.
1,000 is a constant. Always 1,000. It’s baked into the definition of CPM itself.
How Do You Calculate CPM from Cost and Impressions?
Divide your total spend by total impressions, then multiply by 1,000. This is the default direction — the one you use when evaluating performance after a campaign runs.
Step-by-Step CPM Calculation
Step 3 gives you cost per single impression. Nobody thinks in those numbers. Step 4 converts it to something you can actually say out loud in a media review.
CPM Calculation Example: Facebook Display Campaign
You run a Facebook awareness campaign for a DTC skincare brand. Two-week flight. The campaign spends $1,200 and generates 180,000 impressions.
CPM = ($1,200 ÷ 180,000) × 1,000 = $6.67
That $6.67 tells you more than the raw spend ever could. A $1,200 campaign with 180,000 impressions is reasonably efficient for Facebook display. A $1,200 campaign with 40,000 impressions — a $30 CPM — is a problem. Identical budgets. Only CPM exposes the gap.
Compare your result against current CPM benchmarks to see where you sit relative to vertical averages. A $6.67 CPM in financial services is excellent. In entertainment, it’s mediocre.
How Do You Calculate Total Cost from CPM and Impressions?
Rearrange the formula: Cost = CPM × (Impressions ÷ 1,000). Use this direction when a publisher or platform quotes you a CPM rate and you need to know what a specific impression volume will actually cost.
This is the planning direction. You’re building a media plan, you have a quoted rate, and you need a dollar figure for the insertion order. Most people reach for the CPM calculator here because rearranging formulas in your head during a planning call is a reliable way to look stupid.
Cost Calculation Example: YouTube Pre-Roll Campaign
A YouTube rep quotes you $12 CPM for skippable pre-roll ads targeting tech professionals in the US. You want 500,000 impressions.
Cost = $12 × (500,000 ÷ 1,000) = $12 × 500 = $6,000
Now the comparison becomes obvious. If LinkedIn quotes $35 CPM for the same audience profile, 500,000 impressions costs $17,500. Same professional audience. Nearly 3× the price. Whether LinkedIn’s targeting precision justifies that premium is a real question — but you can’t even ask it without running the formula in this direction first.
How Do You Calculate Impressions from CPM and Budget?
Rearrange one more time: Impressions = (Budget ÷ CPM) × 1,000. This tells you how far a fixed budget stretches at a given CPM rate.
This direction gets ignored the most. Media planners default to “how much does this cost?” when the better question is often “how many impressions can I buy?” A fixed budget isn’t a constraint — it’s a lens for comparing volume across channels.
Impressions Calculation Example: LinkedIn B2B Campaign
You have $4,000 for a LinkedIn Sponsored Content campaign targeting CFOs at mid-market SaaS companies. LinkedIn’s CPM for that audience sits around $33 based on recent auction data.
Impressions = ($4,000 ÷ $33) × 1,000 = 121,212 impressions
Roughly 121,000 impressions. Against a niche B2B audience of CFOs, that number probably delivers solid frequency. Against a broad consumer target, it’s paper-thin. The formula gives you the volume. Whether that volume is enough depends on your total addressable audience — a question the math alone can’t answer.
What Is the Difference Between CPM, eCPM, and RPM Formulas?
CPM is what an advertiser pays per thousand impressions. eCPM is what a publisher earns per thousand impressions across all revenue sources. RPM is what a publisher earns per thousand page views. They look like the same formula applied three ways, but they measure fundamentally different things from opposite sides of the transaction.
| CPM | eCPM | RPM | |
|---|---|---|---|
| Formula | (Cost ÷ Impressions) × 1,000 | (Total Earnings ÷ Impressions) × 1,000 | (Estimated Earnings ÷ Page Views) × 1,000 |
| Used by | Advertisers | Publishers | Publishers |
| Measures | Cost efficiency | Revenue per impression | Revenue per page view |
| Denominator | Ad impressions | Ad impressions | Page views |
Here’s where people get tripped up. A page with two ad slots generates two impressions per page view. RPM is almost always higher than eCPM for the same page because page views are the smaller denominator. A publisher reporting an “RPM of $18” and an “eCPM of $9” isn’t contradicting themselves — they’re measuring two different units.
If you’re buying ads, CPM is your number. If you’re monetizing content, eCPM and RPM are your numbers. Mixing them means comparing your cost to someone else’s revenue. That comparison tells you nothing.
What Factors Affect the CPM Rate in the Formula?
The formula itself never changes. The CPM rate that feeds into it shifts constantly, driven by auction dynamics you can influence but never fully control. Five variables matter most.
Industry
Finance and insurance advertisers routinely pay CPMs 4–8× higher than gaming or entertainment advertisers on the same platforms. The gap traces directly to customer lifetime value. A new checking account relationship is worth thousands in long-term revenue to a bank. A mobile game install might be worth $2. Advertisers bid what an impression is worth to their business — and in finance, that number is high.
Platform
A $5 CPM on Meta and a $35 CPM on LinkedIn aren’t comparable without context. LinkedIn’s targeting narrows to job title, company size, seniority, and industry — every impression is more likely to hit a decision-maker. Paying 7× more per impression can still be cheaper per qualified prospect. Check platform-specific benchmarks before deciding a CPM is “too high.”
Audience Targeting
Broad targeting — ages 18–65, all genders, nationwide — produces cheap CPMs. That’s not efficiency. That’s waste you haven’t measured yet.
Narrow targeting — CFOs at SaaS companies with 200–500 employees in the Northeast — produces expensive CPMs. Every filter shrinks the auction pool and raises the clearing price. Most advertisers over-target and overpay. The winning move is usually one step broader than your instinct.
Ad Format
Video costs more than static display. A 15-second pre-roll on YouTube runs 2–3× the CPM of a 300×250 banner on equivalent inventory. The premium reflects engagement: video holds attention longer, drives higher recall, and supports frequency capping better than banners that get scrolled past in 0.4 seconds.
Seasonality
Q4 CPMs spike 20–40% above Q1 levels on nearly every platform. Retail brands flood auctions for Black Friday and holiday shopping. That demand surge raises clearing prices for everyone — including B2B advertisers with zero connection to holiday retail. If your campaign timing is flexible, January and February consistently deliver the cheapest impressions of the year.
Common Mistakes When Calculating CPM
Confusing Impressions with Reach
Impressions count every ad serve. Reach counts unique viewers. One person, four ad serves: 4 impressions, 1 reach.
Plug reach into the CPM formula instead of impressions and you’ll inflate your CPM by your average frequency. A campaign with 100,000 impressions at 4× frequency has 25,000 reach. Swap in reach and your CPM quadruples on paper. Nothing changed in reality — you just used the wrong denominator.
Forgetting to Multiply by 1,000
Skip the × 1,000 and you get cost per single impression: $0.007 instead of $7.00. This happens in spreadsheets more than anywhere else. Someone builds a formula column, leaves out the multiplier, and an entire dashboard reports CPMs three orders of magnitude too low. Nobody catches it for weeks because the numbers look vaguely plausible if you’re not paying attention.
Using Gross Cost Instead of Net Cost
If you buy through an agency, your invoice includes the agency’s commission — typically 10–15% of media spend. Calculate CPM from the gross invoice and your result runs 10–15% higher than the actual media CPM.
Use net cost — what the platform actually received — for apples-to-apples comparison with benchmarks and for CPC conversion calculations. If you only have gross numbers, subtract the commission before dividing. A 15% commission on a $10,000 invoice means $8,500 net media spend.
CPM Formula Quick Reference Table
| You want to find… | Formula | Example |
|---|---|---|
| CPM | (Cost ÷ Impressions) × 1,000 | ($500 ÷ 200,000) × 1,000 = $2.50 |
| Total Cost | CPM × (Impressions ÷ 1,000) | $10 × (300,000 ÷ 1,000) = $3,000 |
| Impressions | (Cost ÷ CPM) × 1,000 | ($2,000 ÷ $8) × 1,000 = 250,000 |
Bookmark this or use the CPM calculator to run any direction without rearranging anything.
Frequently Asked Questions About the CPM Formula
Either. The CPM formula works at any level — single ad, ad set, campaign, or full account. The only requirement is that Cost and Impressions come from the same scope. Mixing campaign-level spend with ad-level impressions produces a meaningless number.
No. Cost cannot be negative and impressions cannot be negative. Both inputs are always zero or positive, so CPM is always zero or positive. A negative CPM in a spreadsheet indicates a formula error or data import issue.
CPM measures cost per thousand impressions — what visibility costs. CPC measures cost per click — what engagement costs. You can convert between them using the formula CPC = CPM ÷ (CTR × 1,000) if you know the click-through rate.
It depends on platform, industry, and targeting. A $5 CPM on Facebook for broad consumer targeting is normal. A $5 CPM on LinkedIn targeting C-suite executives would be unusually low. Check CPM benchmarks by platform and industry for current averages.
Use the formula CPC = CPM ÷ (CTR × 1,000). For example, if your CPM is $10 and your CTR is 0.5%, then CPC = $10 ÷ (0.005 × 1,000) = $10 ÷ 5 = $2.00. Higher click-through rates produce lower CPCs at the same CPM.
CPC = CPM ÷ (CTR × 1,000). If your CPM is $10 and your CTR is 0.5%, the math is $10 ÷ (0.005 × 1,000) = $2.00 CPC. The CPC to CPM converter handles it in both directions.