How to Calculate CPM — Step-by-Step Formula Guide with Real Examples

1
Formula to master
3
Calculation modes
5
Real examples inside

Calculating CPM sounds technical but it is one of the simplest formulas in digital advertising. Once you understand it, you can instantly evaluate any ad campaign, compare platforms, and plan budgets with confidence.

In this guide you will learn the exact CPM formula, how to calculate it step by step, and how to reverse the formula to find your total cost or total impressions from any two known values.

The CPM Formula

There is only one formula. Everything else is just a rearrangement of it:

The Core CPM Formula
CPM = ( Total Ad Spend ÷ Total Impressions ) × 1,000

That is it. CPM tells you the cost per 1,000 impressions. If you know your spend and your impressions, you can always calculate your CPM in seconds. And if you know any two of the three values — CPM, spend, or impressions — you can always find the third.

How to Calculate CPM — Step by Step

01

Find your total ad spend

This is the total amount you spent on a campaign, ad set, or ad. Find it in your ad platform dashboard — Google Ads, Meta Ads Manager, TikTok Ads Manager, or wherever you are running ads. Use the exact spend figure for the time period you are measuring.

02

Find your total impressions

Impressions are the number of times your ad was shown — regardless of clicks. Find this in the same dashboard. Make sure you are using impressions for the same time period and the same campaign as your spend figure.

03

Divide spend by impressions

Take your total spend and divide it by your total impressions. For example: $500 ÷ 200,000 = 0.0025. This gives you the cost per single impression.

04

Multiply by 1,000

Since CPM means "per mille" (per thousand), multiply your result by 1,000. So 0.0025 × 1,000 = $2.50. That is your CPM — you paid $2.50 for every 1,000 impressions.

📊 Example 1 — Calculate CPM
Total ad spend$500
Total impressions200,000
Step 1: Divide$500 ÷ 200,000 = 0.0025
Step 2: Multiply by 1,000CPM = $2.50

You paid $2.50 for every 1,000 people who saw your ad.

How to Calculate Total Ad Cost from CPM

If you know the CPM rate and how many impressions you want, you can calculate exactly how much it will cost. Rearrange the formula like this:

Total Cost Formula
Total Cost = ( CPM × Total Impressions ) ÷ 1,000
📊 Example 2 — Calculate Total Cost
CPM rate$8.00
Desired impressions500,000
Step 1: Multiply$8 × 500,000 = 4,000,000
Step 2: Divide by 1,000Total Cost = $4,000

To get 500,000 impressions at an $8 CPM you need a $4,000 budget.

How to Calculate Total Impressions from CPM

If you have a fixed budget and know the CPM rate, you can calculate exactly how many impressions your money will buy:

Total Impressions Formula
Impressions = ( Total Budget ÷ CPM ) × 1,000
📊 Example 3 — Calculate Total Impressions
Total budget$1,000
CPM rate$5.00
Step 1: Divide$1,000 ÷ $5 = 200
Step 2: Multiply by 1,000Impressions = 200,000

A $1,000 budget at a $5 CPM will deliver 200,000 impressions.

Skip the manual calculation: Use our free CPM Calculator to instantly calculate CPM, total cost, or total impressions — just enter any two values and get the third automatically. No formulas needed.

More Real-World CPM Calculation Examples

📊 Example 4 — Facebook Ads Campaign
Total spend (7 days)$350
Total impressions42,000
CPM = ($350 ÷ 42,000) × 1,000$8.33

This is slightly below the Facebook average of $8–$14 — a healthy result for this platform.

📊 Example 5 — Google Display Campaign
Total spend (30 days)$120
Total impressions180,000
CPM = ($120 ÷ 180,000) × 1,000$0.67

This is a very good Google Display Network CPM — well within the $0.50–$3.00 benchmark range.

Common CPM Calculation Mistakes to Avoid

Mistake 1 — Forgetting to multiply by 1,000

The most common error. If you just divide spend by impressions without multiplying by 1,000, you get the cost per single impression — not CPM. Always remember the ×1,000 at the end.

Mistake 2 — Mixing up impressions and reach

Impressions count every time an ad is shown — even to the same person twice. Reach counts unique users. CPM uses impressions, not reach. Using reach will give you a higher (incorrect) CPM.

Mistake 3 — Using mismatched time periods

Your spend and impressions must come from the exact same date range. Comparing one week of spend to one month of impressions will give you a completely wrong CPM number.

Mistake 4 — Blending multiple campaigns

If you add up spend from three different campaigns and divide by total impressions, you get a blended average — not a per-campaign CPM. Always calculate CPM separately for each campaign to get actionable data.

"A formula only works if the numbers going into it are clean. Garbage in, garbage out — always check your data source before calculating." — Standard advice in digital analytics

Where to Find Your Impression and Spend Data

  • Google Ads: Campaigns tab → select date range → Impressions and Cost columns
  • Meta Ads Manager: Campaigns / Ad Sets / Ads → Customize Columns → add Impressions and Amount Spent
  • TikTok Ads Manager: Campaign → Dashboard → Impressions and Cost
  • YouTube (Google Ads): Video campaigns → Impressions and Cost columns
  • LinkedIn Campaign Manager: Campaign Groups → Performance tab → Impressions and Spend
  • Programmatic / DSP: Reporting section → filter by campaign → Impressions and Media Cost
💡
Pro tip: Most ad platforms actually show you CPM directly in their dashboard — look for "CPM" in your performance columns. If it is not showing, add it via "Customize Columns." Calculating it manually is useful for double-checking platform numbers or combining data from multiple sources.

🎯 Key Takeaways

  • CPM Formula: (Total Spend ÷ Total Impressions) × 1,000
  • Total Cost Formula: (CPM × Impressions) ÷ 1,000
  • Total Impressions Formula: (Budget ÷ CPM) × 1,000
  • Always multiply by 1,000 — a common mistake is forgetting this step
  • Use impressions (not reach) in your CPM calculation
  • Spend and impressions must come from the same time period and campaign
  • Use our free calculator to skip the manual math entirely

Calculate Your CPM Instantly

Enter any two values — spend, impressions, or CPM — and get the third in seconds. Free, no sign-up.

Use the Free CPM Calculator →

Sources & references:
Google Ads Help — Understanding impression metrics (2026).  |  Meta Business Help — Glossary of ad terms (2026).  |  Interactive Advertising Bureau (IAB) — Digital Advertising Glossary 2025.

Filed under: CPM Formula  ·  Digital Advertising  ·  Ad Calculations