Just three weeks ago, on Aug. 6, shares of O'Reilly Automotive (ORLY 2.35%) closed at their highest price ever at $104.44 each. And considering the stock is within 2% of its all-time high as I write this, it's possible that O'Reilly Automotive stock will have already hit a new all-time high by the time you read this.
O'Reilly Automotive stock isn't only reaching all-time highs, it's also cruising past the returns for the S&P 500. Over the last five years, the S&P 500 has increased by 88%, which isn't bad at all. But investors made much more money invested in O'Reilly considering its shares have climbed by 230% over this time.
Image source: Getty Images.
Experienced investors know that high-growth businesses usually outperform the market as O'Reilly Automotive stock has. But in this case, the company has only averaged about 9% annual top-line growth over the last five years. That's positive but somewhat modest for a stock that has performed so well.
The difference-maker for O'Reilly Automotive's shareholders is its stock buyback program. At the start of 2020, the company had about 76 million shares outstanding. But at the end of 2024, it had only 58 million -- a reduction of 24%.
By dropping its share count at a steady rate, O'Reilly's earnings per share (EPS) have increased enough to carry the stock to a strong market-beating performance.

NASDAQ: ORLY
Key Data Points
What's next?
O'Reilly Automotive operates a retail chain of nearly 6,500 locations selling automotive repair and maintenance products. And there's really not much reason to believe that the stock won't continue to perform well for shareholders. Even in a somewhat slower sales environment, management expects to report a full-year increase for same-store sales in 2025.
O'Reilly Automotive also continues to expects strong profit margins and will continue to buy back stock. It's been a winning combination in the past and will likely keep driving positive returns for investors from here.