How to Calculate CPM: Formula, Examples and 2026 Benchmarks by Platform

The CPM formula is cost / impressions x 1,000. See worked examples, reverse formulas, a free calculator, and 2026 CPM benchmarks for Meta, Google, TikTok and Pinterest.
November 5, 2026
Frank de Vos
CPM formula: ad cost divided by impressions times 1,000
Latest
Attribution & Data

How to Calculate CPM: Formula, Examples and 2026 Benchmarks by Platform

CPM formula: ad cost divided by impressions times 1,000

CPM is the first number most people check in Ads Manager, and the easiest one to misread. Knowing how to calculate CPM takes ten seconds. Knowing what a given CPM says about your campaign takes a bit more context, so this guide covers both: the formula, the reverse formulas for budgeting, worked examples, current benchmarks per platform, and the trap that makes a cheap CPM look better than it is.

Short answer: The CPM formula is total ad cost divided by total impressions, multiplied by 1,000. If you spend $500 and get 50,000 impressions, your CPM is $500 / 50,000 x 1,000 = $10. That means you paid $10 for every thousand times your ad was shown. Rearranged, the same formula gives you cost (CPM x impressions / 1,000) or impressions (cost / CPM x 1,000).

What Is CPM?

CPM stands for cost per mille, where "mille" is Latin for thousand. It is the price you pay for 1,000 ad impressions, and every major ad platform reports it: Meta, Google, TikTok and Pinterest all show CPM in their reporting, even when you are not bidding on impressions.

That last point trips people up. CPM can be two things:

  • A metric. Ads Manager shows a CPM for every campaign, whatever the objective. It is simply what your spend worked out to per thousand impressions.

  • A billing or bidding model. Some campaigns charge you per thousand impressions directly. Google, for example, describes CPM bidding as a way to pay per thousand impressions on the Display Network, and has moved those bids to viewable CPM (vCPM), so you only pay for impressions that could actually be seen.

For most Shopify advertisers running conversion campaigns, CPM is a metric, not the thing you are buying. You are buying purchases. CPM tells you what the auction charged you to get in front of people along the way.

The CPM Formula

The CPM formula is:

CPM = (Total cost / Total impressions) x 1,000

You need two numbers, both of which sit in every ad platform's reporting:

  • Total cost: what you spent in the period you are measuring.

  • Total impressions: how many times your ads were shown in that period. One person seeing your ad three times counts as three impressions. If you want the cost per unique person, use reach instead, which gives you cost per 1,000 people reached.

Multiply by 1,000 because CPM is priced per thousand impressions. Without that step you get the cost per single impression, a tiny number that is hard to compare.

How to Calculate CPM: Worked Examples

Example 1: A Simple Meta Campaign

You spent $1,200 on a Meta prospecting campaign last week, and it delivered 100,000 impressions.

CPM = $1,200 / 100,000 x 1,000 = $12

That lines up with the roughly $15 median CPM ecommerce brands see on Meta in 2026, which we cover in our Meta and Facebook ads cost guide.

Example 2: Comparing Two Platforms

Same month, two channels:

PlatformSpendImpressionsCPM
Meta$3,000260,000$11.54
Pinterest$1,000180,000$5.56

Pinterest is about half the price per thousand impressions. Whether it is the better buy depends on what those impressions turn into, which we come back to further down.

Example 3: Blended CPM Across Campaigns

To get one CPM for several campaigns, add up all spend and all impressions first, then apply the formula. Do not average the individual CPMs, because a small campaign with a strange CPM would count as much as your biggest one.

Campaign A: $2,000 and 200,000 impressions. Campaign B: $500 and 25,000 impressions.

Blended CPM = ($2,000 + $500) / (200,000 + 25,000) x 1,000 = $11.11

The simple average of the two CPMs ($10 and $20) would give you $15, which overstates what you actually paid.

Reverse CPM Formulas: Cost and Impressions

The CPM formula rearranges cleanly, which makes it useful for planning before you spend anything.

How to Calculate Cost From CPM

Cost = (CPM x Impressions) / 1,000

You want 500,000 impressions for a product launch on TikTok, and you expect a CPM around $10.

Cost = $10 x 500,000 / 1,000 = $5,000

How to Calculate Impressions From Budget

Impressions = (Cost / CPM) x 1,000

You have $1,500 for a month of Pinterest awareness and expect a CPM around $6.

Impressions = $1,500 / $6 x 1,000 = 250,000 impressions

