The present invention relates to the Janus kinase (JAK) inhibitors 3-[4-(7H-pyrrolo[2,3-d]pyrimidin-4-yl)-1H-pyrazol-1-yl]octanenitrile or 3-[4-(7H-pyrrolo[2,3-d]pyrimidin-4-yl)-1H-pyrazol-1-yl]heptanenitrile, as well as its compositions and methods of use, which is useful in the treatment of JAK-associated diseases including, for example, inflammatory and autoimmune disorders, skin disorders, cancer, and other diseases.