Inflorescence architecture dictates the number of flowers and, ultimately, seeds. The architectural discrepancies between two related cereals, barley and wheat, are controlled by differences in determinacy of inflorescence and spikelet meristems. Here, we characterize two allelic series of mutations named intermedium-m (int-m) and double seed1 (dub1) that convert barley indeterminate inflorescences into wheat-like determinate inflorescences bearing a multifloreted terminal spikelet and spikelets with additional florets. INT-M/DUB1 encodes an APETALA2-like transcription factor (HvAP2L-H5) that suppresses ectopic and precocious spikelet initiation signals and maintains meristem activity. HvAP2L-H5 inhibits the identity shift of an inflorescence meristem (IM) to a terminal spikelet meristem (TSM) in barley. Null mutations in AP2L-5 lead to fewer spikelets per inflorescence but extra florets per spikelet. In wheat, prolonged and elevated AP2L-A5 activity in rAP2L-A5 mutants delays but does not suppress the IM−TSM transition. We hypothesize that the regulation of AP2L-5 orthologs and downstream genes contributes to the different inflorescence determinacy in barley and wheat. We show that AP2L-5 proteins are evolutionarily conserved in grasses, promote IM activity, and restrict floret number per spikelet. This study provides insights into the regulation of spikelet and floret number, and hence grain yield in barley and wheat.