The AI stack map · from SEC filings

AI infrastructure stocks: who gets paid when AI gets built

In the four quarters to Q2 2026, Microsoft, Amazon, Alphabet, Meta and Oracle spent $566B on property and equipment, most of it on data centers for AI. This map of AI infrastructure stocks follows that money down the stack, layer by layer, using only what the companies report to the SEC. It also asks the question that decides whether any of it was a good investment: is the money coming back up?

capital spending by the five largest buyers in the latest four quarters ($184B two years earlier)
$566B
capital spending by the five largest buyers in the latest four quarters ($184B two years earlier)
of their operating cash flow went to capex in Q2 2026 (low: 35% in Q3 2023)
97%
of their operating cash flow went to capex in Q2 2026 (low: 35% in Q3 2023)
of the extra gross profit suppliers earned over two years went to chips and memory
83%
of the extra gross profit suppliers earned over two years went to chips and memory
quarterly revenue at the four big clouds in Q2 2026, +40% in a year
$132B
quarterly revenue at the four big clouds in Q2 2026, +40% in a year

The map

Read the map from the top. Customers pay for software and cloud services. The clouds turn that revenue, and a great deal of their own cash, into capital spending. That spending becomes revenue for the companies that build the systems, wire them together and power them. Those companies buy chips and memory, and the chipmakers in turn pay foundries, which buy tools. Every number on the map is the layer’s own: total revenue over the latest four reported quarters, its change from two years earlier, and the share of revenue kept as gross profit.

Two things don’t fit a top-down picture, and they are the reason this map exists. First, the money has to come back. Capital spending is a cost, not a return; it pays off only if the revenue on the right-hand side of the map keeps rising. Second, some of the money no longer flows one way. Suppliers have started investing in, lending to and guaranteeing their own customers. We trace both below, and each has its own page.

Five things the filings say

1. The spending now uses almost all of the buyers’ cash

In Q3 2023 the five biggest buyers spent 35% of their operating cash flow on capital projects. In Q2 2026 they spent 97%: $182B of capex against $186B of cash from operations, in a single quarter. Four-quarter capex has risen from $184B to $566B in two years.

That changes who is funding the build-out. When a company spends a third of its cash flow, the spending is a choice made with spare money. When it spends nearly all of it, AI competes directly with buybacks and dividends, and at the margin it is paid for with debt. Oracle is already there: $75.7B of capex against $46.9B of operating cash flow over its latest four quarters, so its free cash flow is −$28.7B. CoreWeave spent $20.6B on equipment while booking $7.6B of revenue. Follow the money in detail.

The five biggest buyers now spend almost all their operating cash on capex

Microsoft, Amazon, Alphabet, Meta and Oracle combined, per calendar quarter

  • Operating cash flow
  • Capital spending
  • Depreciation and amortization
$0B$50B$100B$150B$200BQ1 ’21Q4 ’21Q3 ’22Q2 ’23Q1 ’24Q4 ’24Q3 ’25Q2 ’26Cash flow, Q1 ’21: $62BCash flow, Q2 ’21: $75BCash flow, Q3 ’21: $77BCash flow, Q4 ’21: $76BCash flow, Q1 ’22: $66BCash flow, Q2 ’22: $69BCash flow, Q3 ’22: $74BCash flow, Q4 ’22: $79BCash flow, Q1 ’23: $71BCash flow, Q2 ’23: $97BCash flow, Q3 ’23: $110BCash flow, Q4 ’23: $100BCash flow, Q1 ’24: $104BCash flow, Q2 ’24: $115BCash flow, Q3 ’24: $123BCash flow, Q4 ’24: $136BCash flow, Q1 ’25: $120BCash flow, Q2 ’25: $135BCash flow, Q3 ’25: $167BCash flow, Q4 ’25: $181BCash flow, Q1 ’26: $158BCash flow, Q2 ’26: $186BCash flow $186BCapex, Q1 ’21: $28BCapex, Q2 ’21: $32BCapex, Q3 ’21: $34BCapex, Q4 ’21: $38BCapex, Q1 ’22: $37BCapex, Q2 ’22: $38BCapex, Q3 ’22: $41BCapex, Q4 ’22: $42BCapex, Q1 ’23: $37BCapex, Q2 ’23: $35BCapex, Q3 ’23: $38BCapex, Q4 ’23: $44BCapex, Q1 ’24: $46BCapex, Q2 ’24: $56BCapex, Q3 ’24: $61BCapex, Q4 ’24: $76BCapex, Q1 ’25: $78BCapex, Q2 ’25: $97BCapex, Q3 ’25: $106BCapex, Q4 ’25: $131BCapex, Q1 ’26: $148BCapex, Q2 ’26: $182BCapex $182BD&A, Q1 ’21: $10BD&A, Q2 ’21: $10BD&A, Q3 ’21: $11BD&A, Q4 ’21: $12BD&A, Q1 ’22: $12BD&A, Q2 ’22: $12BD&A, Q3 ’22: $13BD&A, Q4 ’22: $16BD&A, Q1 ’23: $17BD&A, Q2 ’23: $18BD&A, Q3 ’23: $19BD&A, Q4 ’23: $21BD&A, Q1 ’24: $19BD&A, Q2 ’24: $20BD&A, Q3 ’24: $27BD&A, Q4 ’24: $30BD&A, Q1 ’25: $29BD&A, Q2 ’25: $32BD&A, Q3 ’25: $36BD&A, Q4 ’25: $41BD&A, Q1 ’26: $43BD&A, Q2 ’26: $46BD&A $46B

