Cost per Click and Cost per Acquisition

Excel Formulas › E-commerce & Marketing

All versions

CPC is spend per click; CPA is spend per conversion. Together they connect ad budget to results — and CPA × orders shows what acquisition really costs.


Quick formula: cost per click and per acquisition:
=ad_spend / clicks // CPC =ad_spend / conversions // CPA
Spend over clicks gives CPC; spend over conversions gives CPA (cost per acquisition).

The example

$5,000 spend, 2,500 clicks, 120 orders.

AB
1MetricValue
2CPC$2.00
3CPA$41.67

The formula

The formula:

=B2 / clicks // spend ÷ clicks (CPC)

How it works

How it works:

  1. CPC = ad spend ÷ clicks — the price of a visit.
  2. CPA = ad spend ÷ conversions — the price of a customer or order.
  3. CPA = CPC / conversion_rate — cheaper clicks or better conversion both cut it.
  4. Compare CPA to margin per order to see if the channel is profitable.

CPA is the one that matters. A low CPC looks great but means nothing if those clicks don’t convert — CPA = CPC / conversion_rate. A $0.50 click at 1% conversion is a $50 CPA; a $2 click at 8% is a $25 CPA. Optimize toward CPA (and profit per order), not cheap clicks.

Try it: interactive demo

Live demo

Spend, clicks, conversions.

CPC · CPA

Variations

Cost per acquisition

Per order:

=ad_spend / conversions

CPM (per 1000 impressions)

Awareness cost:

=ad_spend / impressions * 1000

CPA from CPC

The link:

=CPC / conversion_rate

Pitfalls & errors

Cheap clicks can mislead. Low CPC with poor conversion = high CPA. Optimize for CPA.

CPM is per 1,000. Multiply by 1000 after dividing by impressions.

Profit check. CPA must sit below margin per order to be profitable.

Practice workbook

📊
Download the free Cost per Click and Cost per Acquisition practice workbook
A CPC/CPA sheet with the CPA, CPM, and CPA-from-CPC variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I calculate CPC and CPA in Excel?
CPC = ad_spend / clicks; CPA = ad_spend / conversions. Spend of $5k over 2,500 clicks is a $2 CPC.
How are CPC and CPA related?
CPA = CPC / conversion_rate. Cheaper clicks or better conversion both lower CPA.
What is CPM?
Cost per thousand impressions: =ad_spend / impressions * 1000, used for awareness campaigns.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Return on ad spend · Customer acquisition cost · Click-through rate