Artificial intelligence (AI) continues to be one of the driving themes of the stock market. However, there have been some recent AI stock laggards that look like great stocks you can buy and hold for the next decade while they are on sale.

Let’s look at two.

Will AI create the world’s first trillionaire? Our team just released a report on the one little-known company, called an “Indispensable Monopoly” providing the critical technology Nvidia and Intel both need. Continue »

Artist rendering of AI in the brain. Image source: Getty Images.

One of the first companies to push all in on AI, Microsoft (NASDAQ: MSFT) finds itself in a good position despite its lagging stock price. It’s also attractively valued, trading at a forward price-to-earnings (P/E) ratio of about 25 times based on fiscal 2026 analyst estimates (ending June 2026) and below 22.5 times fiscal 2027 estimates.

The company was an early investor in OpenAI and owns an approximately 27% stake, along with privileged access to its intellectual property and AI models through 2032. The ChatGPT maker has also committed to spending $250 billion on computing power with Microsoft’s cloud computing arm, Azure. Azure has been Microsoft’s biggest growth driver, with revenue growing by 30% or more for 10 consecutive quarters, including 39% last quarter.

With large commitments from both OpenAI and Anthropic, growth should remain strong over the next several years.

Meanwhile, Microsoft’s software businesses have also been strong, led by continued adoption of its AI assistant copilots. Last quarter, Copilot seats soared 160%, while daily active users surged 10 times.

Given its cloud computing growth and Copilot strength, Microsoft is a stock to buy and hold for the long term.

Another top AI stock that has lagged over the past year that looks like a long-term buy is Meta Platforms (NASDAQ: META).

Despite the social media giant’s strong growth, the stock trades at a forward P/E of just 23 times based on the 2026 analyst earnings consensus. That’s cheap for a stock that just grew its revenue by 22% in 2025 and expects its revenue growth to accelerate in the first quarter.

Meta has been investing heavily in AI, and it’s been paying off with increased user engagement and better ad conversions. This helped lead to an 18% increase in ad impressions last quarter and a 6% rise in ad prices, with total revenue growth of 24%.

Meanwhile, the company forecast that its Q1 revenue would grow between 26% and 34%, as this momentum should continue.

Meta Platforms is also just starting to introduce ads to its popular WhatsApp messaging platform, which has more than 3 billion users. While most are lower monetizing international users, this is still a huge opportunity. At the same time, it is still in the very early innings of building out and starting to monetize its newest social media platform, Threads.

Between AI and these new ad opportunities, Meta is a stock to buy and hold for the long haul.

Before you buy stock in Microsoft, 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 Microsoft 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 $443,299!* 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,136,601!*

Now, it’s worth noting Stock Advisor’s total average return is 914% — 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 7, 2026.

Geoffrey Seiler has positions in Meta Platforms. The Motley Fool has positions in and recommends Meta Platforms and Microsoft. The Motley Fool has a disclosure policy.

2 Artificial Intelligence Stocks You Can Buy and Hold for the Next Decade was originally published by The Motley Fool