How to Calculate CAC for Ecommerce (Formula, Examples, Common Mistakes)
by Om Rathod
|
8 min read
Aug 24, 2026
Most founders think they know their CAC until they actually try to calculate it and realize three different tools are giving them three different numbers. That's not a tooling problem, it's a definitions problem. If you want to know how to calculate CAC for ecommerce in a way that actually informs budget decisions, you need a formula, a consistent time window, and the discipline to include costs you'd rather ignore.
This post walks through the exact formula, what to include, a worked example, and the mistakes that quietly wreck the number.
What CAC Actually Measures (and Why Founders Get It Wrong)
Customer acquisition cost is the total cost to acquire one paying customer over a given period. That's it. Not a lead, not a click, not an email signup. A paying customer.
People mix this up with CPA and CPL constantly. Cost per lead measures what it costs to get someone into your funnel. Cost per acquisition (in the ad platform sense) usually measures cost per conversion event, which might be a purchase, but might also be an add-to-cart or a form fill depending on how the campaign is set up. CAC is narrower and more useful: it's cost per unique, new, paying customer.
Why does this distinction matter so much? Because CAC is the ceiling on what you can afford to spend to win a customer. If your CAC is $60 and your average first-order profit is $40, you're buying customers at a loss on order one. That might be fine if repeat purchase rates are strong. It might also be the reason you're burning cash while revenue climbs. You can't tell the difference without a clean CAC number first.
The Basic CAC Formula
The formula itself isn't complicated:
CAC = Total Sales & Marketing Spend / Number of New Customers Acquired
The complexity is entirely in what you plug into the numerator and denominator, which we'll get to. But two things matter before you even open a spreadsheet.
First, the time window. Calculate CAC monthly or quarterly, not as a lifetime average. A lifetime CAC smooths over the exact trend shifts you need to catch, like a channel that quietly got 40% more expensive over the last six weeks.
Second, "new customers" means first-time purchasers only. Not repeat buyers, not total orders, not total transactions. If someone bought from you in March and again in June, they only count as a new customer once, in March. Conflating orders with new customers is one of the fastest ways to understate CAC without realizing it.
What to Include in Total Spend (Most Brands Undercount This)
This is where most CAC calculations quietly fall apart.
The obvious inputs are paid media spend across Meta, Google, and TikTok. Everyone includes these. Fine.
What gets left out: agency retainers, freelance contractor invoices, and every marketing software subscription touching acquisition, your email and SMS platform, analytics tools, creative tools, landing page builders. If a tool exists to help you acquire customers, its cost belongs in the calculation.
Then there's the one nobody wants to include: salaries. If you have an in-house growth marketer spending 80% of their time on paid acquisition, 80% of their salary for that period belongs in your numerator. It feels uncomfortable to add a five-figure monthly cost to the formula. It's also accurate.
This is why you should track two versions side by side: fully loaded CAC (everything above) and paid-media-only CAC (just the ad spend). Paid-media-only CAC is useful for quick channel comparisons. Fully loaded CAC is the number that tells you whether the business actually makes sense at your current growth rate. Founders who only look at the paid-media number tend to be surprised, later, by how thin their margins really are. If you're building out reporting for this, a proper BI reporting setup makes it far easier to keep both numbers live instead of recalculating them from scratch each month.
Blended CAC vs Channel-Level CAC
Blended CAC is the simplest version: total spend across every channel, divided by total new customers, across the whole business. It's the number you'd put on a board slide.
Channel-level CAC breaks that same math apart by channel. Meta CAC, Google CAC, TikTok CAC, each calculated independently using that channel's spend and the new customers it actually drove.
Here's the trap. A healthy blended CAC can hide a channel that's bleeding money, because a cheap channel is quietly subsidizing an expensive one. You look at the top-line number, feel fine, and keep funding a channel that's underwater.
Getting clean channel-level numbers is harder than it sounds, because ad platforms over-report their own conversions almost by design (Meta and Google both take credit for the same sale under standard attribution windows). Real channel CAC requires stitching together Shopify order data, GA4, and ad platform spend rather than trusting whatever the platform dashboard tells you. This is exactly the kind of cross-platform reconciliation that GA4 solutions are built to solve, since GA4 sits between your ad platforms and your actual storefront data.
Worked Example: Calculating CAC for a $50k/Month Ad Spend Brand
Say a brand spends $50,000 on marketing in a month and acquires 850 new customers.
Blended CAC = $50,000 / 850 = $58.82
Now break it down by channel:
Meta
Spend: $30,000
New customers: 500
CAC: $60.00
Google
Spend: $20,000
New customers: 350
CAC: $57.14
Already useful. Google is slightly more efficient than Meta this month, which might justify shifting another $5,000 toward it next month to see if that efficiency holds at scale.
Now watch what happens if you strip out software and staffing costs and only count the $50,000 in ad spend, ignoring, say, an additional $8,000 in agency fees, tools, and prorated salary that actually went into running this program. Suddenly your "CAC" drops to a number based on $50k against 850 customers when the real fully loaded spend was $58k. That's a real, sizeable gap between the honest number and the flattering one, and it's the kind of gap that makes a brand think it can scale a channel profitably when it can't.
The exercise also does something more useful than one clean number: it tells you where to move budget next.
Common Mistakes That Skew Your CAC Number
Counting returning customers as new. If your denominator includes repeat buyers, your CAC looks artificially low. Filter for first-time purchasers only, every time.
Trusting platform-attributed conversions over actual order data. Meta says it drove 500 sales. Google says it drove 400. Your Shopify data says you had 850 new customers total. The platforms are double-counting the same buyers through overlapping attribution windows. Use your own order data as the source of truth for the denominator, not the sum of what every ad platform separately claims.
Comparing CAC across periods without adjusting for seasonality or one-off spend. A November CAC calculated during a big sale isn't comparable to a quiet February. Neither is a month where you ran a one-time influencer campaign. Compare like periods, or at least flag the anomalies when you do.
Ignoring refunds and failed orders. If someone "converts," gets counted as a new customer, then returns the order or the payment fails, they were never really acquired. Leaving them in the count makes CAC look better than it actually is.
Why CAC Only Matters Next to LTV
CAC by itself doesn't tell you much. A $60 CAC is great for a brand with a $400 average customer lifetime value and terrible for one where customers spend $70 and never come back.
The LTV:CAC ratio is the real health check. A commonly cited rule of thumb is 3:1, meaning a customer should be worth roughly three times what it cost to acquire them. Treat that as a rough starting benchmark, not a universal law: capital-intensive categories, subscription models, and low-margin commodity products all shift what a healthy ratio looks like. [VERIFY] before treating 3:1 as gospel for your specific category.
What matters more than any single ratio is the trend. Is CAC creeping up month over month while LTV holds flat? That's the warning sign worth acting on, long before the ratio itself crosses some arbitrary line.
Get CAC Right Without the Spreadsheet Guesswork
Getting an accurate CAC means reconciling ad platform spend, Shopify orders, and GA4 sessions into one deduplicated view, and doing it every single month without the numbers drifting apart. That's exactly where manual spreadsheets fall over: someone forgets to exclude repeat buyers, or pulls Meta's conversion count instead of actual new customers, and the number quietly becomes fiction.
Trivas pulls ad platform, Shopify, and GA4 data into one place so CAC (blended and per-channel, fully loaded and paid-media-only) updates on its own instead of getting rebuilt by hand every month. For founders and CEOs trying to make real budget calls, that's the difference between reacting to a stale number and catching a channel going sideways in week two instead of month three.
Want to see how your own acquisition costs break down across channels? Book time with the Trivas team and we'll walk through it on a live dashboard using your actual data.
Revenue growth leader and co-founder driving Trivas's commercial strategy. Om has led the product vision and execution from scratch. With a strong background in SaaS sales and GTM strategy, Om bridges product innovation with real-world customer needs.
Continue Reading
explore more insights
Ecommerce Analytics Platform That Replaces Spreadsheets: 5 Honest Options
3 min read
Mastering TikTok Analytics Tracking for Your Shopify Store
3 min read
Ecommerce Analytics for Brands Consolidating Their Tech Stack