The CPA formula is total cost divided by total conversions: spend $500, get 25 conversions, your CPA is $20. The harder part is which cost and which conversions you're dividing, and over what date range, since those choices change the answer more than the division itself. An AI agent connected to the account can run the formula correctly per campaign and catch the two common mistakes: blending unrelated conversion actions, and comparing a CPA to a cost-per-click number from a different window.
The CPA formula is cost divided by conversions: take what you spent, divide by how many conversions you got, and that's your cost per acquisition (or cost per action, same letters, same math). Spend $500 on a campaign that gets 25 conversions and your CPA is $20. Spend $5,000 and get 125 conversions and it's $40. The division itself takes five seconds.
What actually determines whether that number means anything is which cost, which conversions, and which date range you put into it, and that's where most explanations of the formula stop short. Here's the full formula, a second form of it that should agree with the first, a worked example of where they disagree, and how to have an AI agent run the calculation correctly instead of by hand.
The CPA formula
CPA = Total cost / Total conversions
Total cost usually means ad spend for the campaign or account in question, over a specific date range. Total conversions means however many times your chosen conversion action fired in that same campaign and that same date range. Both halves of the fraction have to describe the same slice of the account, or the number coming out doesn't describe anything real.
Some marketers widen "total cost" to include agency fees, content production, or tool subscriptions, arguing a true acquisition cost should capture everything spent to get the customer, not just the media buy. Either definition is defensible, but pick one and say which one you're using when you report the number, since a media-only CPA and an all-in CPA on the same account can differ by 20 to 30% or more depending on overhead.
The alternate form: CPC divided by conversion rate
A second way to arrive at the same number:
CPA = Cost per click (CPC) / Conversion rate (CVR)
This isn't a different metric, it's the same division rearranged. Cost per click is spend divided by clicks; conversion rate is conversions divided by clicks; divide one by the other and the click counts cancel out, leaving cost divided by conversions, the same formula from the top of this post. If a campaign runs a $2.00 average CPC and converts at 10%, its CPA is $2.00 / 0.10 = $20, matching a campaign that spent $500 for 25 conversions at that same rate.
The reason this second form is worth knowing isn't the math, it's that CPC and conversion rate move for different reasons. A CPA that climbed because CPC went up (more competition in the auction) needs a different fix than one that climbed because conversion rate dropped (a landing page or offer problem). Breaking the single CPA number back into its two inputs tells you which lever to pull.
Where the two forms disagree, and why
Here's the part most CPA explainers skip: calculated by hand over a tight window, the two forms of the formula can give different answers on the same campaign, and the gap isn't a mistake, it's conversion lag.
Say a campaign spent exactly $400 on Monday and Tuesday combined, with 350 clicks and a historical conversion rate around 7%, which predicts roughly $400 / 0.07 ≈ 24.5 conversions and a CPA near $16.30. But if you pull "total conversions" for that same Monday-Tuesday window three hours after Tuesday ends, only 19 conversions have actually posted, 5 or 6 are still in transit from clicks earlier in the window that haven't converted yet. Cost divided by that partial conversion count gives $400 / 19 ≈ $21.05, a CPA that looks 30% worse than the CPC/CVR estimate, purely because the denominator was measured too early.
Google Ads handles this by attributing a conversion back to the date of the click and letting that day's numbers keep updating as delayed conversions arrive, which is why a campaign's reported CPA from three days ago looks different today than it did three days ago. If you're calculating CPA by hand from exported data, especially for the last few days of any date range, know you're likely looking at a CPA that's still settling, not a final one.
The mistake that matters more than either formula: blending
A single account-level CPA blends every campaign and every conversion action into one number, and that's usually the bigger source of a misleading figure, more than any lag issue. An account running one branded search campaign converting at 15% alongside a cold prospecting campaign converting at 2% will show a blended CPA that doesn't represent either campaign honestly. What Is CPA in Google Ads? goes deeper on splitting that blend apart by campaign and conversion action before trusting the top-line number.
Let an AI agent run the calculation per campaign
The formula is simple enough to do in a spreadsheet, but doing it correctly, for every campaign, over a consistent date range, with conversion lag accounted for, is the part worth handing to an agent connected to the account through Google Ads connectors. A prompt like:
Pull cost and conversions by campaign for the last 30 days,
excluding the last 3 days (conversion lag). Calculate CPA for
each campaign, flag any campaign more than 25% above the account
average, and show the CPC and conversion rate behind each one.
turns one formula into a ranked list of which campaigns are actually dragging the account's CPA up, and whether each one's problem is CPC or conversion rate. That's the output worth acting on, not the single account-wide number. Nothing changes in the account from a query like this; an agent connected through okaytorun reads the data and proposes specific changes for a person to approve, it never applies anything on its own. If you haven't connected an account yet, the Google Ads setup guide walks through the OAuth connection in Claude.
Once you've worked out what CPA each campaign is actually running, the next number worth having is what CPA you can afford. What's a Good CPA for Google Ads? covers backing that ceiling into your own margin and close rate, so the formula in this post has something real to compare against.
Quick reference
| Input | Formula | Use it to |
|---|---|---|
| Cost, conversions | Cost / Conversions | The baseline CPA for a campaign or account |
| CPC, conversion rate | CPC / CVR | See which lever (price or rate) is moving CPA |
| Cost, clicks, conversions | (Cost / Clicks) / (Conversions / Clicks) | Sanity check: should match the row above |
Exclude the last 2 to 3 days of any date range before calculating CPA by hand. Conversions still arriving from recent clicks will make the number look worse than it settles out to be.
The CPA formula itself was never the hard part. Getting the inputs right, and reading what a high or low number is actually telling you to fix, is where the value is, and that's the part worth automating rather than recalculating by hand every week.
Frequently asked questions
What is the formula for CPA?
CPA (cost per acquisition, sometimes written cost per action) equals total cost divided by total conversions for the same campaign and date range. Spend $500 and get 25 conversions, and your CPA is $20.
Is there another way to calculate CPA besides cost divided by conversions?
Yes. CPA also equals cost per click divided by conversion rate (CPC / CVR), since both formulas are just different ways of dividing the same spend by the same conversions. They should match; when they don't, something about the date range or the conversion count is off, not the math.
Is CPA the same as cost per action?
The formula is identical either way. Google Ads and most platforms use "CPA" to mean cost per action, any tracked conversion event. Marketers sometimes use the same letters to mean cost per acquisition, a completed customer or qualified lead. Define which action you're counting before comparing numbers across campaigns or accounts.
Why does my calculated CPA not match what Google Ads shows me?
Usually a date range mismatch. Google Ads credits a conversion to the day of the click, not the day it happened, so a conversion that lands a week after the click still counts against an earlier day's spend. If you calculate CPA by hand for a tight window, a conversion still in transit at the edge of that window will make your number look worse than the platform's own figure, which keeps updating as those conversions arrive.
How do I lower my CPA?
Raise conversion rate, lower cost per click, or both, since CPA is just the ratio of the two. In practice that means pausing or restructuring the keywords and placements spending without converting, tightening targeting, or improving the landing page the clicks land on. An AI agent with read access to the account can rank which campaigns or ad groups are dragging the account CPA up before you touch anything.