CPM is the cost of showing an ad one thousand times. It reflects how expensive an audience or placement is, separate from how well the ad performs.
CPM stands for cost per mille, mille being Latin for thousand. It is what you pay for one thousand ad impressions. The formula is CPM = (ad spend / impressions) x 1,000. Most social ad platforms run auctions where CPM changes with demand, audience, placement and season, and many campaigns are billed on impressions even when they optimize for installs or purchases.
CPM matters because it separates the price of attention from the quality of your ad. Your CPI is roughly your CPM divided by how many installs you get per thousand impressions. If CPI rises, CPM tells you whether the market got more expensive or your ads got less effective.
A worked example: Liftlog spends $50 on an ad set that gets 10,000 impressions. Its CPM is ($50 / 10,000) x 1,000 = $5. If those impressions led to 20 installs, CPI is $2.50. Next week the CPM jumps to $8 during a busy shopping period while the ad's click and install rates stay the same, so CPI rises because of the auction, not the creative.
Pitfalls include chasing low CPMs by targeting cheap placements full of accidental clicks, assuming a high CPM is always bad when that audience may convert far better, and changing creative in response to a market-wide price rise. Read CPM together with CTR and install rate to know which lever to pull.