Shopify CEO Tobi Lütke Rewrote Its Code-Hosting System “for $2,000 of Tokens.” That’s Good News for Margins

Gian Estrada • 5 minute read
Reviewed by: David Hanson
Last updated Dec 1, 2026

bluebay2014 from Getty Images and Africa images from Canva

Key Takeaways

  • Shopify CEO Tobi Lütke says AI agents now do almost all of Shopify’s engineering, and agreed on X that a code-hosting rewrite cost $2,000 in tokens.
  • Shopify merchants sold $18.1 billion over Black Friday-Cyber Monday, but the better news for margins may be on the cost side.
  • Analysts have raised Shopify’s revenue estimates far faster than its EPS estimates, pointing to thinner margins on new sales.
  • The cost to watch is AI itself, which helped push subscription gross margin down to 79.1% in the third quarter of 2026.

Shopify (SHOP) CEO Tobi Lütke told David Senra on Senra’s podcast how his company builds software now: “Almost all engineering at Shopify now is happening through these things called factories,” which he described as “like constellations of AI agents with different jobs.”

With agents, he said, “you can make a decision on Friday, and you show up on Monday with production code.” A project that used to be “too much of a side quest” is “now it’s worth $2,000 of tokens.” When an X post summarizing the interview said that project was rebuilding the system that hosts Shopify’s code, Lütke replied “Yep.”

Shopify’s merchants just sold $18.1 billion over Black Friday-Cyber Monday, up 24%. The better news for margins may be on the cost side.

EPS Estimates Have Lagged Revenue Estimates

Analysts already expect Shopify’s normalized EPS to more than double, from $1.43 in 2025 to $3.26 in 2028:

Bar chart from TIKR of Shopify's normalized EPS, actual and consensus estimates, $ per share, fiscal 2023-2028.
SHOP Normalized EPS, Actual and Estimates: 2023-2028 (TIKR)

But in the year to late October, analysts lifted their 2027 revenue estimate 15% and their 2027 EPS estimate just 2%. That gap fits a mix shift: merchant solutions, where payments sit, carries a much thinner gross margin and keeps growing fastest.

Faster engineering on the same payroll pushes the other way. If agents keep cutting what it costs Shopify to build each new product, I’d expect those EPS estimates to rise.

TIKR Tracks 54 Analysts on Shopify. How Many Say “Buy”?

See the full breakdown of Buy, Hold, and Sell ratings on Shopify, along with Wall Street’s revenue and earnings estimates, all in one place. More than 500,000 investors use TIKR to research stocks like this one. See Shopify’s Analyst Ratings

Shopify Was Already Doing More With the Same Team

Shopify’s EBIT margin went from a loss in 2022 to 16.4% in 2025, about double its 2021 level:

Line chart from TIKR of Shopify's operating (EBIT) margin (%), fiscal 2021-2025.
SHOP EBIT Margin: 2021-2025 (TIKR)

Management has said headcount has been flat to down for more than two years. In the third quarter of 2026, operating expenses fell to about 32% of revenue from 37% a year earlier, and Shopify guides to 29%-30% for the fourth. If Lütke is right about agents, Shopify can keep shipping new products without adding much to a staff of about 7,600.

Token Bills Are the Cost to Watch

AI isn’t free, and Shopify’s numbers show it. Subscription gross margin fell to 79.1% in the third quarter of 2026 from 81.7% a year earlier, as the cost of serving subscriptions rose 37%. CFO Jeff Hoffmeister blamed mainly extra AI spending on Sidekick, Shopify’s merchant assistant, even as Sidekick’s total costs fell 18% from the second quarter.

Shopify has the cash to pay for plenty of tokens. Free cash flow went from negative in 2022 to $2.0 billion in 2025:

Bar chart from TIKR of Shopify's free cash flow, $ millions, fiscal 2021-2025.
SHOP Free Cash Flow: 2021-2025 (TIKR)

In the third quarter of 2026, Shopify turned 21.8% of its revenue into free cash flow, up from 17.8% a year earlier. Management said only about 1.5 points of that gain came from operating discipline and expense leverage, with the rest from more temporary factors.

The Expense Line Will Tell Us

The way I see it, a company that ships faster with a flat team can turn more of each new sales dollar into operating income, and that’s good news for Shopify’s margins.

Still, one CEO’s weekend project isn’t a company-wide cost cut. Shopify’s fourth-quarter report in February will show whether operating expenses keep falling as a share of revenue, and whether subscription gross margin holds near 80% as AI use grows.

So What Is Shopify Stock Actually Worth?

TIKR lets you forecast the future price of any stock in less than a minute. Just enter a few assumptions into TIKR’s valuation model and see what Shopify could be worth. Start from Wall Street consensus estimates, or adjust the inputs to reflect your own view of the business. It’s free to use.

Value Shopify for free

Disclaimer:

Please note that the articles on TIKR are not intended to serve as investment or financial advice from TIKR or our content team, nor are they recommendations to buy or sell any stocks. We create our content based on TIKR Terminal’s investment data and analysts’ estimates. Our analysis might not include recent company news or important updates. TIKR has no position in any of the stocks mentioned. Thank you for reading, and happy investing!

Join thousands of investors worldwide who use TIKR to supercharge their investment analysis.

Sign Up for FREENo credit card required