ASML's (ASML -7.09%) stock recently hit an all-time high as the global chip shortage highlighted the Dutch company's indispensable role in producing the world's most advanced chips.

However, investors might be reluctant to buy ASML after it rallied more than 140% over the past 12 months. Is it too late to buy ASML at these levels, or does this hot chip stock still have room to run?

What does ASML do?

ASML is the world's top manufacturer of photolithography machines, which are used to etch circuit designs onto silicon wafers. It's also the world's only supplier of top-tier EUV (extreme ultraviolet) lithography machines, which are used to manufacture the industry's smallest 5nm and 7nm chips.

An ASML trainer examines an EUV machine.

Image source: ASML.

TSMC (TSM -0.55%), the world's most advanced contract chipmaker, started using ASML's EUV machines before its rival foundries. That early adoption enabled TSMC to pull ahead of Samsung and Intel (INTC -1.60%) in the "process race" to manufacture smaller and denser chips.

TSMC is ASML's largest customer today, but Samsung and Intel are now scrambling to upgrade their plants, which involves securing more EUV systems from ASML. The company's next generation of high-NA EUV machines (where NA refers to the breaking index of the machine, a technical measure of how detailed the lithography images can be) will also enable those top foundries to manufacture even smaller chips.

In other words, the world's leading foundries are buying ASML's EUV machines as quickly as it can produce them, and ASML's monopoly gives it plenty of pricing power. Therefore, ASML will continue to profit from the rising capital expense budgets at TSMC, Samsung, and Intel as the process race heats up again.

How fast is ASML growing?

ASML's gross margins have consistently expanded over the years. Its revenue and earnings growth has also accelerated significantly since 2019, when a glut of memory chips temporarily throttled its growth.

Period

FY 2017

FY 2018

FY 2019

FY 2020

1H 2021

Revenue Growth (YOY)

33%

22%

8%

18%

45%

Gross Margin

44.9%

46%

44.7%

48.6%

52.4%

EPS Growth (YOY)

42%

27%

1%

38%

110%

Source: ASML. YOY = Year-over-year.

Analysts expect ASML's revenue and earnings to rise 34% and 57%, respectively, this year. Next year, they expect its revenue and earnings to increase by 15% and 21%, respectively.

That growth will be driven by three main tailwinds: the ongoing chip shortage, which many analysts believe will last through2023; surging capital expenses at TSMC and Intel, and the increasing mix of higher-margin EUV machines (59% of its net bookings last quarter) on ASML's top and bottom lines.

At its last investor day in 2018, ASML estimated it would generate 15 billion euros ($17.7 billion) to 24 billion euros ($28.3 billion) in annual revenue by 2025. Analysts expect the company to surpass the low end of that forecast this year with 18.8 billion euros ($22.2 billion) in revenue. ASML will likely update that long-term forecast at its next investor day on Sept. 29.

What could go wrong?

ASML's business is firing on all cylinders, but its stock isn't cheap at 46 times next year's earnings and 14 times next year's sales. The bulls will claim its strengths justify those higher valuations, but they won't provide the stock with much downside support if the market crashes.

The semiconductor market is also cyclical, and chip shortages frequently lead to chip surpluses. TSMC, Intel, and Samsung will likely resolve the current chip shortage by significantly boosting their capacity, but they could end up manufacturing too many chips as the market's demand cools off again.

The bulls will claim the current chip shortage is fueled by a "supercycle" of growth in the semiconductor market, which could last much longer than previous cycles due to the secular expansion of newer technologies like 5G networks, data centers, connected cars, and Internet of Things devices.

However, there's no way to tell how long this cycle will actually last until the chip shortage is resolved. If a chip surplus occurs, ASML's growth could decelerate and its stock could tumble.

Is it too late to buy ASML's stock?

I believe ASML's stock will continue rising because it's a linchpin of the semiconductor market and the chip shortage is far from over. However, I don't think it will double or triple again in the near future since its valuations are getting stretched. Simply put, it's not too late to buy ASML stock -- but investors should have realistic expectations and recognize the threat of a potential semiconductor oversupply in the near future.