These two tech stocks are built to perform fairly well financially even if a recession hits.
They also have tailwinds that could help them generate attractive returns beyond the next downturn.
Many investors fear a recession is on the horizon, given soaring oil prices and rising geopolitical tensions. Some are deciding to stay away from equities, especially from tech stocks, a sector that doesn't exactly have a reputation as a safe haven during economic downturns. However, there are attractive tech stocks that can perform relatively well even during challenging economic times and, more importantly, produce outstanding returns thereafter. Let's consider two companies that have what it takes to pull that off: Microsoft (NASDAQ: MSFT) and Netflix (NASDAQ: NFLX).
Image source: Getty Images.
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 »
Microsoft has significantly lagged broader equities over the past six months. Although its financial results remain strong, the company's massive capex spending is a significant concern for many investors, especially if a recession hits. However, as far as tech stocks go, Microsoft is a pretty good choice to hold during a recession. Here are three reasons why. First, some of the company's services won't suffer much in an economic downturn.
Microsoft's productivity suite is entrenched in the day-to-day operations of millions of companies, and they can't stop using it without risking business disruptions, even during a recession. The tech leader benefits from high switching costs in this niche. Second, Microsoft has an outstanding financial position. The company boasts the highest credit rating from S&P Global, a rare achievement that even the U.S. government currently doesn't have.
Third, Microsoft has shown in the past that it can quickly pivot and cut spending if need be to preserve its margins when expenses rise and demand for some of its products and services cools off somewhat. These (and other) aspects of the business should allow it to navigate a recession fairly well. But there are also other reasons to invest in Microsoft, notably its leadership in cloud computing and artificial intelligence (AI). We could still be in the early innings of these massive growth opportunities that could grant the company important long-term tailwinds.
So, the stock might be declining right now, but it is well-positioned to weather whatever storm is coming and perform well long after. That's why it is worth investing in the stock right now.
People need to entertain themselves even during recessions. That's where Netflix comes in. The company leads the streaming industry, which has now captured a significant share of television viewing time in some major markets like the U.S. Netflix offers several subscription options, including a low-priced ad-supported tier that starts at $8.99 per month and can help attract price-sensitive customers, especially during challenging economic times. Management has highlighted that the entertainment industry is fairly recession-resistant.
As Netflix's co-CEO, Greg Peters, said last year:
We also take some comfort in the fact that entertainment historically has been pretty resilient in tougher economic times. Netflix specifically also has been generally quite resilient, and we have not seen any major impacts during those tougher times, albeit, of course, over a much shorter history.
Now, that doesn't mean there will be no impact on the business at all if we do experience an economic downturn soon. New subscriptions will likely be lower than they would be otherwise, while the company could see a drop in ad demand on its platform. However, Netflix's dominance in streaming, multiple subscription options, and strong brand name and pricing power should allow it to retain the bulk of its subscribers and navigate a recession fairly well.
These strengths also make the company's prospects excellent. Although streaming has gained significant traction, there remains plenty of white space in the industry. As the leader in this niche, Netflix is well-positioned to capitalize on the continued growth of streaming, especially as it expands into new areas, such as sports. Netflix stock has already delivered outstanding returns over the past decade, and it could do so again regardless of whether a recession is on the horizon.
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 $518,530!* 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,069,165!*
Now, it’s worth noting Stock Advisor’s total average return is 915% — a market-crushing outperformance compared to 183% 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.
*Stock Advisor returns as of April 1, 2026.
Prosper Junior Bakiny has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Microsoft and Netflix. The Motley Fool has a disclosure policy.