Source: company 10-K and 10-Q filings (SEC XBRL). Capex is cash paid for property and equipment; finance leases excluded. Fiscal quarters aligned to the nearest calendar quarter.

Show the numbers
Combined quarterly capex, operating cash flow and depreciation
QuarterCapexOperating cash flowCapex ÷ cash flowD&A
Q1 2021$27.8B$61.6B45%$9.9B
Q2 2021$31.6B$75.4B42%$10.4B
Q3 2021$33.8B$76.9B44%$11.4B
Q4 2021$37.5B$75.9B49%$12.4B
Q1 2022$36.6B$65.6B56%$11.8B
Q2 2022$38.4B$69.2B56%$12.3B
Q3 2022$41.0B$74.0B55%$13.0B
Q4 2022$41.7B$79.3B53%$15.7B
Q1 2023$36.6B$71.0B51%$17.0B
Q2 2023$35.3B$96.9B36%$17.8B
Q3 2023$38.3B$109.8B35%$18.9B
Q4 2023$44.0B$99.8B44%$21.1B
Q1 2024$46.0B$104.5B44%$19.3B
Q2 2024$55.6B$114.6B49%$20.2B
Q3 2024$61.2B$123.0B50%$27.0B
Q4 2024$76.3B$136.3B56%$30.4B
Q1 2025$77.8B$120.2B65%$29.5B
Q2 2025$97.3B$134.6B72%$32.0B
Q3 2025$105.8B$167.1B63%$35.8B
Q4 2025$130.7B$180.9B72%$40.5B
Q1 2026$148.4B$157.9B94%$42.6B
Q2 2026$181.5B$186.4B97%$46.2B

2. The profit pools at two toll booths

Over the past two years the supplier layers we track added $627B of revenue. Of the extra gross profit that came with it, 83% went to just two layers: chips (mostly Nvidia) and memory (mostly Micron). Memory is the bigger surprise. Its gross margin, which swings with the commodity cycle, went from 25% to 75% as high-bandwidth memory became as scarce as the GPUs it sits beside.

Toll booths are where pricing power lives, and pricing power is what an investor is really buying. But toll booths also attract the most effort to get around them: every hyperscaler now designs its own accelerator, and every memory maker is adding capacity. The chips and memory pages look at how durable each booth is.

3. Volume is not value

The server makers and contract manufacturers added $93.9B of revenue over the same two years and kept $12.8B of it as gross profit: 14% of each new dollar. The rest passed straight through to Nvidia, AMD and the memory makers. Supermicro reported $39.1B of revenue in its latest four quarters and −$6.8B of operating cash flow, because the inventory it buys to fill orders ties up more cash than it earns.

If you buy “AI exposure” through the companies that assemble the hardware, you are mostly buying revenue, not margin. That can still work (Dell’s infrastructure segment has roughly doubled its operating income), but the stock is a bet on volume and execution, not on owning a scarce input. Servers and systems explains why.

4. Some of the money now moves in circles

Nvidia reports equity investments of $99 billion in its ecosystem, with $25 billion more committed, and it has agreed to buy back up to $36 billion of cloud capacity from AI clouds that buy its chips. Amazon has a credit line for Anthropic that opens as AWS delivers compute. Microsoft booked $24.1 billion of revenue from OpenAI in its latest fiscal year, after funding $11.9 billion of its investment in the company. AMD gave OpenAI and Meta warrants for up to 160 million shares each at a penny.

None of this is hidden; every item is in a filing, and we quote each one. Vendor financing is an old tool and often a sensible one. But it means some demand at the top of the stack is paid for by the suppliers below it, so reported growth overstates what end customers alone are paying. See every link, quoted.

5. The return is growing, but the bill is growing faster

Revenue at AWS, Microsoft Cloud, Google Cloud and Oracle’s cloud infrastructure reached $132B in Q2 2026, up +40% from a year earlier. That is real money, and the best evidence that AI is starting to pay: Google Cloud’s operating income over the latest four quarters was $31.8B, +198% on the year before. But over the same year the five buyers’ quarterly capex rose +87%.

Capex also arrives on the income statement slowly, as depreciation, over the five or six years the companies say their servers last. In Q2 2026 the five buyers spent 3.9 times what they recorded as depreciation and amortization. Today’s spending is tomorrow’s expense, and margins will have to absorb it. The software page asks whether the customers who are meant to pay for all of this are paying yet.

The eight layers

Each layer page has the companies’ reported numbers side by side, the charts that matter for that layer, what the filings say about its customers and suppliers, and what to watch in the next round of reports.

Tools

How to use the map

