Thick-walled cylindrical and spherical pressure vessels are often subjected to autofrettage, a process in which the vessel is loaded at the inner wall to cause a partial or complete plastic deformation emanating from the inner wall, followed by unloading. This introduces the beneficial compressive residual stresses in the vicinity of the inner wall. Depending on the type of the loading, there are five different types of autofrettage processes— hydraulic, swage, explosive, thermal and rotational. This article analyzes the rotational autofrettage, in which the cylinder to be autofrettaged is loaded by rotating it about its longitudinal axis. The centrifugal forces cause the required plastic deformation in the cylinder. Hence, when the cylinder is unloaded by bringing it to rest, compressive hoop residual stresses are introduced in the vicinity of its inner wall. When long cylinders are rotated about their axes, the distribution of axial stress changes with length of the cylinder and affects the generation of the residual stresses in the autofrettaged cylinder. This effect is investigated here by a finite element method (FEM) analysis of rotational autofrettage of cylinder made up of A723 gun steel. The FEM analysis using ABAQUS® package reveals the presence of tensile axial residual stresses in the vicinity of the inner wall of the cylinder, which increase with length. The tensile residual stresses can be mitigated by constraining the ends of the cylinder during the rotational autofrettage.