Sales and marketing spend in a period divided by the new customers won in that period.
Customer acquisition cost is what it costs, on average, to win one new customer: the sales and marketing spend of a period divided by the new customers won in it. Blended CAC uses all customers, including those that arrived on their own; paid CAC uses only those from paid channels.
CAC = (sales spend + marketing spend in the period) / new customers won in the period. Use the same period on both sides, or lag the spend if the sales cycle is long.
$480,000 of sales and marketing spend in a quarter and 160 new customers give a CAC of $3,000.
Leaving out sales salaries, counting reactivated customers as new, or comparing a blended CAC against a competitor's paid CAC. Read it beside lifetime value: see customer acquisition cost and how to calculate LTV.