The stock market in Iran is one of the most profitable markets for investment. However, identifying and selecting valuable and suitable stocks for investment remains a significant challenge for investors. The aim of this paper is to identify the best investment alternatives among rail transportation companies listed on the stock market. In this research, after examining rail transportation companies as potential investment alternatives, key indicators favored by investors for stock purchasing—including Price-to-Earnings Ratio (P/E), Net Profit Margin, Return on Assets (ROA), Market Value, and Dividends Per Share (DPS)—were analyzed. Next, using the Analytic Hierarchy Process (AHP) method, the selected alternatives were prioritized. In this study, criteria were weighted based on the Analytic Hierarchy Process, and indices were calculated using stock market data. The data were analyzed using Expert Choice software, and investment alternatives were ranked. Additionally, sensitivity analysis of the indices was employed to evaluate the final ranking of the alternatives. The results of this research demonstrate that the Analytic Hierarchy Process can significantly assist investors in selecting the best stocks among rail transportation companies and reducing investment risk. The findings are also applicable for investors and economic decision-makers.