DEV Community

Cover image for What is CPM? The Complete Guide for Developers & Content Creators
mr m
mr m

Posted on

What is CPM? The Complete Guide for Developers & Content Creators

If you're building a website, app, or YouTube channel —
you'll eventually deal with CPM. Here's everything you need to know.

What is CPM?

CPM stands for Cost Per Mille — the cost advertisers pay
per 1,000 ad impressions. It's the backbone metric of digital advertising.

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

Quick Example

You spend $500 on a campaign → 200,000 impressions.

CPM = ($500 / 200,000) × 1,000 = $2.50 CPM

YouTube CPM by Niche

Niche Average CPM
Finance & Investing $12 – $40+
B2B / SaaS / Tech $10 – $30
Gaming $1 – $5
Entertainment $1 – $4

CPM vs CPC — Which Should You Use?

  • CPM → brand awareness, video ads, reach
  • CPC → clicks, leads, direct sales

Calculate CPM Instantly

Instead of manual math, use this free tool:
👉 CPM Calculator — cpmrevenue.website

Supports 3 modes: calculate CPM, find cost, or estimate impressions.


Hope this helps! Drop your questions below 👇

Top comments (0)