CPC Calculator Widget

Add a CPC calculator to your website. Advertisers enter the spend and clicks from a campaign, optionally with impressions and conversions, and see the cost per click alongside click-through rate, CPM, conversion rate and cost per conversion.

Marketing Calculator Runs in your browser Free · no ads

Customize your widget

Theme
Auto follows the visitor's light/dark setting.
Style
Attribution on your page
Optional and entirely your choice. The exact line is shown in the code below; it links to the tool with rel="nofollow".
More options
Starting values
Leave blank to use the widget's defaults. Visitors can still change every value.

Live preview

Exactly what your visitors will see

Embed code

<iframe src="https://a2z.tools/embed/w/cpc-calculator" title="CPC Calculator by A2Z Tools" width="100%" height="520" style="border:0;width:100%" loading="lazy" allow="clipboard-write"></iframe>

A plain iframe. Works everywhere, including site builders that strip scripts. Adjust height if your content needs more room.

Works with

How it works

The widget feeds the totals into the same metric solver as the A2Z CPM, CPC and CPA Calculator. Spend and clicks give the CPC; impressions add CTR and CPM; conversions add conversion rate and CPA. Each extra figure is optional, and the widget only shows the metrics the entered figures can support. It flags impossible-looking data such as more clicks than impressions instead of silently printing a CTR above 100%.

Calculation method

  • C = ad spend, K = clicks, I = impressions (optional), V = conversions (optional)
  • CPC = C / K; CPA = C / V; CPM = C x 1000 / I (money shown to 2 decimals)
  • CTR = K / I x 100; conversion rate = V / K x 100 (percentages shown to 2 decimals)
  • Metrics whose inputs are blank are not shown; V = 0 gives CPA n/a rather than a division by zero
  • Warning when K > I, which would mean a CTR above 100%

Worked examples

A full search campaign

Inputs: Ad spend 2,400; clicks 1,600; impressions 80,000; conversions 48

Result: CPC 1.50; CTR 2%; CPM 30.00; conversion rate 3%; CPA 50.00

Each conversion needed about 33 clicks (1 / 3%), so CPA = CPC / conversion rate = 1.50 / 0.03 = 50.

Spend and results only, no impressions

Inputs: Ad spend 750; clicks 300; conversions 12

Result: CPC 2.50; conversion rate 4%; CPA 62.50

Without impressions CTR and CPM cannot be calculated, so the widget leaves them out instead of guessing.

Limitations

  • Totals are treated as one campaign. Averaging CPCs of several campaigns is not the same as dividing their combined spend by combined clicks; enter the combined totals.
  • Conversions are taken as reported. Platforms may count several conversions per click, include view-through conversions or use modelled conversions, which can push the conversion rate above what your own records show.
  • The average CPC is what you paid, not your maximum bid; in an auction the price per click can differ from one click to the next.
  • Invoices can add VAT, GST or digital-services taxes on top of the cost shown in the ads report. Use either the pre-tax report figure or the invoiced figure throughout, never a mix.

Where publishers use it

  • Google Ads and Microsoft Ads tutorials explaining the metrics in the campaign table
  • Agency reporting pages where clients check their own numbers
  • Affiliate-marketing blogs judging whether a traffic source pays
  • Marketing training courses and quizzes

Questions

What is the difference between CPC and CPA?

CPC is what each click costs. CPA is what each conversion (a sale, lead or sign-up) costs. CPA = CPC / conversion rate.

Why is conversion rate based on clicks?

In ad reporting it usually means conversions per click. Site analytics often divide by sessions instead, so the two can differ.

Do I need all four figures?

No. Spend and clicks are enough for CPC; add impressions and conversions for the other metrics.

What is the most I can afford to pay per click?

Multiply the profit one conversion brings by your conversion rate. If a sale leaves 60 of gross profit and 3% of clicks convert, a click is worth 1.80, so a CPC above that loses money before overheads.

Why do two advertisers pay different CPCs on the same keyword?

Search ad auctions rank ads on expected quality and relevance as well as the bid, so an advertiser with a more relevant ad and landing page can win the same position for less per click.

Why does my CTR look high but my CPA is poor?

CTR measures how appealing the ad is; CPA also depends on the landing page and the offer. Many clicks from people who do not buy raise spend without conversions, so read the two together.

Where do the numbers go?

Nowhere. They are calculated in the visitor's browser.

Sources

  1. Average cost-per-click (Avg. CPC): Definition - Google Ads Help . Average CPC = total cost of clicks / total clicks.
  2. Clickthrough rate (CTR): Definition - Google Ads Help . CTR = clicks / impressions.
  3. Conversion rate: Definition - Google Ads Help . Google Ads divides conversions by ad interactions, which are clicks for search text ads.

Cite or recommend this tool

If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.

A2Z Tools CPC Calculator
https://a2z.tools/cpm-cpc-cpa-calculator

Preview