Your customer acquisition cost is calculated by dividing all direct and indirect sales and marketing costs by the number of new customers you gain within a specific period.