Cowpea is grown mainly in regions with a hot semi-arid climate, where other pulses do not develop satisfactorily. It is the 4th most produced pulse in the world, thus supplying the domestic and export markets. Following the trends of the food products market, a study was carried out to identify the best condition of the extrusion process, to transform these nutritious grains into quality expanded products and ready for consumption. The grains were decorticated and transformed into cotyledon flour. This flour was conditioned and the Evolum HT25 twin screw extruder feeder was adjusted to a rate of 7 kg h-1. A Box-Behnken 23 design was used, considering the following variables and levels: extrusion temperature from 100 °C to 140 °C (in the 7th to 10th zone), screw speed (300 to 700 rpm) and conditioning moisture from 12% to 16%. The temperature affected linearly and negatively (p ≤ 0.05) the sectional expansion index (2.65 to 7.64). The screw speed interfered linearly and positively (p ≤ 0.05) in the longitudinal (1.12 to 9.32) and volumetric (4.91 to 24.15) expansion index, and negatively with the water absorption index (3.05 to 3.86 g g-1). The screw speed (positive linear and negative quadratic), the moisture content (negative quadratic) and the interaction (positive) between the two interfered (p ≤ 0.05) in the water solubility index (25.89% to 33.85%). The hardness value (1.24 to 2.83 N) was affected (p ≤ 0.05) by screw speed (negative linear and positive quadratic), temperature (negative quadratic), moisture (positive quadratic), and interactions of moisture with temperature and screw speed. To obtain a hardness value close to that of commercial extrudates and high-water solubility, the maximum global desirability obtained was 0.81 for extrusion at 135.6 °C, 700 rpm and 12% moisture.