Divide by your expected frequency (how often the average person sees the ad) to estimate reach. At a frequency of 2.5, that is roughly 100,000 people.

CPM Calculator

Want to skip the math? Enter any two of cost, impressions and CPM, and the calculator below works out the third.

CPM calculator

Pick what you want to solve for, then fill in the other two.

Solve for
$
$
-

A low CPM only pays off if the conversions behind it are tracked. Browser pixels miss around 30-60% of conversions. See how TrackBee fixes that.

CPM vs CPC vs CPA

CPM is one of three cost metrics that build on each other. Getting the relationship right is what turns CPM from a vanity number into something useful.

MetricFormulaWhat it tells you
CPM (cost per mille)Cost / impressions x 1,000What it costs to be seen
CPC (cost per click)Cost / clicksWhat it costs to get a visit
CPA (cost per acquisition)Cost / conversionsWhat it costs to get a sale

They connect through two rates: click-through rate (CTR) and conversion rate (CVR).

  • CPC = CPM / (1,000 x CTR)

  • CPA = CPC / CVR

Say your Meta CPM is $12, your CTR is 1% and your store converts 2.5% of ad visitors.

  • CPC = $12 / (1,000 x 0.01) = $1.20

  • CPA = $1.20 / 0.025 = $48

Now a cheaper placement: CPM $6, but CTR drops to 0.5% and CVR to 1.5%.

  • CPC = $6 / (1,000 x 0.005) = $1.20

  • CPA = $1.20 / 0.015 = $80

Half the CPM, two thirds more per sale. CPM tells you what attention costs. CTR and conversion rate tell you whether it was the right attention. For the metrics that sit above CPA, like ROAS and MER, see our explainer on the marketing efficiency ratio and the glossary entry on ROAS, CAC and MER.

2026 CPM Benchmarks by Platform

These ranges come from our own 2026 cost guides per platform, which explain the underlying data sources and caveats in full. Treat them as directional ranges for ecommerce, not prices you will be charged.

PlatformTypical CPM (2026)NotesFull guide
Meta (Facebook + Instagram)about $15 median for ecommerce, $11.50–$21.80 by industryBenchmark of 40,000+ ecommerce Meta advertisers, Aug 2025–Jul 2026Facebook ads cost
GoogleDisplay around $3.12 (roughly $2–$12 by placement)Search and Shopping are priced per click, so CPM matters lessGoogle ads cost
TikTokAround $10Strongly driven by creative engagementTikTok ads cost
Pinterest$3–$10Often 30–50% below Meta; thinner public dataPinterest ads cost

Sources: TrackBee platform cost guides, 2026 editions. For all six platforms side by side, including Microsoft and ChatGPT Ads, see our ad cost benchmarks for 2026.

A few things move CPM on every platform:

  • Seasonality. Q4 is the expensive quarter. On Meta, Black Friday and Cyber Monday CPMs commonly run 2–3x the annual baseline.

  • Audience competition. Narrow audiences that many advertisers want cost more per thousand.

  • Creative quality. Platforms reward ads people engage with by delivering them more cheaply, which is especially visible on TikTok.

  • Placement and format. A Reels or Stories impression is priced differently from a feed or Display impression.

So "what is a good CPM?" only has an answer against the right benchmark: the same platform, the same objective, the same season.

Why a Low CPM Does Not Mean Cheap Results

Here is where CPM misleads most Shopify stores.

CPM is calculated from two numbers the platform measures perfectly: what it charged you and how many times it showed your ad. CPA, the number that actually matters, depends on a third number the platform measures badly: your conversions. Browser pixels miss around 30-60% of conversions because of ad blockers, Safari's ITP, iOS privacy settings and consent banners.

That creates two problems.

Your reported CPA is too high. Take a campaign with $1,500 in spend and 50 real orders. Your true CPA is $30. If the pixel only catches 30 of those orders, Ads Manager shows a CPA of $50. You might pause a campaign that is actually profitable.

Your CPM goes up over time. Meta, Google, TikTok and Pinterest all use conversion data to decide who to show your ads to. When a third of your buyers are invisible, the algorithm learns from an incomplete picture of who buys, bids on the wrong people, and needs more impressions to find each customer. That shows up as higher CPMs and worse CPAs at the same time, a pattern we break down in how much revenue you are losing to bad tracking.

This is also why comparing CPMs across platforms is risky. A channel with a low CPM and a long path to purchase, like Pinterest, tends to lose more conversions to tracking gaps than a channel where people buy in one session. The cheap channel can look worse than it is, or the expensive one better.

