Quick Answer: Calculate CAC by attributing every qualified lead generated from your programmatic SEO engine to its true acquisition cost: content production, engineering, hosting, internal labor, tooling, and ongoing optimization. Then divide the fully loaded cost for a defined period by the number of converted customers (or SQLs, if you need lead-stage CAC) that can be traced back to those pages through first-touch, last-touch, or multi-touch attribution.
To calculate CAC accurately for a programmatic SEO engine at scale, you need a page-level attribution model rather than a blended organic traffic average. Start by grouping all costs tied to the engine—template development, data ingestion, page generation, CMS/infra, SEO ops, conversion assets, and analytics—into a monthly or quarterly fully loaded spend. Next, instrument each page with unique tracking parameters, events, and CRM source fields so every lead and downstream customer can be mapped back to the originating URL, page cluster, or intent category. Once attribution is clean, CAC is simply total attributable spend divided by total attributable customers; if you only have lead data, use cost per qualified lead and then apply lead-to-close conversion rates to estimate customer CAC.