Cloudflare's First Mass Layoff in 16 Years

There's something a little jarring about a company posting its best revenue quarter ever and, in the same breath, announcing its first large-scale layoff. But that's exactly what Cloudflare did on Thursday, May 8, 2026, during its Q1 earnings call — and the explanation CEO Matthew Prince gave is one that's quickly becoming the defining narrative of this moment in tech.

Cloudflare, which provides internet security and performance services to millions of websites worldwide, announced it was cutting roughly 20% of its workforce. That's approximately 1,100 people, across all teams and all geographies — with one notable carve-out: salespeople carrying revenue quotas were spared. CFO Thomas Seifert confirmed that detail on the call.

For a company that has been operating for 16 years, this was genuinely unprecedented. Prince didn't try to dance around that. He flat-out said, "We've never done something like this in Cloudflare's history."

Record Revenue Alongside a Growing Loss

Here's the number that makes this story so interesting: Cloudflare reported Q1 2026 revenues of $639.8 million — a 34% year-over-year increase and the single highest quarterly revenue in the company's history. That's a genuine milestone.

But alongside that record, the company also posted a net loss of $62.0 million, up from $53.2 million in the same quarter the previous year. So the losses actually widened while revenue surged. It's the kind of paradox that raises eyebrows — a company growing fast but still not consistently profitable.

That said, the picture isn't as bleak as that headline loss might suggest. The loss was a smaller percentage of revenue than before, and Cloudflare reported over $2.5 billion in remaining performance obligations (RPO) — a 34% year-over-year increase. RPO has become a go-to indicator for contracted-but-not-yet-delivered revenue, and a number that size signals serious momentum.

When an analyst pushed Prince on why such deep cuts were necessary after such a strong quarter, his answer was almost disarmingly simple: "Just because you're fit doesn't mean you can't get fitter."

AI as the Engine Behind the Workforce Reduction

Prince was unusually candid about the reasoning behind the cuts, and he didn't frame it as financial distress at all. In a joint blog post with Cloudflare co-founder and COO Michelle Zatlyn, the company said plainly that this was not a cost-cutting exercise and not a performance assessment of the individuals affected. The framing was explicitly about how Cloudflare sees itself operating in what they called "the agentic AI era."

The internal turning point, Prince said, came last November. That's when the company started seeing what he described as massive productivity gains — team members becoming two times, ten times, even a hundred times more productive than they had been before. His metaphor for it: "It was like going from a manual to an electric screwdriver."

And the adoption curve has been steep. Cloudflare's internal use of AI increased by more than 600% in just the three months leading up to the announcement.

How AI Is Being Used Across Every Department

It's not just engineers running AI tools in the background. Prince described a company-wide shift. Virtually the entire R&D team is now using Cloudflare's own Workers platform — a tool that lets developers build and run software directly on the company's global network — including its vibe coding feature. Every line of code produced through that workflow and deployed in Cloudflare's products is, according to Prince, now reviewed by autonomous AI agents.

But the adoption goes well beyond the technical teams. Employees across engineering, HR, finance, and marketing are running thousands of AI agent sessions every day to get their work done. That kind of pervasive internal use changes the math on staffing in a very real way.

The logic Prince laid out goes something like this: if your core workers are dramatically more productive because of AI, you simply need fewer people in the support layers surrounding them. "A lot of the support people that provide support behind them," he said, "those roles aren't going to be the roles that drive companies going forward."

Cloudflare Plans to Keep Hiring — Just Differently

Here's where it gets nuanced, and honestly it's worth sitting with for a second. Prince didn't say Cloudflare was done hiring. He said the opposite — that the company will continue to bring people on and invest in them. His reasoning: the employees who are embracing AI tools are showing a level of productivity the company has never seen before, and that kind of human-AI collaboration is exactly what he wants more of.

He even made a projection: "I would guess that in 2027 we'll have more employees than we did at any point in 2026." Cloudflare ended Q1 2026, before the layoffs, with a headcount of around 5,500.

So the story isn't "AI is replacing humans at Cloudflare." It's more like "AI is reshaping which kinds of roles Cloudflare needs, and the company is making a deliberate structural bet on that shift."

A Pattern Emerging Across Big Tech

Cloudflare isn't alone in this narrative. It joins a growing list that includes Meta, Microsoft, and Amazon — all companies that have reported strong revenue growth alongside significant layoffs, with AI efficiency cited as a key driver in both directions. Whether that framing is an honest account of structural transformation or a convenient justification for cost discipline is, as the broader situation makes clear, a question that investors and employees alike are still working through.