The hottest segment of the market right now is memory stocks. This once cyclical industry is now entering a supercycle and is one of the most intriguing ways to play artificial intelligence (AI).
The memory market is on fire
The memory market is split into two parts: DRAM (dynamic random access memory) and NAND (flash memory). Given its speed, DRAM is used for short-term memory, while NAND tends to be used for long-term storage since it is slower. Both markets face significant supply constraints, which are leading to DRAM and NAND prices skyrocketing.
Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now, when you join Stock Advisor. See the stocks »
Image source: Getty Images
For AI chips to perform optimally, they need to be packaged with a special form of DRAM called high-bandwidth memory (HBM). When integrated with HBM, graphics processing units (GPUs) and other AI chips can perform calculations faster because they can quickly store, retrieve, and transfer data using the HBM component. Given the AI infrastructure buildout, HBM, unsurprisingly, is in high demand.
Adding to the market dynamics is that HBM uses three to four times the wafer capacity of conventional DRAM. This is causing a supply shortage across the entire DRAM industry, which is leading to soaring prices not just for HBM, but for the entire DRAM market.
Flash memory, meanwhile, is also in tight supply. The NAND market became very oversupplied a few years ago, and prices crashed to the point where gross margins turned negative. Given this, memory companies began redirecting resources to other areas, lowering their production capabilities. However, with the rise of AI, demand for massive, high-performance solid-state drives (SSDs) using flash memory to store training data began to skyrocket. With memory leaders focused largely on their HBM opportunity, production hasn't come back, and now NAND prices are also through the roof.
Two of the companies best positioned to take advantage of these market dynamics and ready for a bull run are Micron Technology (NASDAQ: MU) and Sandisk (NASDAQ: SNDK).
Micron: A leader in HBM
Micron is a leader in HBM and DRAM, although it also gets about 20% of its revenue from NAND. Its HBM production is basically sold out for this year, and it expects demand to grow at a 40% clip over the next few years.
With DRAM prices climbing, the company is seeing strong revenue growth. More importantly, it's also seeing huge margin expansion, with its gross margin surging from 38.4% a year ago to 56% last quarter. While it is investing to increase capacity, expect the market to remain tight and for the company to see huge growth in the coming years.
Sandisk: A flash memory leader
Sandisk is a pure-play way to invest in the current NAND environment. Like Micron, its revenue and margins are soaring. Last quarter, its revenue jumped 76%, but its adjusted earnings per share climbed fivefold. Its gross margins surged from 32.3% last year to 50.9%.
With demand for NAND increasing and supply likely to remain extremely tight for the foreseeable future, especially as memory companies focus more on HBM, Sandisk has a lot of growth still ahead of it.
Should you buy stock in Micron Technology right now?
Before you buy stock in Micron Technology, 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 Micron Technology 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 $431,111!* 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,105,521!*
Now, it’s worth noting Stock Advisor’s total average return is 906% — a market-crushing outperformance compared to 195% 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 February 4, 2026.
Geoffrey Seiler has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Micron Technology. The Motley Fool has a disclosure policy.