The fix is not a better CPM. It is complete conversion data. Server-side tracking sends purchases from your server straight to each platform, so conversions are no longer lost when the browser pixel is blocked. TrackBee does this for Shopify stores across Meta, Google, TikTok, Pinterest, GA4 & Klaviyo, and enriches every event with first-party data so platforms can match more purchases to the right ad. See how it works for Shopify conversion tracking or browse our ad tracking software overview.

Frequently Asked Questions

What is the formula for CPM? CPM = total cost / total impressions x 1,000. For example, $800 spent on 64,000 impressions gives a CPM of $12.50.

How do you calculate CPM in Excel or Google Sheets? Put cost in column A and impressions in column B, then use =A2/B2*1000 in column C. For a blended CPM across rows, use =SUM(A:A)/SUM(B:B)*1000 rather than averaging the CPM column.

What is a good CPM for ecommerce in 2026? It depends on the platform. Ecommerce brands typically see around $15 on Meta, around $10 on TikTok, $3–$10 on Pinterest and around $3.12 on Google Display. A good CPM is one that leads to a profitable CPA, so judge it alongside conversion data.

What is the difference between CPM and eCPM? CPM is what an advertiser pays per thousand impressions. eCPM (effective CPM) is mostly a publisher metric: the revenue earned per thousand impressions, whatever the ad was billed on. Advertisers sometimes use eCPM to convert CPC or CPA campaigns into an impression-based cost for comparison.

Why is my CPM going up? Common causes are Q4 seasonality, a narrow or saturated audience, creative fatigue and more advertisers competing for the same people. Missing conversion data makes it worse, because the platform optimizes on fewer signals and needs more impressions per sale.

Is CPM or CPC better for Shopify ads? For sales, neither. Optimize your campaigns for purchases and use CPM and CPC as diagnostics: CPM shows what reach costs, CPC shows whether people click. The number to manage is CPA or ROAS, based on conversion data you trust.

Make Your Cost Metrics Count

CPM is easy to calculate and easy to over-read. The number that decides whether your ads work is what each sale costs, and that is only as accurate as the conversions your platforms can see.

Try TrackBee for free

In this article
Boost Your Revenue
Track Missing Conversion Data
Lorem Ipsum

Boost Your Revenue

Track & Enrich
Missing Conversion Data

Try for free
Share this:

CPM is the first number most people check in Ads Manager, and the easiest one to misread. Knowing how to calculate CPM takes ten seconds. Knowing what a given CPM says about your campaign takes a bit more context, so this guide covers both: the formula, the reverse formulas for budgeting, worked examples, current benchmarks per platform, and the trap that makes a cheap CPM look better than it is.

Short answer: The CPM formula is total ad cost divided by total impressions, multiplied by 1,000. If you spend $500 and get 50,000 impressions, your CPM is $500 / 50,000 x 1,000 = $10. That means you paid $10 for every thousand times your ad was shown. Rearranged, the same formula gives you cost (CPM x impressions / 1,000) or impressions (cost / CPM x 1,000).

What Is CPM?

CPM stands for cost per mille, where "mille" is Latin for thousand. It is the price you pay for 1,000 ad impressions, and every major ad platform reports it: Meta, Google, TikTok and Pinterest all show CPM in their reporting, even when you are not bidding on impressions.

That last point trips people up. CPM can be two things:

  • A metric. Ads Manager shows a CPM for every campaign, whatever the objective. It is simply what your spend worked out to per thousand impressions.

  • A billing or bidding model. Some campaigns charge you per thousand impressions directly. Google, for example, describes CPM bidding as a way to pay per thousand impressions on the Display Network, and has moved those bids to viewable CPM (vCPM), so you only pay for impressions that could actually be seen.

For most Shopify advertisers running conversion campaigns, CPM is a metric, not the thing you are buying. You are buying purchases. CPM tells you what the auction charged you to get in front of people along the way.

The CPM Formula

The CPM formula is:

CPM = (Total cost / Total impressions) x 1,000

You need two numbers, both of which sit in every ad platform's reporting:

  • Total cost: what you spent in the period you are measuring.

  • Total impressions: how many times your ads were shown in that period. One person seeing your ad three times counts as three impressions. If you want the cost per unique person, use reach instead, which gives you cost per 1,000 people reached.

Multiply by 1,000 because CPM is priced per thousand impressions. Without that step you get the cost per single impression, a tiny number that is hard to compare.

