📐 Formula Guide

CPM Formula:
Calculator, Excel
& Formula for CPM

Master the CPM formula in all 3 variants. Use our free CPM formula calculator, get the Excel formula, and see real examples — all in one place.

$ CPM Formula Calculator

$
CPM Result

3 Variants of the CPM Formula

The CPM formula has three forms depending on which variable you need to solve. Know any two values — and the CPM formula gives you the third.

📐 CPM Formula

CPM = (Cost ÷ Impressions) × 1,000

Use when you know your total spend and total impressions. The standard CPM formula — tells you the rate per 1,000 impressions.

💰 Cost Formula

Cost = (CPM × Impressions) ÷ 1,000

Use when you know your CPM rate and target impressions. Calculates the total budget needed for your campaign.

👁️ Impressions Formula

Impressions = (Cost ÷ CPM) × 1,000

Use when you have a fixed budget and a known CPM rate. Estimates your total reach from a given spend.

Formula for CPM — Complete Explanation

Understanding why the CPM formula works — not just how — gives you a real edge in planning campaigns and evaluating ad revenue.

The CPM formula — CPM = (Total Cost / Total Impressions) × 1,000 — is the foundation of impression-based advertising. "CPM" stands for Cost Per Mille, where "mille" is Latin for thousand. The ×1,000 in the formula normalizes cost to a per-thousand basis, making it easy to compare campaigns of any size.

Why the CPM Formula Uses 1,000

Individual ad impressions cost fractions of a cent — too small to be practical. The CPM formula multiplies by 1,000 to express cost in a meaningful unit. A CPM of $5.00 means you pay $5 per 1,000 impressions, or $0.005 per single impression. This makes the CPM formula universally useful across campaigns of any scale.

CPM Formula — Solving for Cost

When planning a campaign, you often know your CPM rate and target reach. The rearranged CPM formula gives you the required budget: Cost = (CPM × Impressions) ÷ 1,000. Example: targeting 5,000,000 impressions at a $4 CPM requires a $20,000 budget.

CPM Formula — Solving for Impressions

With a fixed budget and a known CPM, the impressions variant of the CPM formula predicts your reach: Impressions = (Cost / CPM) × 1,000. A $500 budget at $2.50 CPM delivers 200,000 impressions.

CPM Formula vs eCPM Formula

The eCPM (Effective CPM) formula is identical — eCPM = (Total Revenue / Total Impressions) × 1,000 — but applies from the publisher's perspective across any ad pricing model (CPC, CPA, CPV). The CPM formula and eCPM formula use the same math; the difference is whether you're the buyer or the seller.

Limitations of the CPM Formula

The CPM formula measures cost efficiency — not campaign effectiveness. A low CPM doesn't guarantee results. Always combine the CPM formula output with CTR (click-through rate), conversion rate, and ROAS (return on ad spend) for a complete picture of campaign performance.

📐 All CPM Formula Variants
CPM = (Cost ÷ Impressions) × 1,000
Cost = (CPM × Impressions) ÷ 1,000
Impressions = (Cost ÷ CPM) × 1,000

Examples:

$400 / 200,000 imp → CPM = $2.00

$6 CPM × 500,000 imp → Cost = $3,000

$800 ÷ $4 CPM → 200,000 impressions

$10,000 / 500,000 imp → CPM = $20.00

CPM Formula Excel

Apply the CPM formula directly in Excel or Google Sheets. Here are the exact formulas — ready to copy into your spreadsheet.

📊 CPM Formula in Excel

Assuming: A1=Label, B1=Value. Cost in B2, Impressions in B3.

=(B2/B3)*1000
→ Returns CPM. Place Cost in B2, Impressions in B3.

📊 Cost Formula in Excel

=(B2*B3)/1000
→ Returns Total Cost. Place CPM in B2, Impressions in B3.

📊 Impressions Formula in Excel

