The 1 Number Tech Investors Should Watch

Shopify’s Rule of 40 score of 52 shows it’s pairing fast growth with real cash generation, but the stock’s valuation demands near-perfect execution.

Key Points
  • The Rule of 40 adds revenue growth and free-cash-flow margin to judge balance between growth and profitability.
  • Shopify scored 52 last quarter, with 34% revenue growth and an 18% free-cash-flow margin.
  • That’s excellent, but the stock is expensive, so any slowdown or margin slip could hit shares hard.

A tech company can grow sales by 30% and still chew through shareholder money like a teenager with access to the family credit card. Another can produce lovely profits while barely growing at all. Neither number tells the whole story, which is why investors may want to combine them.

The result is called the Rule of 40. Add a software company’s revenue-growth rate to its free-cash-flow margin. A total of 40 or more suggests the business is balancing growth and cash generation well. Suddenly, two messy financial statements have been reduced to one delightfully nosy number.

woman checks off all the boxes

Source: Getty Images

Why 40 is the magic number

Revenue growth shows whether customers are spending more, while free cash flow measures the cash left after operating expenses and capital expenditures. The latter can fund acquisitions, share repurchases, debt repayment, and further growth without repeatedly asking shareholders to open their wallets.

McKinsey found that barely one-third of software companies achieved the Rule of 40, while fewer sustained it. That makes the measure particularly useful while investors sort through Canadian AI stocks. Artificial intelligence (AI) can accelerate revenue, but the servers, engineers, marketing, and research behind it can also swallow cash at an impressive pace.

A high score doesn’t automatically make a stock cheap, nor should one terrific quarter earn a lifetime achievement award. Investors should track the number over several quarters and watch how management calculates free cash flow. Stock-based compensation, acquisitions, and temporary working-capital changes can occasionally give the figure a flattering camera angle.

Shopify just scored 52

Shopify (TSX: SHOP) offers an excellent real-world example. The Canadian commerce platform provides online stores, payments, shipping, lending, point-of-sale tools, and other services that help merchants sell almost anywhere. It isn’t a pure subscription-software company, yet the Rule of 40 still captures the balance investors need to see.

During the second quarter of 2026, Shopify stock increased revenue by 34% year over year and produced an 18% free-cash-flow margin. Add those figures together, and Shopify stock scores 52, comfortably clearing the traditional threshold. Better still, the margin improved from 16% one year earlier, even as the company continued investing in AI-powered commerce.

That improvement suggests Shopify isn’t merely purchasing growth. More merchants and transactions are moving through its platform, while a larger portion of revenue is reaching the bottom of the cash-flow statement. Management expects third-quarter revenue to grow in the low-30% range and its free-cash-flow margin to remain in the high teens to low 20s. If delivered, Shopify stock should stay above 40.

More improvements on the way

AI could help keep it there. Shopify stock is building tools that help merchants create stores, manage operations, and sell through AI assistants. As shopping shifts from typing searches into websites to asking an assistant what to buy, Shopify stock wants to remain the infrastructure completing the transaction. That connects AI adoption directly to payment volume and merchant revenue.

Investors noticed the quarter, sending Shopify stock sharply higher after the release. At roughly 98 times trailing earnings, the stock certainly isn’t hiding in the clearance aisle. Anyone buying stocks in Canada should recognize that such a valuation leaves little room for slowing growth or a disappointing margin.

Competition is another risk. Major technology companies are building their own AI-shopping tools, while merchants can switch platforms if Shopify stock’s fees become too expensive. Free cash flow can also fluctuate from quarter to quarter, making the trend more important than any single result.

Bottom line

For now, Shopify stock’s 52 shows growth and financial discipline pulling in the same direction. Investors watching that score each quarter may spot weakening momentum before it reaches the share price, or recognize when an expensive-looking tech stock is steadily growing into its ambitions.

Fool contributor Amy Legate-Wolfe has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Shopify. The Motley Fool has a disclosure policy.

More on Tech Stocks

A shopper makes purchases from an online store.
Tech Stocks

What Investors Need to Know About Owning U.S. Stocks in a TFSA

Do you own U.S. stocks in a TFSA? Learn how the 15% dividend withholding tax works, why Amazon pays none,…

Read more »

The virtual button with the letters AI in a circle hovering above a keyboard, about to be clicked by a cursor.
Tech Stocks

I’d Keep Constellation Software Stock Despite its 3% Organic Growth: Here’s Why

Constellation Software's acquisition strategy has driven the company's success. The growth runway remains strong.

Read more »

data center server racks glow with light
Tech Stocks

AI Data Centres Need Power: This Canadian Stock Just Won a 1GW Contract

Enerflex has landed substantial data centre equipment work. The opportunity now depends on what reaches shareholders after delivery.

Read more »

man makes the timeout gesture with his hands
Tech Stocks

The Tax Rules Canadians Should Know Before Starting a Side Hustle

A side hustle can fund investments, but taxes, business expenses, and sales-tax obligations determine how much money is actually yours.

Read more »

atomic particle
Tech Stocks

This TSX Tech Stock Trades About $1,000 Below Its Consensus Target

Constellation's consensus target sits about $1,038 above its dated share price, while acquisition-driven growth determines whether the optimism is earned.

Read more »

The letters AI glowing on a circuit board processor.
Tech Stocks

Celestica Raised Its 2026 Revenue Outlook to US$20.5 Billion: I Think the Stock Is a Buy Now

Here’s why Celestica’s growing role in AI infrastructure and its recent pullback make it one of the top Canadian stocks…

Read more »

quantum correlation
Tech Stocks

5N Plus Is Down 45% and Looks Cheap: The Price at Which it Becomes a Buy

With expanding production capacity, a robust order backlog, and favourable long-term industry trends, 5N Plus appears well-positioned for sustained growth,…

Read more »

telehealth stocks
Tech Stocks

1 Canadian Stock Down 42% to Buy and Hold Forever

This health tech stock is trading at a discount as it continues to grow and expand a business very much…

Read more »