Free tool

CPM Calculator

Cost per 1,000 impressions, and what it means for your sales

Find your CPM from ad spend and impressions, or work out the spend or impressions from the other two. Then add your click-through rate, conversion rate and order value to see cost per order, ROAS and the highest CPM you can afford. Free, no signup.

Calculate

What do you want to find?

The campaign
From impressions to sales
%
%
%

Conversion rate is orders divided by visits from the ad. Gross margin is what's left of an order after product, shipping and payment costs.

CPM

10.00

500.00 for 50,000 impressions.

Cost per order

50.00

About 10 orders from 500 clicks.

ROAS

1.20x

600.00 in sales. Break-even is 2.00x at a 50% margin.

Highest CPM to break even

6.00

Your 10.00 CPM is too high: each order costs more than it earns.

Cost per click

1.00 per click at a 1.0% click-through rate. A higher click-through rate lowers the cost of every click and order, even when the CPM stays the same.

Works in any currency. The click-through rate, conversion rate and order value start as example numbers: replace them with your own from your ads manager and your store's analytics. Nothing you enter is saved; the numbers are added to the page address so you can share or bookmark them.

Embed

Add the CPM Calculator to your site.

Free for blogs, newsletters, client sites and courses. Paste the code into an HTML or custom code block. Please keep the credit line under the tool.

<iframe id="am-cpm-calculator" src="https://www.ahmadmujtaba.com/tools/cpm-calculator?embed=1" title="CPM Calculator" width="100%" height="950" style="border:0;max-width:100%;" loading="lazy"></iframe>
<p style="font-size:13px;margin:6px 0 0;">Free <a href="https://www.ahmadmujtaba.com/tools/cpm-calculator">CPM Calculator</a> by <a href="https://www.ahmadmujtaba.com/">Ahmad Mujtaba</a></p>
<script>addEventListener("message",function(e){if(e.origin==="https://www.ahmadmujtaba.com"&&e.data&&e.data.amEmbed==="cpm-calculator"){var f=document.getElementById("am-cpm-calculator");if(f)f.style.height=e.data.height+"px";}});</script>

The script line resizes the frame to fit the tool. If your site strips scripts, the tool still works at the fixed height and scrolls inside the frame.

How it works

How to calculate CPM.

CPM is the cost per 1,000 impressions (the M is Latin for thousand). Divide your ad spend by your impressions and multiply by 1,000. Spending $500 for 50,000 impressions is $500 ÷ 50,000 × 1,000 = a $10 CPM.

To find the spend, multiply the CPM by the impressions and divide by 1,000. To find how many impressions a budget buys, divide the budget by the CPM and multiply by 1,000: $1,000 at an $8 CPM buys 125,000 impressions.

A low CPM isn't a win on its own. What an online store pays for is orders, and cost per order depends on three things together: the CPM, how many people click (click-through rate) and how many of them buy (conversion rate). A $20 CPM with a strong ad and a fast store can cost less per order than a $5 CPM that nobody clicks.

For a Shopify store, the number to watch is the highest CPM you can pay and still break even. It comes from your order value and gross margin: once the cost per order is bigger than the margin on that order, every sale loses money. The calculator works it out from your own numbers.

FAQ

Common questions.

What does CPM mean?

CPM stands for cost per mille, the price an advertiser pays for 1,000 impressions of an ad. Meta, Google, TikTok and most other ad platforms report it, and many charge by it.

How do I calculate CPM?

CPM = ad spend ÷ impressions × 1,000. For $300 spent on 40,000 impressions: $300 ÷ 40,000 × 1,000 = $7.50 CPM.

What is the difference between CPM and CPC?

CPM is the cost of 1,000 impressions, whether anyone clicks or not. CPC is the cost of one click. They're linked by the click-through rate: CPC = CPM ÷ (1,000 × click-through rate). At a $10 CPM and a 1% click-through rate, each click costs $1.

What is a good CPM for ecommerce ads?

There isn't one number. CPM changes with the platform, country, audience and time of year, and it often rises in the run-up to Black Friday and Cyber Monday when more advertisers compete. Judge your ads by cost per order and ROAS instead, and compare your CPM with the highest CPM you can pay to break even.

Why did my CPM go up?

Usually because more advertisers are bidding for the same audience, the audience is small, or the ad is getting weak engagement, which many platforms charge more for. Seasonal peaks, narrow targeting and tired creative are the common causes.

Work out the exact ROAS your store needs with the break-even ROAS calculator, tag every ad link so you can see which ads sell with the UTM link builder, and see how much a customer is worth over time with the customer lifetime value calculator. On Shopify, the Shopify profit margin calculator shows what each order earns after ads and fees, and the ROI calculator shows a campaign's return after product costs.

Need help making your store more profitable?

I'm Ahmad Mujtaba, a Shopify Select Partner. My team builds and maintains Shopify stores, from speed and SEO to checkout and tracking.