Artificial intelligence (AI) stocks have been delivering incredible gains to investors. And with so many companies using AI technology, there's no shortage of investment opportunities.

While businesses involving new technology can be volatile, you don't need to take on outsized risk to get AI exposure. The four companies below are all highly successful and should be long-term winners.

A wide angle shot of a large Nvidia building.

Image source: Getty Images.

1. Nvidia

Nvidia (NVDA -0.12%) is the largest AI chipmaker and the largest company in the world, with a market cap of $4.2 trillion as of July 18. While Nvidia is on the expensive side -- it trades at more than 55 times earnings -- it has also delivered double-digit revenue growth for nine consecutive quarters.

Considering the popularity of Nvidia's graphics processing units (GPUs), a crucial part of generative AI infrastructure, that trend should continue. AI hyperscalers are investing heavily in data centers. They spent $430 billion on data centers in 2024, and that's expected to rise to $1.1 trillion by 2029. Nvidia had a 92% share of the data center GPU market in Q1.

In addition to holding a dominant position in a rapidly growing market, Nvidia is a well-run company with a fantastic company culture, ranking fourth on Glassdoor's list of the best places to work in 2025. Even with a high valuation, this is an excellent business that plays a key role in AI development.

2. Taiwan Semiconductor Manufacturing

Taiwan Semiconductor Manufacturing (TSM 1.60%), often shortened to TSMC, is another company that's essential to chipmaking. Other companies design chips, but TSMC handles the manufacturing. Most of the major semiconductor companies are clients of TSMC, including Nvidia, Advanced Micro Devices, Apple, and Qualcomm.

Rising demand for AI chips has driven substantial revenue growth for TSMC. In Q1 2025, TSMC reported $25.5 billion in net revenue, up 35% year over year. It also grew its profit margin, with earnings per share (EPS) increasing 54% to $2.12.

For a fast-growing tech company, TSMC isn't prohibitively expensive. It trades at less than 28 times earnings at the time of this writing, far cheaper than the Nasdaq-100 index.

3. Alphabet

Alphabet (GOOGL 0.54%) (GOOG 0.45%) had a strong start to the year, as revenue grew 12% year over year to $90.2 billion in Q1 2025. Operating margin increased from 32% to 34%, and EPS increased 49% to $2.81.

You wouldn't know it from Alphabet's share price, which is down 2% on the year. The prevailing sentiment around this tech giant is concern regarding its online search business. Google Search accounted for 56% of its revenue last quarter ($50.7 billion). The growing popularity of ChatGPT and other generative AI chatbots will likely impact that business. If people can get their questions answered by a chatbot, they won't need to search the web as much.

But Alphabet is leveraging AI to improve its products and services. Google Search results now feature AI Overviews, which have 1.5 billion users per month. Google Gemini, while far behind ChatGPT, is the third-largest AI chatbot with a 13.5% market share. I'd expect that number to grow significantly, given that Gemini is now the default AI assistant on devices running Android 10 or later. Android has a 74% share of the mobile operating system market as of June 2025.

Trading at less than 21 times earnings, Alphabet is cheaper than the S&P 500 index. This is a great opportunity to buy one of the top tech companies without paying a premium.

4. Amazon

Amazon (AMZN -0.33%) is best known for its online retail dominance, and it has incorporated AI to streamline its operations. For a recent example, it's the largest manufacturer of mobile robotics and hit a major milestone last month when it deployed its one-millionth robot. The company also introduced a new generative AI model, DeepFleet, which improves the travel time of its robotic fleet through its fulfillment network by 10%.

CEO Andy Jassy said last month that Amazon has more than 1,000 generative AI services and applications in progress or built. This includes tools for customers, sellers, and advertisers who use Amazon and Amazon Web Services (AWS).

Looking at the most recent numbers, Amazon grew net sales by 9% year over year to $155.7 billion in Q1 2025. Growth in EPS was particularly impressive, jumping 62% to $1.59. Even with shares trading at about 37 times earnings, Amazon is a quality AI stock to have in your portfolio.