In this paper, numerical investigations are carried out to study the effect of aspect ratios (AR = length/height) for flow past three rectangular cylinders aligned inline at different gap spacings (g) using lattice Boltzmann method. The aspect ratio is varied between 0.25 and 3, gap spacing is taken in the range from 0.5 to 7 and the Reynolds number is fixed at 150. With the help of present numerical investigation, it is found that the variation of forces with different AR and g is governed by six distinct flow patterns: (1) shear layer reattachment flow; (2) steady flow; (3) quasi-steady flow; (4) strongly interactive vortex shedding flow; (5) two-row vortex street flow; and (6) critical flow pattern. It is observed that the development of vortices, interferences of the free shear layers and the wake vortices distribution of three cylinders play a vital role in the variation of shedding frequencies and fluid forces. Consequently, the cylinders placed at downstream usually experience serious fluctuating forces due to unsteady wakes generated by the upstream cylinders. Also, the upstream cylinder normally experiences larger mean drag force as compared to the downstream ones. The sudden jumps in mean drag coefficients and Strouhal numbers with their maximum and minimum values are identified, respectively. The upstream and middle cylinders force coefficients strongly affected due to critical aspect ratios at different fixed gap spacings. It is observed that the wake transition at early stages significantly changes by changing the aspect ratios for fixed gap spacings. The results also show that the middle and downstream cylinders experience negative drag force for some aspect ratios and gap spacings. Furthermore, the dependence of the critical gap spacing on the aspect ratios is also discussed.