Cost Per Click Calculator Formula
Understand the math behind the cost per click calculator. Each variable explained with a worked example.
Formulas Used
Cost Per Click
cpc = total_clicks > 0 ? total_spend / total_clicks : 0Clicks Per Dollar
clicks_per_dollar = total_spend > 0 ? total_clicks / total_spend : 0Variables
| Variable | Description | Default |
|---|---|---|
total_spend | Total Ad Spend(USD) | 2000 |
total_clicks | Total Clicks | 800 |
How It Works
How to Calculate Cost Per Click
Formula
CPC = Total Ad Spend / Total Clicks
CPC tells you the price you pay for each visitor acquired through paid advertising. Lower CPC means your budget stretches further, but CPC alone does not determine campaign success. A low CPC with poor conversion rates can still produce a negative return. Always evaluate CPC alongside conversion rate and cost per acquisition.
Worked Example
An ad campaign spent $2,000 and generated 800 clicks.
total_spend = 2000total_clicks = 800
- 01CPC = $2,000 / 800 = $2.50
- 02Clicks Per Dollar = 800 / $2,000 = 0.40
- 03Each click costs $2.50 on average.
Ready to run the numbers?
Open Cost Per Click Calculator