In this article, we will explore the 12 Best Mid-Cap AI Stocks to Buy According to Analysts.
AI stocks continue to take all the limelight in the stock market, with some doubling in the span of just over a month. For many, this sounds like a bubble, and we may agree. However, the AI infrastructure buildout isn’t stopping anytime soon. It is a race that all companies want to win at all costs, and spending is therefore not a major issue for them right now. This ambition continues to provide earnings growth and, as a result, stock price appreciation for many companies.
This sentiment was also reflected by some notable business leaders in the US recently. For example, in an interview with Caroline Woods of TheStreet, fund manager Bill Ackman discussed whether AI was a bubble or a boom. His one-word response was ‘Boom’. He also said:
“We have a massive AI infrastructure buildout… and then AI itself is this very powerful productivity force. Every company today is trying to figure out how to use AI to enhance their business and so there’s a very large… You know, enormous tailwind.”
The CEOs of two major AI model companies also had a similar opinion a few months back. Sam Altman of OpenAI talked about the fast pace of growth when he said his company will have extremely powerful AI models soon. He said the takeoff will be faster than he had originally thought. Anthropic’s leadership has also been pretty vocal about the scale and importance of AI.
This fast-paced infrastructure development is generating a lot of growth among US companies, so we decided to take a look at the 12 best mid-cap AI stocks to buy according to analysts who are significantly benefiting from the AI buildout.

