2026-08-07

Cloudflare (NET) Stock Jumps as Much as 18% After Hours on Q2 Beat and Raised Guidance - AI Traffic Now Drives Its Growth

What Happened

After the market closed on August 6, Cloudflare (NYSE: NET), the cloud network and security infrastructure company, reported second-quarter 2026 results that beat expectations across the board. Revenue came in at $696.1 million, up 36% year-over-year and well above both the company's own guidance range of $664-665 million and the roughly $665.5 million analysts had modeled. Non-GAAP earnings per share of $0.29 also topped the $0.27 consensus estimate.

The market's reaction was immediate. Shares spiked as much as 18% in after-hours trading, with various outlets reporting gains ranging from roughly 15% to 17% depending on when the move was measured. The rally was especially notable given the stock's recent path: Cloudflare had already hit an all-time high of $301.33 on August 4, then slipped 3.1% to close at $284.43 in regular trading the day before earnings on profit-taking. Thursday's after-hours pop more than reversed that pullback.

Guidance told an even more compelling story than the quarter itself. Cloudflare raised its full-year 2026 revenue outlook to $2.86-$2.87 billion, up from a prior range of $2.805-$2.813 billion and clearly above the $2.81 billion analyst consensus. Full-year adjusted EPS guidance rose to $1.25-$1.26, from $1.19-$1.20 previously. The company also guided third-quarter revenue to $736-$737 million, ahead of the $722.1 million analysts expected. This wasn't a one-quarter surprise - management raised its outlook for the next quarter and the full year simultaneously.

Why Surging AI Traffic Is Turning Into Revenue for Cloudflare

The core story behind this quarter is a structural shift in how traffic moves across the internet in the age of AI agents. Cloudflare sits at the network edge where traffic for millions of websites and applications passes through, filtering bot traffic, accelerating content delivery, and blocking security threats on behalf of site owners. According to Radar data the company itself has published, automated, non-human requests now account for 57.5% of HTML traffic - the first time machines have generated more traffic than humans. Of that automated traffic, 51.8% comes from AI crawlers scraping content for model training, and the company's own data shows only a tiny fraction of those crawls ever send a human visitor back to the site being crawled.

That shift is both a threat and a business opportunity for Cloudflare. In July 2025, the company launched "Pay Per Crawl," a new billing mechanism that charges AI crawlers a minimum of $0.01 per successful content retrieval and routes that payment back to the site owner - effectively building a toll booth for AI companies that had been scraping content for free. CEO Matthew Prince has framed this as part of a broader thesis, saying AI is "going to fundamentally change the business model of the web." Beyond the crawler-monetization angle, businesses building and running their own AI agents need network infrastructure to securely route and protect the surge of automated traffic those agents generate - and Cloudflare has positioned itself as one of the companies handling exactly that. The results back up the thesis: the number of customers paying more than $100,000 a year grew to 4,698, up 27% year-over-year, with a record 986 net additions in the quarter. That points to AI-related demand spreading broadly across the customer base rather than concentrating in a handful of mega-deals.

A Wider GAAP Loss That Wasn't What It Looked Like

One number in the report looked alarming on its face. GAAP net loss widened to $170.0 million, or $(0.48) per share, compared with a $15 million loss a year earlier, and the GAAP operating loss expanded to $205.7 million, or 29.6% of revenue. Read in isolation, that looks like a contradiction - revenue up sharply, losses up sharply too. But the loss traces directly to a restructuring plan Cloudflare announced this quarter as part of what it's calling an accelerated shift to an "agentic AI-first" operating model. The company is cutting roughly 20% of its workforce, about 1,100 employees, and booked $140-150 million in restructuring charges tied mainly to severance and accelerated equity vesting. Strip out that one-time charge, and the underlying GAAP net loss was closer to $18 million - near breakeven relative to the size of the business.

That distinction is the most important detail in this story. The market largely looked past the headline loss figure and focused instead on the fact that it was a one-time restructuring cost, not a sign of deteriorating operations, with non-GAAP profitability actually coming in ahead of plan. Free cash flow of $56.4 million, equal to 8% of revenue and up 69% year-over-year, reinforced that the company's underlying cash generation wasn't impaired. Gross margin of 73.1%, up 30 basis points sequentially but down 320 basis points year-over-year due to upfront AI infrastructure investment, remains a metric worth watching going forward.

How This Compares to Other AI-Adjacent Earnings Stories

Cloudflare's reaction is worth reading alongside other AI-related software earnings covered on this site recently. Datadog grew revenue 36% and raised full-year guidance too, yet its stock fell about 17% after disclosing that a single nine-figure customer would cut usage starting in the third quarter (Datadog Stock Falls 17% Despite Beat). Cloudflare's growth looks structurally different: rather than resting on one outsized customer relationship, it's spread across thousands of accounts, and the record net addition of large customers this quarter is itself evidence that the growth isn't concentrated in a way that makes it fragile to a single decision.

The story also echoes Shopify's recent earnings reaction, where the company answered fears that AI would disrupt its core e-commerce SaaS business by beating estimates outright and sending the stock up more than 20% (Shopify Surges on AI Disruption Fears). Both companies turned a narrative where AI looked like a threat into one where AI is a direct growth driver - though for Cloudflare, the mechanism is more direct still: AI agents and crawlers generate the traffic that runs through Cloudflare's network in the first place, making it one of the clearer examples of a company positioned in the infrastructure and security layer of the AI value chain, rather than at the application layer where disruption risk is more commonly discussed.

What to Take Away From This

  • A widening GAAP net loss doesn't automatically mean a business is deteriorating. Cloudflare's loss expansion came entirely from a one-time restructuring charge; excluding it, the company was near breakeven. When a loss headline looks alarming, check whether it stems from a one-time item or from ongoing operations before drawing conclusions.
  • AI-driven upside isn't limited to chipmakers and data center operators. The network layer that routes and secures internet traffic can benefit just as directly from AI's growth. When screening for AI-exposed stocks, it's worth looking beyond the visible hardware names to infrastructure companies sitting underneath the traffic itself.
  • How concentrated a company's growth is matters as much as how fast it's growing. The same headline of "AI-driven revenue growth" carries very different risk depending on whether it comes from a handful of massive customers or is spread across a broad base. Metrics like large-customer counts and net additions can help gauge the quality, not just the size, of growth.
  • A restructuring announcement isn't automatically bad news. This round of layoffs was framed as an offensive move to reorganize around AI, not a defensive reaction to weak results, and the market responded accordingly. When restructuring news breaks, it's worth checking whether it's cost-cutting in response to weakness or a deliberate repositioning for growth.

Sources

This article synthesizes and analyzes the reporting below in our own words - it is not a reproduction of the original text. For the latest figures and full detail, please refer to the original sources.

⚠️ This article is for informational purposes only and is not investment advice. Market conditions change constantly - always verify the latest data yourself before making any investment decision.