Free calculator

CPC, CPM and CPA calculator

CPM is ad spend per 1,000 impressions, CPC is spend per click and CPA is spend per conversion: $2,500 that buys 250,000 impressions, 2,000 clicks and 50 signups is a $10 CPM, a $1.25 CPC and a $50 CPA. Enter any two or more numbers from your ad platform to get every metric they define, plus CTR and conversion rate.

Updated

From your ad platform — fill in any two or more
$

Link clicks, not all interactions.

Signups, purchases — whatever you pay to get.

CPA (cost per acquisition)

$50.00

Calculated from spend and conversions, for the same campaigns and dates.

CPM (cost per 1,000 impressions)
$10.00
CPC (cost per click)
$1.25
CTR (click-through rate)
0.8%
CPA (cost per acquisition)
$50.00
Conversion rate (click → conversion)
2.5%

0.02% of impressions became a conversion — one per 5,000 ad views.

Runs entirely in your browser — nothing you type is sent anywhere. The URL updates as you type, so you can bookmark or share the exact numbers.

What are CPM, CPC and CPA?

They’re the three ways an ad’s cost is expressed, one per stage of the path from ad to customer. CPM (cost per mille) is what 1,000 impressions cost; CPC (cost per click) is what one click costs; CPA (cost per acquisition, or cost per action) is what one conversion costs — a signup, a trial, a purchase, whatever you define as the goal.

Two rates connect them. Click-through rate turns impressions into clicks, and conversion rate turns clicks into conversions. That’s why a campaign can have a cheap CPM and an expensive CPA: if almost nobody clicks, or the people who click don’t convert, every impression you bought was cheap and worthless.

Ad metric formulas

CPM = Spend ÷ Impressions × 1,000CPC = Spend ÷ ClicksCTR = Clicks ÷ ImpressionsCPA = Spend ÷ ConversionsConversion rate = Conversions ÷ ClicksCPC = CPM ÷ (1,000 × CTR)CPA = CPC ÷ Conversion rate
All four inputs must cover the same campaigns, ads and dates. Use link clicks, not every interaction a platform counts as a click.

Worked example

  1. A SaaS spends $2,500 on a month of social ads. The platform reports 250,000 impressions and 2,000 link clicks; the site records 50 signups from the campaign’s UTM-tagged traffic.
  2. CPM = $2,500 ÷ 250,000 × 1,000 = $10. CPC = $2,500 ÷ 2,000 = $1.25. CTR = 2,000 ÷ 250,000 = 0.8%.
  3. Conversion rate = 50 ÷ 2,000 = 2.5%, so CPA = $2,500 ÷ 50 = $50 per signup — the same as $1.25 ÷ 2.5%.
  4. If 1 in 5 signups pays and a customer is worth $400 in gross profit, each customer costs $250 to acquire and returns $400. The campaign is profitable — despite nothing about its $10 CPM saying so.

Run it the other way to plan a test: at a $1.25 CPC and 2.5% conversion, $1,000 buys about 800 clicks and 20 signups. If you need 100 signups to judge the campaign, you need a $5,000 budget, or a better conversion rate.

What is a good CPC, CPM or CPA?

Published averages vary enormously by platform, country, audience, ad format, season and industry, and they move every year — so a single benchmark figure is more likely to mislead than help. What makes a cost “good” is what the conversion is worth to you:

  • Set a maximum CPA from your unit economics: what a customer is worth (LTV) times the share of conversions that become customers, divided by the LTV:CAC ratio you’re aiming for.
  • Work backwards to a maximum CPC: max CPA × conversion rate. At a $100 maximum CPA and a 2.5% conversion rate, you can afford up to $2.50 a click.
  • Compare against your own history and your other channels, using the same definition of a conversion — the ROAS calculator does the same comparison in revenue terms.

Common ad metric mistakes

  • Using all clicks instead of link clicks. Many platforms count likes, profile taps and “see more” as clicks. CTR and CPC look better; visits to your site don’t change.
  • Trusting platform-reported conversions alone. Platforms may count view-through conversions (someone saw the ad, didn’t click, and converted later) and use their own attribution windows. Compare with conversions your own site recorded.
  • Comparing CPA across campaigns with different conversion definitions. A $5 newsletter-signup CPA and a $90 paid-trial CPA aren’t the same thing.
  • Optimizing CPM or CPC in isolation. Cheaper impressions often come from lower-intent placements that click and convert less, raising CPA.
  • Judging a campaign on tiny numbers. With 8 conversions, one more or less changes CPA by more than 10%. Wait for enough volume before cutting or scaling.
  • Forgetting the lag. Conversions keep arriving for days or weeks after the click, so last week’s CPA will still fall as late conversions come in.

How to measure CPA with VisitTrack

Spend, impressions and clicks come from the ad platform — VisitTrack doesn’t see ads, only the visits they send. What it gives you is the other half: the visitors who actually arrived from each campaign, the conversions they made and the revenue they brought, counted by your own analytics rather than the platform selling the ads.

  1. Tag every ad link with UTM parameters — the UTM builder makes consistent ones — so visits are grouped by source, medium and campaign.
  2. Record conversions where your code knows they happened, with window.visitrack("signup") (custom events), and make the event a goal to see conversions on the Goals tab.
  3. Connect your payment provider (revenue attribution) to see revenue by campaign on the Revenue tab.
  4. Divide the platform’s spend by the conversions VisitTrack recorded for that campaign — that’s CPA measured on your own site. The gap between the platform’s click count and your visit count is worth watching too.

Frequently asked questions

How do you calculate CPM?

Divide ad spend by impressions and multiply by 1,000. $2,500 for 250,000 impressions is $2,500 ÷ 250,000 × 1,000 = a $10 CPM. CPM stands for cost per mille — mille is Latin for thousand.

How do you calculate CPC?

Divide ad spend by the number of clicks. $2,500 for 2,000 clicks is a $1.25 CPC. If you know CPM and CTR instead, CPC = CPM ÷ (1,000 × CTR): a $10 CPM at a 0.8% CTR is $10 ÷ 8 = $1.25.

How do you calculate CPA?

Divide ad spend by the number of conversions. $2,500 that produced 50 signups is a $50 CPA. Equivalently, CPA = CPC ÷ conversion rate: a $1.25 CPC with 2.5% of clicks converting is $50.

What is the difference between CPC and CPA?

CPC is the cost of getting someone to click your ad; CPA is the cost of getting someone to do what you want — sign up, start a trial, buy. CPA is CPC divided by the share of clicks that convert, so it includes how well your landing page and product convert.

What is a good click-through rate?

It depends heavily on the platform, placement and audience — search ads matching a specific query typically get far higher CTRs than display or social ads shown to people who weren’t looking. Compare CTR with your own past campaigns on the same platform, and judge campaigns on CPA rather than CTR.

Why does my analytics show fewer visits than the ad platform shows clicks?

A click isn’t a visit. Some people click and leave before the page loads, some clicks are accidental or from bots, ad blockers stop some analytics scripts, and platforms may count interactions other than link clicks. A gap of some size is normal; a sudden change in it is worth investigating.

Related tools and guides

Stop calculating by hand — measure it automatically

VisitTrack tracks visitors, goals, funnels and revenue from Stripe, Paddle, Polar, Lemon Squeezy and Razorpay, so these numbers are always on your dashboard. Cookie-free, one script tag, 14 days free.

14-day free trial · No card required · Cookie-free · Cancel anytime

Or explore the live demo first →