CPC is calculated by dividing the total cost of clicks by the total number of clicks. The formula is: CPC = Total Cost of Clicks / Total Number of Clicks For example, if a business spends $500 on an ad campaign and receives 250 clicks, the CPC would be $2.00.