How to Calculate CPM: Worked Examples

Example 1: A Simple Meta Campaign

You spent $1,200 on a Meta prospecting campaign last week, and it delivered 100,000 impressions.

CPM = $1,200 / 100,000 x 1,000 = $12

That lines up with the roughly $15 median CPM ecommerce brands see on Meta in 2026, which we cover in our Meta and Facebook ads cost guide.

Example 2: Comparing Two Platforms

Same month, two channels:

PlatformSpendImpressionsCPM
Meta$3,000260,000$11.54
Pinterest$1,000180,000$5.56

Pinterest is about half the price per thousand impressions. Whether it is the better buy depends on what those impressions turn into, which we come back to further down.

Example 3: Blended CPM Across Campaigns

To get one CPM for several campaigns, add up all spend and all impressions first, then apply the formula. Do not average the individual CPMs, because a small campaign with a strange CPM would count as much as your biggest one.

Campaign A: $2,000 and 200,000 impressions. Campaign B: $500 and 25,000 impressions.

Blended CPM = ($2,000 + $500) / (200,000 + 25,000) x 1,000 = $11.11

The simple average of the two CPMs ($10 and $20) would give you $15, which overstates what you actually paid.

Reverse CPM Formulas: Cost and Impressions

The CPM formula rearranges cleanly, which makes it useful for planning before you spend anything.

How to Calculate Cost From CPM

Cost = (CPM x Impressions) / 1,000

You want 500,000 impressions for a product launch on TikTok, and you expect a CPM around $10.

Cost = $10 x 500,000 / 1,000 = $5,000

How to Calculate Impressions From Budget

Impressions = (Cost / CPM) x 1,000

You have $1,500 for a month of Pinterest awareness and expect a CPM around $6.

Impressions = $1,500 / $6 x 1,000 = 250,000 impressions

Divide by your expected frequency (how often the average person sees the ad) to estimate reach. At a frequency of 2.5, that is roughly 100,000 people.

CPM Calculator

Want to skip the math? Enter any two of cost, impressions and CPM, and the calculator below works out the third.

CPM calculator

Pick what you want to solve for, then fill in the other two.

Solve for
$
$
-

A low CPM only pays off if the conversions behind it are tracked. Browser pixels miss around 30-60% of conversions. See how TrackBee fixes that.

CPM vs CPC vs CPA

CPM is one of three cost metrics that build on each other. Getting the relationship right is what turns CPM from a vanity number into something useful.

MetricFormulaWhat it tells you
CPM (cost per mille)Cost / impressions x 1,000What it costs to be seen
CPC (cost per click)Cost / clicksWhat it costs to get a visit
CPA (cost per acquisition)Cost / conversionsWhat it costs to get a sale

They connect through two rates: click-through rate (CTR) and conversion rate (CVR).

  • CPC = CPM / (1,000 x CTR)

  • CPA = CPC / CVR

Say your Meta CPM is $12, your CTR is 1% and your store converts 2.5% of ad visitors.

  • CPC = $12 / (1,000 x 0.01) = $1.20

  • CPA = $1.20 / 0.025 = $48

Now a cheaper placement: CPM $6, but CTR drops to 0.5% and CVR to 1.5%.

  • CPC = $6 / (1,000 x 0.005) = $1.20

  • CPA = $1.20 / 0.015 = $80

Half the CPM, two thirds more per sale. CPM tells you what attention costs. CTR and conversion rate tell you whether it was the right attention. For the metrics that sit above CPA, like ROAS and MER, see our explainer on the marketing efficiency ratio and the glossary entry on ROAS, CAC and MER.

2026 CPM Benchmarks by Platform

These ranges come from our own 2026 cost guides per platform, which explain the underlying data sources and caveats in full. Treat them as directional ranges for ecommerce, not prices you will be charged.

PlatformTypical CPM (2026)NotesFull guide
Meta (Facebook + Instagram)about $15 median for ecommerce, $11.50–$21.80 by industryBenchmark of 40,000+ ecommerce Meta advertisers, Aug 2025–Jul 2026Facebook ads cost
GoogleDisplay around $3.12 (roughly $2–$12 by placement)Search and Shopping are priced per click, so CPM matters lessGoogle ads cost
TikTokAround $10Strongly driven by creative engagementTikTok ads cost
Pinterest$3–$10Often 30–50% below Meta; thinner public dataPinterest ads cost

Sources: TrackBee platform cost guides, 2026 editions. For all six platforms side by side, including Microsoft and ChatGPT Ads, see our ad cost benchmarks for 2026.

