Cloudflare (NYSE: NET) experienced a dramatic after-hours rally on Thursday, with shares climbing 17.8% to $335, a level that surpasses the highest price target set by Wall Street analysts. The surge followed the company's second-quarter earnings report, which revealed revenue growth of 36% year-over-year and a raised outlook for the remainder of 2026.
The stock's post-market performance was particularly notable given that it had closed the regular trading session down 2.9% at $284.43. The after-hours move pushed the shares above FactSet's previous top target of $330 and placed them 15.5% above the consensus analyst target of $290. Based on the company's share count as of June 30, this rally added approximately $18 billion in implied equity value, a figure that represents nearly 310 times the $58 million increase in the full-year revenue outlookâa clear signal that investors are pricing in substantial growth beyond 2026.
Strong Q2 Performance Across Key Metrics
Cloudflare's second-quarter results beat expectations on multiple fronts. Revenue reached $696.1 million, surpassing the consensus estimate of $664.7 million by 4.7% and marking a 36% increase from the same period last year. Adjusted earnings per share came in at $0.29, exceeding the $0.27 consensus by 7.4% and up 38% year-over-year. The company also reported strong free cash flow of $56.4 million, a 69% increase from $33.3 million in the prior-year quarter, with the free-cash-flow margin expanding to 8% from 6%.
However, some metrics showed signs of easing. Adjusted gross margin declined by 3.2 percentage points to 73.1%, and adjusted operating margin slipped slightly to 13.8% from 14.1%. The company's current remaining performance obligations (RPO) growth came in at 35%, up 2 percentage points from a year earlier, indicating continued demand for its services.
AI-Driven Restructuring and Strategic Shift
CEO Matthew Prince framed the company's recent moves as part of a broader transformation, describing the shift toward AI answer engines and agent commerce as "a fundamental rewrite of the Internet for machine-to-machine traffic." Cloudflare is investing in infrastructure, controls, developer tools, and payment systems to capitalize on this emerging market.
The company's GAAP operating loss widened to $205.7 million, largely due to $150.7 million in restructuring and related charges. These charges stem from an AI-driven restructuring announced in May, which involved eliminating approximately 20% of the workforce, or over 1,100 jobs. Excluding these items, operating income rose 33% to $96.1 million, demonstrating underlying profitability improvements.
Raised Guidance for Q3 and Full Year
Management raised its guidance for all key full-year metrics, with third-quarter projections also exceeding pre-announcement consensus estimates. For Q3, the company expects revenue in the range of $736 million to $737 million, representing a 2.1% increase over the consensus of $721.3 million. Adjusted EPS guidance of $0.34 is 6.3% above the consensus of $0.32. Full-year revenue guidance was increased by $58 million to a range of $2.864 billion to $2.870 billion, while adjusted operating income guidance rose by $24.5 million to $443 million-$445 million, and adjusted EPS guidance increased by $0.06 to $1.25-$1.26.
The midpoint for third-quarter operating income implies an adjusted margin of 17.6%, roughly 3.8 percentage points higher than the previous quarter, suggesting improved operating leverage following the restructuring.
Valuation and Market Reaction
At the after-hours price of $335, Cloudflare's implied equity value stands at approximately $119.2 billion, or about 41.6 times the updated fiscal year 2026 revenue midpoint. This valuation multiple remains a point of debate among investors, especially as growth is expected to moderate. The company's third-quarter guidance points to revenue growth of roughly 31%, down from 36% in Q2.
Analysts had been largely bullish on the stock ahead of the results, with 26 buy or overweight ratings and 11 neutral or negative recommendations, according to FactSet. The stock's response stood in sharp contrast to Datadog (NASDAQ: DDOG), another cloud infrastructure firm that reported similar revenue growth of 36% but saw its shares fall 19.1% after investors focused on reduced usage by a major AI customer and slower growth forecasts.
The after-hours rally lifted Cloudflare's stock 20.1% from its closing price on July 31. Investors will now look ahead to the July employment report due Friday, followed by CPI data on August 12 and producer prices on August 13, which could influence broader market sentiment.
Risks remain, including the fact that the after-hours price has already surpassed all FactSet forecasts, narrowing gross margins, and a projected slowdown in growth. Execution challenges from the workforce restructuring and sensitivity to interest rates in software valuations also persist. Nevertheless, Cloudflare's strong Q2 performance and raised outlook have clearly resonated with investors betting on the company's AI-driven future.



