CPM Formula: How to Calculate Cost Per Mille (With Examples)

Master the CPM formula with real-world examples, reverse calculations, and tips for using CPM to optimize your ad campaigns.

Published: Oct 22, 2026 · Updated: Oct 26, 2026

CPM Formula: How to Calculate Cost Per Mille (With Examples)

Table of Contents

  1. What Is CPM?
  2. The CPM Formula
  3. Step-by-Step Examples
  4. Reverse CPM Formulas
  5. CPM Calculator Walkthrough
  6. Common Mistakes
  7. When CPM Matters Most
  8. Relationship to Other Metrics
  9. Conclusion

The CPM formula is one of the most fundamental calculations in digital advertising. Whether you are buying ads on Google, Facebook, YouTube, or TikTok, understanding how to calculate CPM (cost per mille) is essential for budgeting, comparing campaigns, and optimizing your media spend. In this guide, we break down the formula, walk through real examples, and show you how to use CPM effectively.

What Is CPM?

CPM stands for Cost Per Mille, where "mille" is Latin for "thousand." It represents the cost an advertiser pays for 1,000 impressions (views) of their advertisement. CPM is the standard pricing model for brand awareness campaigns and is widely used across display advertising, video advertising, social media ads, and programmatic buying.

For example, if a website charges a $10 CPM, it means the advertiser pays $10 for every 1,000 times their ad is displayed on that site.

The CPM Formula

The CPM formula is simple and elegant:

CPM = (Total Cost / Total Impressions) × 1,000

Where:

Step-by-Step Examples

Example 1: Basic CPM Calculation

You run a display ad campaign on a news website. You spend $2,500 and receive 500,000 impressions.

CPM = ($2,500 / 500,000) × 1,000 = $5.00

Your CPM is $5.00, meaning you pay $5 for every 1,000 impressions.

Example 2: Facebook Ads Campaign

You spend $1,200 on a Facebook awareness campaign. Facebook reports 300,000 impressions.

CPM = ($1,200 / 300,000) × 1,000 = $4.00

Your Facebook CPM is $4.00.

Example 3: YouTube Video Advertising

You spend $5,000 on YouTube TrueView ads. Your video ads receive 250,000 views/impressions.

CPM = ($5,000 / 250,000) × 1,000 = $20.00

Your YouTube CPM is $20.00. Video advertising typically has higher CPMs than display because of higher engagement and production costs.

Example 4: Comparing Two Campaigns

Campaign A: Spent $3,000, got 750,000 impressions. CPM = ($3,000 / 750,000) x 1,000 = $4.00

Campaign B: Spent $2,000, got 400,000 impressions. CPM = ($2,000 / 400,000) x 1,000 = $5.00

Insight: Campaign A is more cost-efficient with a lower CPM ($4 vs $5). However, if Campaign B generated more clicks or conversions, the lower CPM might not tell the full story. Always consider CPM alongside other metrics like CPC and CPA.

Reverse CPM Formulas

Sometimes you need to work backward from CPM to find impressions or cost:

Calculate Impressions from CPM and Budget

Impressions = (Total Cost / CPM) × 1,000

Example: You have a $10,000 budget and the platform's CPM is $8. How many impressions will you get?

Impressions = ($10,000 / $8) x 1,000 = 1,250,000 impressions

Calculate Total Cost from CPM and Impressions

Total Cost = (CPM × Impressions) / 1,000

Example: You want 2,000,000 impressions at a $6 CPM. What is your budget?

Total Cost = ($6 x 2,000,000) / 1,000 = $12,000

CPM Calculator Walkthrough

Using our CPM Calculator is straightforward:

  1. Enter your total campaign cost (e.g., $5,000)
  2. Enter your total impressions (e.g., 500,000)
  3. Click "Calculate"
  4. The calculator instantly shows your CPM ($10.00)
  5. You also see a breakdown showing cost per impression ($0.01) and total reach

The calculator is useful for quick comparisons. Run different scenarios to see how changes in budget or expected impressions affect your CPM.

Common Mistakes When Calculating CPM

  1. Confusing impressions with clicks: Impressions are the number of times an ad is displayed, not clicked. A single user might see your ad multiple times, and each view counts as a separate impression.
  2. Not accounting for viewability: Not all served impressions are actually viewable. Industry data suggests only about 60-70% of display ads are viewable. A $5 CPM with 65% viewability has an effective viewable CPM of $7.69.
  3. Ignoring ad fraud: Invalid traffic (bots, click farms) can inflate impression numbers, making your CPM appear lower than it truly is for legitimate viewers.
  4. Comparing across different time periods: CPMs fluctuate seasonally. Comparing a Q4 CPM (holiday season) with a Q1 CPM is like comparing apples to oranges.
  5. Forgetting to include all costs: Your total cost should include creative production, platform fees, and agency commissions, not just the media buy.

When CPM Matters Most

CPM is the most important metric in these scenarios:

When NOT to focus on CPM: If your campaign goal is direct response (clicks, leads, sales), CPM alone is insufficient. A campaign with a $20 CPM that generates $50,000 in sales is far better than a $3 CPM campaign that generates nothing. In performance campaigns, prioritize CPC, CPA, and ROAS.

Relationship to Other Metrics

CPM connects to several other important advertising metrics:

Understanding these relationships lets you move fluidly between metrics depending on what you are optimizing for.

Conclusion

The CPM formula is simple: divide total cost by total impressions and multiply by 1,000. But mastering CPM goes beyond the math. It means knowing when to focus on CPM versus other metrics, understanding the factors that drive CPM up or down, and using CPM data to make smarter advertising decisions. Use our free CPM Calculator to quickly compute CPM for any campaign and compare your results against industry benchmarks.