To calculate CAC, divide the total cost spent on acquiring customers by the number of customers acquired in a given period. For example, if you spend $1,000 on marketing in a month and gain 50 new customers, your CAC is $20.