The crystal structure of palbociclib (C24H29N7O2) used as a medication for the treatment of breast cancer has been solved and refined using synchrotron radiation after density functional theory optimization. Palbociclib crystallizes in the monoclinic system (space group P21/c, #14) at room temperature with crystal parameters: a = 11.3133(2), b = 5.62626(9), c = 35.9299(9) Å, β = 101.5071(12), V = 2241.03(8) Å3, and Z = 4. The crystal structure contains infinite N–H⋯N bonded layers. The powder pattern has been submitted to ICDD for inclusion in the Powder Diffraction File™ (PDF®).