CAC is calculated by dividing the total cost of sales and marketing over a specific period by the number of new customers acquired during that time. The formula is: CAC = Total cost of sales and marketing / Number of new customers acquired.