The presence of antinutrients and undesirable flavours in kidney bean flour poses challenges to consumer acceptance. Although extrusion can mitigate antinutrients to some extent, its impact on reducing beany flavour in bean flour remains underexplored. This study investigated the effects of injecting acetic acid or sodium carbonate solutions at three concentration levels (0.05, 0.1, 0.15 mol/L), in conjunction with three temperature profiles (40/60/80/80/90, 40/60/80/90/110, 50/70/90/110/130 °C) and two feed moisture levels (25, 30 %), on the removal of antinutrients (condensed tannins, trypsin inhibitor activity, phytic acid, raffinose family oligosaccharides) and reduction of volatile compounds that contribute to beany flavour in whole kidney bean flour. The results showed that all concentrations of acetic acid and sodium carbonate solutions effectively reduced condensed tannins compared to water, especially at 130 °C extrusion temperature. Introducing acetic acid and sodium carbonate solutions at a concentration of 0.15 mol/L led to 72 and 90 % reduction of total raffinose family oligosaccharide content, respectively, in contrast to the 17 % reduction observed with water alone. The incorporation of sodium carbonate solution reduced the total volatile compounds by 45–58 % as compared with water (23–33 %) and acetic acid (11–27 %). This reduction was primarily due to the reduction of aldehydes, alcohols, and aromatic hydrocarbons. These results indicate that injecting sodium carbonate solution during extrusion can effectively reduce antinutrients and beany flavour compounds in kidney bean flour.