A few things move CPM on every platform:

  • Seasonality. Q4 is the expensive quarter. On Meta, Black Friday and Cyber Monday CPMs commonly run 2–3x the annual baseline.

  • Audience competition. Narrow audiences that many advertisers want cost more per thousand.

  • Creative quality. Platforms reward ads people engage with by delivering them more cheaply, which is especially visible on TikTok.

  • Placement and format. A Reels or Stories impression is priced differently from a feed or Display impression.

So "what is a good CPM?" only has an answer against the right benchmark: the same platform, the same objective, the same season.

Why a Low CPM Does Not Mean Cheap Results

Here is where CPM misleads most Shopify stores.

CPM is calculated from two numbers the platform measures perfectly: what it charged you and how many times it showed your ad. CPA, the number that actually matters, depends on a third number the platform measures badly: your conversions. Browser pixels miss around 30-60% of conversions because of ad blockers, Safari's ITP, iOS privacy settings and consent banners.

That creates two problems.

Your reported CPA is too high. Take a campaign with $1,500 in spend and 50 real orders. Your true CPA is $30. If the pixel only catches 30 of those orders, Ads Manager shows a CPA of $50. You might pause a campaign that is actually profitable.

Your CPM goes up over time. Meta, Google, TikTok and Pinterest all use conversion data to decide who to show your ads to. When a third of your buyers are invisible, the algorithm learns from an incomplete picture of who buys, bids on the wrong people, and needs more impressions to find each customer. That shows up as higher CPMs and worse CPAs at the same time, a pattern we break down in how much revenue you are losing to bad tracking.

This is also why comparing CPMs across platforms is risky. A channel with a low CPM and a long path to purchase, like Pinterest, tends to lose more conversions to tracking gaps than a channel where people buy in one session. The cheap channel can look worse than it is, or the expensive one better.

The fix is not a better CPM. It is complete conversion data. Server-side tracking sends purchases from your server straight to each platform, so conversions are no longer lost when the browser pixel is blocked. TrackBee does this for Shopify stores across Meta, Google, TikTok, Pinterest, GA4 & Klaviyo, and enriches every event with first-party data so platforms can match more purchases to the right ad. See how it works for Shopify conversion tracking or browse our ad tracking software overview.

Frequently Asked Questions

What is the formula for CPM? CPM = total cost / total impressions x 1,000. For example, $800 spent on 64,000 impressions gives a CPM of $12.50.

How do you calculate CPM in Excel or Google Sheets? Put cost in column A and impressions in column B, then use =A2/B2*1000 in column C. For a blended CPM across rows, use =SUM(A:A)/SUM(B:B)*1000 rather than averaging the CPM column.

What is a good CPM for ecommerce in 2026? It depends on the platform. Ecommerce brands typically see around $15 on Meta, around $10 on TikTok, $3–$10 on Pinterest and around $3.12 on Google Display. A good CPM is one that leads to a profitable CPA, so judge it alongside conversion data.

What is the difference between CPM and eCPM? CPM is what an advertiser pays per thousand impressions. eCPM (effective CPM) is mostly a publisher metric: the revenue earned per thousand impressions, whatever the ad was billed on. Advertisers sometimes use eCPM to convert CPC or CPA campaigns into an impression-based cost for comparison.

Why is my CPM going up? Common causes are Q4 seasonality, a narrow or saturated audience, creative fatigue and more advertisers competing for the same people. Missing conversion data makes it worse, because the platform optimizes on fewer signals and needs more impressions per sale.

Is CPM or CPC better for Shopify ads? For sales, neither. Optimize your campaigns for purchases and use CPM and CPC as diagnostics: CPM shows what reach costs, CPC shows whether people click. The number to manage is CPA or ROAS, based on conversion data you trust.

Make Your Cost Metrics Count

CPM is easy to calculate and easy to over-read. The number that decides whether your ads work is what each sale costs, and that is only as accurate as the conversions your platforms can see.

Try TrackBee for free

Latest

Discover other Blogs

Explore our collection of informative and engaging blog posts.

Instagram ads cost in 2026: median CPM by placement for Feed, Stories and Reels
Frank de Vos
Frank de Vos
10
min read
Break-even ROAS by gross margin
Frank de Vos
Frank de Vos
9
min read
Meta Pixel Helper shows browser events; Conversions API events are checked in Events Manager
Frank de Vos
Frank de Vos
9
min read