=(B2/B3)*1000
→ Returns Impressions. Place Budget in B2, CPM in B3.

📋 Full CPM Tracker Template

Set up your spreadsheet with these columns and formulas:

A1: Campaign Name
B1: Total Cost → B2=500
C1: Impressions → C2=200000
D1: CPM → D2=(B2/C2)*1000
→ D2 auto-calculates CPM using the CPM formula. Drag down for multiple campaigns.

Using the CPM Formula in Excel — Tips

Format cells correctly: Format Cost and CPM columns as Currency ($ symbol). Format Impressions as Number with comma separators. The CPM formula result should be formatted as Currency with 2 decimal places.

Avoid division by zero: Wrap the CPM formula in Excel with an IFERROR function: =IFERROR((B2/C2)*1000, "—"). This prevents #DIV/0! errors when impressions are empty.

Build a campaign comparison table: Put each campaign on a new row. Use the CPM formula in the D column for all rows. Add conditional formatting to highlight campaigns above or below your target CPM threshold.

Google Sheets: The CPM formula works identically in Google Sheets — same syntax, same logic. No adjustments needed when copying between Excel and Sheets.

CPM Formula Excel — Common Mistakes

Forgetting to multiply by 1,000: The most common CPM formula error. =(B2/C2) gives cost per impression, not CPM. Always include *1000 at the end.

Wrong units for impressions: Enter impressions as the full number (200000), not in thousands (200). The CPM formula already handles the per-thousand conversion.

Use our CPM formula calculator above to verify your Excel results — both should always match exactly.

How to Use the CPM Formula

Three steps to apply the CPM formula correctly — whether manually, in Excel, or with our CPM formula calculator.

01

Identify Your Known Values

The CPM formula needs exactly two inputs to solve for the third. Decide: do you know Cost + Impressions (solve for CPM), CPM + Impressions (solve for Cost), or Cost + CPM (solve for Impressions)?

02

Select the Right Formula Variant

Use CPM = (Cost ÷ Impressions) × 1,000 for rate calculation. Use Cost = (CPM × Impressions) ÷ 1,000 for budget planning. Use Impressions = (Cost ÷ CPM) × 1,000 for reach estimation.

03

Calculate & Benchmark

Apply the CPM formula manually, in Excel, or use the CPM formula calculator above for instant results. Compare your CPM against industry benchmarks: $2–5 display, $2–10 YouTube, $15–50 finance niche.

CPM Formula — FAQ

Everything you need to know about the CPM formula, CPM formula calculator, and CPM formula in Excel.

The CPM formula is: CPM = (Total Cost / Total Impressions) × 1,000. It calculates the cost per 1,000 ad impressions. The CPM formula can be rearranged into three variants: solve for CPM, solve for Cost, or solve for Impressions — depending on which two values you already know.
The CPM formula in Excel is: =(B2/C2)*1000 where B2 contains Total Cost and C2 contains Total Impressions. To find Cost: =(B2*C2)/1000 where B2=CPM and C2=Impressions. To find Impressions: =(B2/C2)*1000 where B2=Cost and C2=CPM. The CPM formula works identically in Google Sheets.
Select your mode at the top of the CPM formula calculator: "Calculate CPM", "Find Cost", or "Find Impressions". Enter the two known values and click the calculate button. The CPM formula calculator applies the correct formula variant automatically and shows the result with the full formula breakdown.
A good CPM depends on platform and niche. Display advertising: $1–5 CPM is typical. YouTube average: $2–10 CPM. Finance and insurance content: $15–50+ CPM. Use the CPM formula to calculate your actual rate, then compare it to these benchmarks to evaluate efficiency.
Yes — the CPM formula and eCPM formula use identical math: (Revenue / Impressions) × 1,000. The difference is perspective: CPM is used by advertisers to measure what they pay, while eCPM is used by publishers to measure what they earn across any mix of ad pricing models (CPC, CPA, CPV, etc.).