Our Methodology
To identify the 12 best mid-cap AI stocks to buy according to analysts, we compiled a list of stocks from various AI-themed ETFs. We then filtered for stocks with market caps between $2 and $20 billion. We then considered their potential upside according to Wall Street analysts and ranked them in ascending order of their upside.
Why are we interested in the stocks that hedge funds pile into? The reason is simple: our research has shown that we can outperform the market by imitating the top stock picks of the best hedge funds. Insider Monkey’s quarterly newsletter’s strategy selects 14 small-cap and large-cap stocks every quarter and has returned 599.2% since May 2014, beating its benchmark by 372 percentage points (see more details here).
Note: All share price data in the article is as per market close on June 5.
12. Applied Optoelectronics Inc (NASDAQ:AAOI)
Potential Upside: 4.52%
Applied Optoelectronics Inc (NASDAQ:AAOI) is primarily a fiber-optic networking company. While current analyst sentiment has mostly been priced in, the company’s technology, which could become mainstream once data centers move away from copper towards photonics, makes it a major AI beneficiary in the medium term. This is why, despite the limited upside, it has made our list of the best mid-cap AI stocks to buy according to analysts.
The firm receives limited analyst coverage and may therefore go under the radar. After its earnings report on May 7, several analysts updated their price targets, with Rosenblatt Securities’ $220 target the highest, implying 24% upside from here.
On May 14, Applied Optoelectronics Inc. (NASDAQ:AAOI) entered into an Equity Distribution Agreement that would allow the company to issue and sell up to $600 million of its common shares. The money raised from this will be used for corporate purposes like working capital, capital expenditures, and debt repayment. The company has the right to suspend or terminate the program at any time.
The stock is up 300% this year, and it all started with the large order for the 800G single-mode data center transceivers earlier in the year. The company also released its 400-miliwatt narrow-line-width pump laser. This helps transmit data at extreme speeds within the AI data center. While the stock has delivered impressive returns so far this year, the company still has to execute. The Equity Distribution Agreement will go a long way in helping the company stay on course with its ambitious targets.
Applied Optoelectronics Inc (NASDAQ:AAOI) manufactures advanced fiber-optic networking products. While the company was considered a niche component supplier before the AI boom, it is now an integral part of AI data centers, helping develop data centers of the future where data can travel at high speeds through light.
11. UiPath Inc. (NYSE:PATH)
Potential Upside: 15.7%
Raimo Lenschow from Barclays reaffirmed a Hold rating on UiPath Inc. (NYSE:PATH), along with the price target of $14 on June 1. The firm’s price target reflects an additional 33% upside from the current levels. This upside aligns with the median Wall Street analyst estimate of 15.7%, based on coverage from 23 analysts.
UiPath Inc. (NYSE:PATH) reported its first-quarter fiscal 2027 earnings on May 29, posting revenue of $418 million. Annual Recurring Revenue ARR for the quarter came in at $1.901 billion. On the profitability side, GAAP operating income reached $28 million, with non-GAAP operating income of $92 million. Adjusted free cash flow totaled $130 million.
CFO Ashim Gupta highlighted:
During the first quarter, we repurchased 20 million shares at an average price of $11.47 and repurchased an additional 2 million shares at an average price of $9.63 through May 27, 2026.
Going forward, the company expects the second-quarter revenue to range from $395 million to $400 million. In addition, ARR is expected to be between $1.929 billion and $1.934 billion. Non-GAAP operating income is estimated at approximately $75 million.
UiPath Inc. (NYSE:PATH) is a software infrastructure company that provides a range of robotic process automation (RPA) solutions. The company’s primary offering includes its UiPath platform.
10. Hut 8 Corp. (NASDAQ:HUT)
Potential Upside: 15.8%
Hut 8 Corp. (NASDAQ:HUT) started June with a positive update. On June 1, Keefe Bruyette reaffirmed its Outperform rating on the stock and raised its price target. The firm raised its price target on the shares from $89 to $138. According to the analyst, the company’s current valuation already reflects much of the value from its leased data center capacity that is still under development. However, further upside is still expected. This comes from its wider pipeline of power assets and expansion opportunities. These developments could support additional share price gains over the next 12 months.
Earlier, on May 14, Jefferies initiated coverage of Hut 8 Corp. (NASDAQ:HUT) with a Buy rating and a price target of $156. The firm started coverage of four AI data center developers, all of which have roots in the Bitcoin mining industry. According to the analyst, demand for AI data centers remains strong, while access to power continues to be the biggest concern for the industry. Jefferies also pointed to the company’s lease agreement with Fluidstack as a key strength.
Analysts led by Jonathan Petersen commented:
We view HUT as one of the most well-positioned of the new entrants, with highly favorable deals and a proven ability to meet hyperscaler specifications.
Hut 8 Corp. (NASDAQ:HUT) is an energy and digital infrastructure company operating across the United States and Canada. The company operates through four business segments: Digital Infrastructure, Power, Compute, and Others.
9. Core Scientific, Inc. (NASDAQ:CORZ)
Potential Upside: 16%
Bernstein analyst Gautam Chhugani increased the firm’s price target on Core Scientific, Inc. (NASDAQ:CORZ) from $24 to $32 and reaffirmed an Outperform rating on June 3. The price target revision follows an update to the firm’s valuation methodology. Instead of primarily valuing the company based on its Bitcoin mining operations, Bernstein is now assigning greater value to its AI infrastructure business as opposed to the previous Bitcoin mining business, especially as cryptocurrency sentiment is taking a hit.
A similar update came from Nick Giles of B. Riley on May 27, who revised his price target to $33 from $30. The reason wasn’t much different on that occasion either. The firm believes the speed at which the company is winning contracts from hyperscalers is impressive. The firm updated the price target after updating its models with these recent contracts, as well as the quarterly results. Both these analyst updates confirm CORZ’s status as a rising mid-cap AI stock.
Core Scientific, Inc. (NASDAQ:CORZ) operates digital Bitcoin mining and high-performance computing infrastructure. The company leverages its own fleet of computers, called miners, to earn Bitcoin for its own account and also provides hosting services for Bitcoin mining and high-performance computing customers at US-based operational data centers.
8. Modine Manufacturing Company (NYSE:MOD)
Potential Upside: 23.1%
Following its earnings report and announcement of a $4 billion long-term agreement with a data center customer, UBS raised its price target on Modine Manufacturing Company (NYSE:MOD). The firm increased its price target on MOD from $310 to $355 while maintaining a Buy rating on May 28. The upwardly revised price target reflects an additional 28% upside from the current levels.
The analyst believes consensus estimates for the company could move higher in the coming periods as it continues to deliver positive updates. He also highlighted that the stock’s valuation remains attractive. Based on these factors, the analyst expects the stock to have additional upside potential.
Modine Manufacturing Company (NYSE:MOD) released its fourth-quarter fiscal 2026 earnings report on May 27. Supported by a 29% rise in gross profit, Q4 sales grew 47%. On the balance sheet side, the company ended the fiscal year with net debt of $363 million and a leverage ratio of 0.8x. For the full year, capital expenditures reached $143 million, with some data center-related spending expected to shift into the next fiscal year.
Modine Manufacturing Company (NYSE:MOD) operates as a manufacturer, engineer, designer, tester, and seller of mission-critical thermal solutions. The company’s product portfolio includes heat transfer products, data center products, powertrain cooling products, and coatings products & application services. It was founded in 1916 and is based in Racine, Wisconsin.
7. Cognex Corp. (NASDAQ:CGNX)
Potential Upside: 24.1%
On May 26, JPMorgan analyst Tomohiko Sano upgraded Cognex Corp. (NASDAQ:CGNX) from Neutral to Overweight. He also raised the firm’s price target on the stock from $65 to $75. The firm’s adjusted price target offers a further 23% upside from the current levels. It highlighted the company’s continued innovation in AI-powered solutions, which are helping it reach more customers and broaden its market opportunities.
According to the analyst, CGNX is entering a new growth phase driven by its AI-enabled vision technology and expanding its presence across a broader range of end markets. In addition, the company’s ongoing sales model transformation is improving its market reach and is expected to help double its customer base over time.
Cognex Corp. (NASDAQ:CGNX) posted its first-quarter FY26 results on May 7, reporting 21% year-over-year revenue growth. Supported by a favorable product mix and higher sales volume, adjusted gross margin improved 420 basis points to 71.8%. However, these gains were partially offset by tariff-related costs. Adjusted EBITDA doubled from the previous year, coming in at $72 million. During the quarter, the company returned $113 million to shareholders. This included $99 million in share buybacks.
Cognex Corp. (NASDAQ:CGNX) sells machine vision devices that automate production and distribution activities by capturing and analyzing visual data. Its portfolio includes software for advanced programming, technology for developing vision applications, and an image-based barcode reader.
6. Cipher Digital Inc. (NASDAQ:CIFR)
Potential Upside: 33.6%
While Cipher Digital Inc. (NASDAQ:CIFR) received a downward price target revision from Morgan Stanley recently, the stock’s prospects are still healthy for an AI trade. Stephen Byrd of Morgan Stanley brought his price target down to $48.5 from $53.5.
The most recent significant upward revision came on May 6, when H.C. Wainwright raised its price target on Cipher Digital Inc. (NASDAQ:CIFR) to $30 from $25 and maintained a Buy rating on the stock. This bullish price target came after the company announced its Q1 2026 earnings report.
The quarterly report came out on May 5. The company reported a revenue of $34.84 million, a sequential decline from $60 million in Q4 2025. The earnings per share came in at -$0.28, falling short of Wall Street estimates by 21.74%.
Looking ahead, the mining company expects revenue to grow later in 2026, driven by construction milestones, lease conversions, and pipeline contracting. The company estimates earnings per share improvements, with forecasts reaching $0.36 by Q1 2027.
Cipher Digital Inc. (NASDAQ:CIFR) runs large data centers for high-performance computing (HPC) workloads. Originally a Bitcoin mining company, it has since February 2026 shifted its focus to using its infrastructure to meet demand for artificial intelligence and HPC. It was founded in 2021 and is based in New York.
While we acknowledge the potential of CIFR to grow, our conviction lies in the belief that some AI stocks hold greater promise for delivering higher returns and have limited downside risk. If you are looking for an AI stock that is more promising than CIFR and that has 100x upside potential, check out our report about the cheapest AI stock.
Click to continue reading and see the 5 Best Mid-Cap AI Stocks to Buy According to Analysts.
Disclosure: None. Follow Insider Monkey on Google News.






