Cloudflare vs. Palo Alto Networks: Which Cybersecurity Stock Is the Better Buy?

Source The Motley Fool

Key Points

  • Cloudflare is growing faster but still faces operating losses, and its revenue growth could begin to decelerate.

  • Palo Alto Networks is a more mature company with better margins and is using acquisitions to gain market share.

  • The gap in price-to-sales ratios is massive between these two companies, and investors should keep that in mind.

  • 10 stocks we like better than Palo Alto Networks ›

Cybersecurity has been a hot industry for several years, with Grand View Research projecting an 11.9% compound annual growth rate (CAGR) through 2033. However, artificial intelligence (AI) is heating up the need for cybersecurity.

Each AI agent and model needs cybersecurity. Furthermore, hackers can use AI to hack more targets, and cybersecurity companies use AI to deter those attackers.

Missed Nvidia in 2009? This Rare Signal Is Flashing Again. In 2009, a "Double Down" signal flashed for a little-known chipmaker called Nvidia. For the first time in years, that same "Total Conviction" signal is flashing for a company 1/100th the size of Nvidia. Continue »

Cloudflare (NYSE: NET) and Palo Alto Networks (NASDAQ: PANW) are at the forefront of this opportunity. They both generate annual recurring revenue from leading companies, but there are a few things to consider when comparing these stocks.

A person holds a smartphone displaying a digital padlock.

Image source: Getty Images.

Palo Alto has better margins and is more mature

Palo Alto Networks is the most established cybersecurity platform. It earned $3 billion in its fiscal 2026 third quarter, ended April 30, while Cloudflare only generated $696.1 million in the second quarter. It is also profitable, while Cloudflare is still burning through cash. Although its fiscal 2026 third quarter wasn't profitable, that was mainly due to merger and acquisition (M&A) expenses. It had been profitable in the first and second quarters of its fiscal 2026.

Cloudflare continues to report operating losses. A generally accepted accounting principles (GAAP) loss equivalent to 30% of revenue in the second quarter was higher than usual due to one-time severance costs. Q1 does not reflect severance and yielded an operating loss equal to 10% of total revenue.

Cloudflare is growing faster

Cloudflare's strength in this comparison is the fact that it's growing faster without leaning heavily into acquisitions. For instance, Cloudflare delivered 36% year-over-year revenue growth in this quarter, compared to Palo Alto Networks' 31% growth rate.

However, the advantage skews more toward Cloudflare when reading the fine print. Palo Alto Networks' revenue growth is partially fueled by its recent acquisitions of CyberArk and Chronosphere, which contributed $388 million of the company's $3 billion in sales in the quarter. That's more than 10% of total revenue that came from acquisitions instead of organic growth.

If Cloudflare can maintain elevated growth rates and scale margins quickly once it becomes profitable, then it has a real shot at outperforming Palo Alto Networks in the long run.

Not all investors are banking on that scenario. Palo Alto Networks has comfortably outpaced Cloudflare in year-to-date returns, and valuation differences may explain why. Palo Alto Networks trades at a high 25 price-to-sales ratio, but that level is pretty low compared to Cloudflare's 41 P/S ratio. Higher growth rates also come with higher expectations, and a lot of future growth is already priced into Cloudflare shares.

Which stock is the better buy?

Cloudflare and Palo Alto Networks provide critical cybersecurity solutions to the world's largest companies. As the AI build-out intensifies, these companies will experience heightened demand for cybersecurity solutions.

Palo Alto Networks is the better-known name in the industry and is more suitable for investors who want to incur less risk. If Cloudflare achieves profitability and quickly scales it, the company may be a better buy.

Although Cloudflare is growing faster, its growth rate will eventually decelerate. That has been the common pattern for many maturing cybersecurity and tech companies. This risk also affects Palo Alto Networks, but it has a far more reasonable valuation than Cloudflare.

Even though Palo Alto Networks has already outpaced Cloudflare, it's likely that the trend will continue. The recent acquisitions have boosted Palo Alto Networks' market share in the cybersecurity industry.

Palo Alto Networks also has projected sequential growth on its side. The company guided for $3.35 billion in fiscal Q4 revenue at its midpoint, which implies a 12% sequential gain. Cloudflare's guidance pointed to $736.5 million at the midpoint, which only suggests a 6% quarter-over-quarter boost.

Should you buy stock in Palo Alto Networks right now?

Before you buy stock in Palo Alto Networks, consider this:

The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Palo Alto Networks wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.

Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $443,461!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,307,633!*

Now, it’s worth noting Stock Advisor’s total average return is 973% — a market-crushing outperformance compared to 213% for the S&P 500. Don't miss the latest top 10 list, available with Stock Advisor, and join an investing community built by individual investors for individual investors.

See the 10 stocks »

*Stock Advisor returns as of August 26, 2026.

Marc Guberti has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Cloudflare. The Motley Fool recommends Palo Alto Networks. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
WTI Crude Oil Price Forecast: Oil Plunges Nearly 5% as US-Iran Talks Expected to Resume, Will It Fall Further? As of the Asian session on August 26, WTI crude oil (USOIL) prices extended yesterday's decline, dropping to an intraday low of $80.26 and approaching the $80 threshold at one point, down
Author  TradingKey
6 hours ago
As of the Asian session on August 26, WTI crude oil (USOIL) prices extended yesterday's decline, dropping to an intraday low of $80.26 and approaching the $80 threshold at one point, down
placeholder
Iran and Oman push talks for ‘interim’ reopening of Hormuz — BloombergIranian Foreign Minister Abbas Araghchi and his Omani counterpart Badr Albusaidi discussed an “interim framework” aimed at resuming shipping through the Strait of Hormuz, Bloomberg reported on Tuesday.
Author  FXStreet
14 hours ago
Iranian Foreign Minister Abbas Araghchi and his Omani counterpart Badr Albusaidi discussed an “interim framework” aimed at resuming shipping through the Strait of Hormuz, Bloomberg reported on Tuesday.
placeholder
US July PCE Data Preview: Core Inflation May Hold at 3.3%, How Will US Stocks, the Dollar, and Gold React?The U.S. will release the U.S. July Personal Consumption Expenditures (PCE) Price Index on Wednesday, August 26, Eastern Time. As a key inflation indicator closely watched by the Federal
Author  TradingKey
Yesterday 10: 19
The U.S. will release the U.S. July Personal Consumption Expenditures (PCE) Price Index on Wednesday, August 26, Eastern Time. As a key inflation indicator closely watched by the Federal
placeholder
Ethereum Price Forecast: BitMine scoops 32K ETH, hints at further gainsEthereum (ETH) treasury company BitMine Immersion Technologies (BMNR) expanded its digital asset holdings last week with another round of acquisitions.
Author  FXStreet
Yesterday 01: 29
Ethereum (ETH) treasury company BitMine Immersion Technologies (BMNR) expanded its digital asset holdings last week with another round of acquisitions.
placeholder
Bitcoin Price Prediction: BTC Breaks $80,000 Mark, What Does It Mean? On August 24, Bitcoin (BTC) prices continued to fluctuate lower, edging up just 0.1% on the day to trade at $77,176. Last Friday (August 21), Bitcoin prices surged toward the $80,000 mark
Author  TradingKey
Aug 24, Mon
On August 24, Bitcoin (BTC) prices continued to fluctuate lower, edging up just 0.1% on the day to trade at $77,176. Last Friday (August 21), Bitcoin prices surged toward the $80,000 mark
goTop
quote