Every AI stock sits somewhere on this map, and three questions place it. Which layer is it in, and does that layer sit at a bottleneck or in the flow? Does it keep what it is paid: is its gross margin rising with its revenue, or are new dollars passing straight through? And who pays it, with whose money: does it depend on one or two customers, and does it finance any of them?

Then watch the signals that would change the picture. The buyers’ capex guidance and their capex-to-cash-flow ratio say whether the spending can go on. Cloud segment growth and operating margins say whether it is paying. Gross margins at the toll booths say whether scarcity is easing. New investments, guarantees and warrants in the filings say whether suppliers are carrying more of their customers’ costs. Each layer page ends with what to watch for that layer.

Method and sources

Figures come from SEC filings: quarterly XBRL data for companies that file 10-Ks and 10-Qs, and the annual 20-F for TSMC, ASML, ASE, Arm and Nebius. Revenue, margins and cash flow are totals over each company’s latest four reported quarters, and growth compares them with the four before. Companies report on different fiscal calendars, so anything added up across companies is aligned to the nearest calendar quarter: Nvidia’s quarter to late July counts as the June quarter. Data last pulled October 30, 2026.

Capital spending is cash paid for property and equipment, as reported in the cash-flow statement. It leaves out equipment acquired under finance leases, which several buyers use heavily, so it understates their total commitment. Segment figures (AWS, Google Cloud, Microsoft Cloud, Nvidia’s data-center revenue) come from the XBRL facts in each 10-K and 10-Q. Links between companies are quoted from the filing that states them, with a link to the document. Layer totals add up only the companies listed on each layer page with at least $100 million of revenue, so they show direction and proportion, not the whole market.

Free · quarterly · from SEC filings

Get the AI Stack Report every quarter

After each Big Tech earnings season we update the map from the new filings and publish what changed: who spent, who got paid, who kept it and what the filings reveal about the loop. Free, in Rob May’s Investing in AI newsletter.

Form not showing? Subscribe on Substack. No spam; unsubscribe any time.

Questions about the AI stack

What are AI infrastructure stocks?

Publicly traded companies whose revenue comes from building and running the data centers AI depends on: the cloud buyers that fund them, and the makers of chips, memory, servers, networking, power equipment and chipmaking tools. This map covers 78 of them across eight layers, using only their SEC filings. It describes what each reports; it doesn’t recommend buying or selling any of them.

What is the AI stack?

It is the chain of companies that turn spending on artificial intelligence into physical infrastructure and back into revenue. At the top are the software companies and cloud customers who pay for AI. Below them are the clouds that buy the equipment, then the makers of servers, networking gear and power systems, then the chip and memory makers, and at the bottom the foundries and toolmakers that every chip passes through. We group it into eight layers and follow the money between them.

How much are the big tech companies spending on AI data centers?

Microsoft, Amazon, Alphabet, Meta and Oracle reported $566B of capital spending in the four quarters to Q2 2026, up from $184B two years earlier. Not all of it is for AI, and the companies don’t split it out, but their filings attribute most of the increase to AI and cloud infrastructure. The figure is cash capex; equipment acquired under finance leases comes on top.

Which companies have made the most money from AI spending so far?

By reported gross profit, the chip and memory makers. Over the past two years, 83% of the extra gross profit earned by the supplier layers we track went to those two layers, led by Nvidia and Micron. Companies that assemble servers grew revenue quickly but kept only a small share of it.

Why do AI server makers have such low margins?

Most of the cost of an AI server is the GPUs, memory and networking chips inside it, which the server maker buys from suppliers with far more pricing power. The assembler adds integration, cooling and service, which customers value, but competitors can match. So revenue rises with every rack shipped while gross margin stays in the teens.

What is circular financing in AI?

It is when a supplier helps pay for its own customer’s purchases: by investing in the customer, lending to it, guaranteeing its leases, agreeing to buy back capacity it can’t sell, or giving it shares through warrants. Nvidia, Amazon, Microsoft, AMD and HPE all disclose arrangements like this. They are legal and disclosed, but they mean some reported demand is funded by the sellers themselves.

Is AI capital spending sustainable?

The filings show it is getting harder to fund from cash flow alone. The five biggest buyers spent 97% of operating cash flow on capex in Q2 2026, against 35% in Q3 2023. Cloud revenue is growing fast, but not yet as fast as the spending. Whether that is sustainable depends on whether cloud and AI software revenue keeps compounding while the new equipment is depreciated.

Where does the data on this page come from?

From the companies’ own SEC filings: 10-K and 10-Q financial data in XBRL form, segment figures from the same filings, annual 20-F reports for foreign issuers, and quoted sentences for every link between companies. No estimates, consensus figures or paid data are used.

Does this tell me which AI stocks to buy?

No. This is research on how the industry’s money moves, not a recommendation. It can help you see where a company sits, how much of what it is paid it keeps, and who it depends on, which are the questions to answer before you think about price. Nothing here considers valuation or your circumstances.

Research and education, not investment advice: nothing here is a recommendation to buy or sell any security. Figures come from companies’ SEC filings as reported; companies named were chosen because they show how the stack works, not as a view on their shares.