CAC Calculator for Shopify: How to Compute Customer Acquisition Cost That Actually Reflects Reality (2026)
May 19, 2026 · By Ishant Sharma
Customer Acquisition Cost is the second most miscalculated number in DTC after break-even ROAS. The textbook formula is total marketing spend divided by customers acquired, but every part of that formula gets corrupted in practice. Brands divide ad spend by all customers (not new customers). They forget about affiliate commissions, influencer payments, agency fees, and creative production. They mix returning-customer orders into the denominator and end up with a CAC that looks great because most of those customers were never acquired by ads in the first place.
This guide walks through the real way to calculate CAC for a Shopify store, the three different CAC numbers you should track (and which one to use for which decision), the costs almost every CAC formula misses, and the CAC-to-LTV ratio that tells you whether to scale or pull back. I have been running paid ads for ecommerce brands every day for over a decade through Hustle Marketers, a Google Partner, Meta Business Partner, and Microsoft Advertising Partner agency. The patterns below come from auditing CAC numbers across hundreds of stores.
What CAC actually is
Customer Acquisition Cost is the total cost of acquiring one new customer. The simple formula is:
CAC = Total Marketing Spend / Number of New Customers Acquired
The catch is in both inputs. Total marketing spend has to include every dollar spent on getting customers, not just paid ads. Number of new customers has to count only first-time buyers, not orders. Every brand that gets this wrong gets it wrong on the same two axes.
The three CAC numbers every brand should track
There is no single "CAC". There are three flavors, each useful for a different decision.
Blended CAC is total marketing spend across every channel divided by new customers acquired in the same period. This includes paid ads, affiliate, influencer, agency, creative, content, and any other line item that exists to bring customers to your store. Blended CAC is the honest portfolio number and the one your CFO cares about.
Paid CAC is paid ad spend (Meta, Google, TikTok, etc.) divided by new customers acquired through paid channels in the same period. This requires last-click or some form of attribution to assign customers to paid versus organic sources, so the number is fuzzier. Paid CAC is useful for understanding how efficient your paid program is in isolation.
Marginal CAC is the cost to acquire the next new customer at your current spend level. It is always higher than blended or paid CAC because the cheapest customers come first and each incremental dollar of ad spend buys a more expensive customer. Marginal CAC matters for scaling decisions: at what spend level does the next customer become unprofitable to acquire.
Most brands report blended CAC monthly and use it for board reporting. Most operators implicitly think about marginal CAC when they decide whether to increase Meta budget. Few brands explicitly separate the three, which is why scaling decisions go wrong.
The costs that should go into "marketing spend"
This is where most CAC calculations break. The denominator is straightforward (new customers in the period). The numerator gets shortchanged. Here is the full list of costs that belong in marketing spend, in roughly the order they get missed.
Paid ad spend. Meta, Google, TikTok, Pinterest, Snap, Bing, Reddit, anything you bid on. This one almost everyone gets right.
Affiliate commissions. If you run an affiliate program through ShareASale, Impact, GoAffPro, or similar, the commission paid is a real marketing cost. Most brands track affiliate revenue but forget the commission expense in CAC math.
Influencer payments. Cash payments to creators, gifted product cost at the rate you would have sold it for (not COGS, retail value of what was given for free), and any management fees to influencer agencies.
Agency fees. If you use a paid media agency like Hustle Marketers, the management fee is a marketing cost. Same for SEO agencies, content agencies, and email retainers.
Creative production. UGC payments, video editing, photography, graphic design. Brands often hide these in operating expense, but they exist to produce assets for marketing. Include them.
SaaS marketing tools. Klaviyo, Postscript, Yotpo, Triple Whale, Sensor Tower, Shoplift, every tool whose purpose is marketing. Run the monthly invoice through CAC.
Content production. If you employ writers, social media managers, brand designers, their fully loaded compensation is marketing spend. Some brands prorate the percentage of their time spent on customer acquisition versus retention.
Trade show and event spend. Booth, travel, samples, all of it.
Free shipping and welcome discount. This one is controversial. Many brands argue that the welcome discount is a cost of acquisition (you only give it to first-order customers). Others treat it as a margin reduction. The cleaner approach is to track contribution margin net of welcome discount on first orders, which routes the cost into LTV math rather than CAC math. Pick one approach and apply it consistently.
If your marketing spend in the CAC calculation is just paid ads, your CAC is wrong by 20 to 50 percent depending on how much of your acquisition mix is non-ad spend.
Counting new customers correctly
The denominator looks easy until you actually try to compute it.
New customers, not orders. A customer who buys three times in the period counts once. Pull the Shopify customers report filtered to "first order in period" or compute it directly from the orders export by deduplicating on customer email.
First-order customer, not first-paid-order customer. A customer who orders organically (typed your URL, came from email) is still a first-time customer. Including them in the denominator is correct because some of your marketing spend created the awareness that drove the organic visit. Excluding them inflates CAC.
Define your period carefully. Monthly CAC includes customers acquired in the month. If you spent ads on December 20 that drove an order on January 3, which month does it belong to? Most brands compute CAC on the spend date, not the order date. Be consistent.
Exclude wholesale, B2B, and one-off bulk orders. A single corporate bulk order does not represent acquisition of one customer. Filter to DTC retail orders only.
Worked example: where CAC goes wrong
A Shopify supplement brand reports its CAC as 25 dollars. They calculate it as Meta + Google spend (30,000) divided by total orders (1,200). They are wrong on both inputs. Here is the corrected math.
Marketing spend. Meta plus Google is 30,000. They also paid 4,000 in influencer cash, 8,000 in affiliate commissions, 5,000 to a paid media agency, 1,500 in Klaviyo and Postscript, 2,000 in UGC creator payments, and 2,000 in creative production. Real marketing spend: 52,500 dollars.
Customers. Of the 1,200 orders, 720 were from existing customers (60 percent of orders are repeat in this category). New customers acquired in the month: 480.
Real blended CAC. 52,500 / 480 = 109.38 dollars per new customer.
The brand was reporting 25 dollars. The real number is 109 dollars. That is 4.4 times higher. Every business decision built on the 25-dollar number was wrong. The CFO thought CAC payback was three weeks. The actual payback was over four months.
The reason the gap is so large is that supplements have high repeat rates (orders inflate quickly relative to new customers) and the brand had a heavy non-ad marketing program (affiliate, influencer, agency) that got excluded from the denominator. The 4.4x error is on the high end but not unusual.
From the agency: the 25-dollar CAC that was actually 109
The supplement brand in the worked example above is a real client. When they came to Hustle Marketers, their internal CAC report showed 25 dollars per new customer. Their previous agency had divided Meta plus Google spend by total orders, missed the influencer and affiliate spend in the numerator, missed the 60 percent repeat-order share in the denominator, and missed the agency retainer in the marketing line. The corrected CAC was 109 dollars, more than four times the reported number. The brand had been running an aggressive scaling plan on the assumption that customers paid back in three weeks. Honest payback was just over four months.
The fix was not a single tactic. It was three coordinated moves. First, we restructured the affiliate program to pay tiered commissions based on new-customer attribution rather than flat commissions across all orders, dropping blended affiliate cost by 2.4 percent of revenue. Second, we shifted paid spend out of saturated retargeting (where incremental CAC was much higher than blended) and into less saturated cold prospecting on Meta. Third, we built a simple first-order versus repeat-order dashboard so the team could not accidentally credit retention orders to acquisition channels. Within 90 days, CAC came down to 78 dollars while monthly new customer volume grew 14 percent. The brand was the same. The reported number had been wrong. Acting on the corrected number was the entire change.
CAC, LTV, and the payback period
CAC alone is not actionable. CAC compared to lifetime value (LTV) is what tells you whether your business model works.
LTV is the total contribution margin a customer generates over their relationship with your brand. Not revenue. Not gross profit. Contribution margin. After every variable cost (COGS, fulfillment, payment fees, refunds, discounts, etc.) that we covered in our break-even ROAS calculator guide.
CAC-to-LTV ratio. The rule of thumb is 1:3 (CAC should be one-third of LTV) for healthy DTC. Sub-1:3 means you are leaving margin on the table by under-acquiring. Above 1:3 means CAC is too high relative to monetization. The 1:3 rule is rough and varies by industry, but it is a reasonable starting frame.
CAC payback period. The number of months until contribution margin from a customer covers the cost to acquire them. A 100-dollar CAC with a customer generating 20 dollars of contribution margin per month has a payback period of 5 months. Healthy DTC brands target payback under 12 months. Subscription brands often run 18-24 month payback knowingly.
For the supplement brand example, if average customer LTV (contribution margin over 24 months) is 280 dollars, the CAC-to-LTV ratio is 109 / 280 = 0.39. That is worse than 1:3 (which would require LTV of 327 at 109 CAC). The brand is technically profitable but under-monetizing acquisition or over-paying for it. They need to either drive up LTV (better email, subscription conversion, upsells) or drive down CAC (more efficient channel mix).
CAC by channel
Once you have blended CAC, you can break it down by channel to understand which acquisition source is most efficient. The cleanest way is to use last-click attribution from Shopify (or a tool that exposes the same), then divide channel spend by channel-attributed new customers.
The caveats are large. Last-click attribution overweights bottom-funnel channels (branded search, retargeting) and underweights top-funnel channels (cold prospecting, influencer awareness). A channel-level CAC of 30 dollars from Google branded search and 180 dollars from Meta prospecting does not mean Google is more efficient. It means Google captured demand that other channels created.
The right way to compare channels is incrementality testing (geo holdouts) rather than attributed CAC. Short of running tests, use channel-level CAC for relative trend reading (is Meta CAC getting worse over time) rather than absolute channel-vs-channel comparison.
When CAC math breaks
The CAC framework has limits.
Slow-considered purchases. Furniture, electronics, high-AOV B2B. The time between first ad exposure and purchase can be 90+ days. Monthly CAC mixes today's spend with last quarter's customers and is misleading. Use trailing 90-day CAC.
Pre-product-market-fit brands. When most customers are still figuring out if they like the product, CAC is volatile because conversion rate is volatile. Stabilize the product first, then measure CAC.
Heavy organic brands. A brand where 60 percent of revenue is SEO and word of mouth has a blended CAC that is mostly an accounting artifact. Focus on paid CAC and new-customer MER instead.
Brand campaigns. A 30-second YouTube awareness campaign cannot be evaluated on CAC in the short term. Use share-of-search, branded query growth, or post-campaign lift studies.
The CAC audit checklist
Before you trust any CAC number, audit these six points:
- Marketing spend includes every line, not just paid ads. Affiliate, influencer, agency, creative, tooling.
- Customer count is new customers, not orders. Deduplicate on email or customer ID.
- Period is consistent. Spend and customers from the same window.
- B2B and wholesale excluded. DTC retail only.
- Welcome discount treatment is documented. Either in CAC or in LTV, not double-counted, not missed.
- Trend is computed on rolling windows. 7-day rolling and 30-day rolling, not single-day.
If any of those is wrong, the CAC number is wrong, and every downstream decision built on it (channel scaling, budget allocation, hiring) is wrong.
Frequently asked questions
What is a good CAC for a Shopify brand? There is no universal answer. A good CAC depends on AOV, contribution margin, and LTV. For a brand with 60-dollar AOV and 280-dollar LTV, a CAC of 60-90 dollars is healthy. For a brand with 200-dollar AOV and 600-dollar LTV, a CAC of 150-200 dollars is healthy. The right CAC is the one that produces a CAC-to-LTV ratio under 1:3 and a payback period under 12 months.
Should I include organic revenue in CAC calculation? For blended CAC: yes, you count customers acquired through any channel because some of your marketing spend (content, SEO, brand) contributed to organic acquisition. For paid CAC: no, only paid-attributed customers in the denominator.
Is CAC the same as cost per acquisition (CPA)? Close but not identical. CPA is usually a campaign-level metric (cost per conversion event in Meta or Google), and the "conversion" can be a purchase, lead, or signup. CAC is a business-level metric specifically for new customers. CPA can equal CAC if your only conversion event is a first purchase and you only run paid campaigns, but in most real businesses they diverge.
How do I calculate CAC if I sell on multiple channels (Shopify plus Amazon)? Compute CAC per channel separately. Shopify customers attributed to Shopify marketing spend. Amazon customers attributed to Amazon marketing spend (PPC, brand store, etc.). Blended CAC across both is fine for total business view but channel separation is cleaner for operational decisions.
What is the difference between CAC and customer acquisition cost ratio? CAC is the dollar cost per customer. CAC ratio (or CAC-to-LTV) is the ratio of CAC to lifetime contribution margin. The ratio is more useful for decision-making because it normalizes against your monetization, but you need to compute CAC first to compute the ratio.
How often should I recalculate CAC? Weekly at the trend level for active monitoring. Monthly at the decision level. Channel mix changes, ad cost changes, and seasonality all move CAC, so a single quarterly number can hide problems for too long.
Does CAC include sales tax? No. Sales tax is not a marketing cost. Exclude sales tax from any cost or revenue input. If your store includes tax in price (some EU and UK setups), strip tax out before doing any CAC or LTV math.
The bottom line on CAC
CAC is the most-quoted, least-correctly-calculated number in DTC. Most brands quote a number that is 30 to 100 percent below their real CAC because they only count ad spend in the numerator and only count paid customers in the denominator. The corrected number changes the conversation. Brands that look profitable on the inflated number often look loss-making on the real one.
The work is not complicated. Pull every marketing line into the numerator. Pull all first-time customers (paid and organic) into the denominator. Compare against LTV. Run the math monthly and check the trend. The brands that do this well make better channel allocation decisions and scale more profitably than the brands that do not.
If you want CAC, new-customer CAC, paid CAC, and the CAC-to-LTV ratio computed from live Shopify and ad-account data with every marketing line correctly classified, BreakevenHQ does that automatically. For the agency-side companion guide on running CAC against real campaigns, see Hustle Marketers.
Ishant Sharma is the founder of Hustle Marketers, a Google Partner, Meta Business Partner, and Microsoft Advertising Partner agency, and BreakevenHQ, break-even analytics for DTC brands across every channel and every product. He is certified in Google Ads (Search, Display, Shopping, and Video), Meta Blueprint Media Buying Professional, and Microsoft Advertising, and has been running paid ads for ecommerce brands every day for over a decade.