PurposeThe authors study the explanatory power of investor rationality and irrationality for value and momentum portfolios. We also examine the relationships during financial crisis events, namely, the US subprime mortgage crisis (2007–2009) and the European debt crisis (2011–2013).Design/methodology/approachThis study examines the influence of investors’ rationality and irrationality on the US stock market, using the multiple linear regression model and the stepwise regression model. Technically, the stepwise regression uses the machine-learning technique, with specific testing methods — forward selection, backward selection and stepwise selection — to find the best-fit model, according to Akaike’s Information Criterion (AIC). Thus, in this study, we will show the best model, as tested by the stepwise regression model.FindingsOur empirical results contribute to the importance of reasons and emotions for stock-market returns and conclude that rationality and irrationality simultaneously explain the value and momentum portfolios, as well as the ETF portfolios. Also, the rational and irrational explanatory powers differ, depending on portfolios and different periods. Rational factors usually explain the volatility of the return to a greater extent than irrational factors. Moreover, during a financial crisis, the irrational factors remarkably increase their importance in explaining returns, especially for the ETF portfolios.Originality/valueWe expect this study’s contribution will show not only academic contribution but also benefit many stakeholders in the financial market. Investors and traders can identify various irrational factors of trading — for example, taking a long position during the panic in the market following the indicators in the models. Managers also reconsider the cost of the company by adding irrational factors when computing the equity’s expected return. Similarly, stock exchanges can adequately adjust their circuit breaker during a pessimistic-investor period. Finally, regulators can evaluate a complete picture of the stock market by adding irrational factors into their considerations.