In the summer of 1945, the division was withdrawn to Stryi as part of the 73rd Rifle Corps of the 52nd Army. On 25 July 1946, the 254th Rifle Division became the 27th Mechanized Division. After 52nd Army was used to form the 8th Tank Army, the division and its corps were transferred to the 13th Army. The division became part of the 38th Army for Operation Whirlwind, the suppression of the 1956 Hungarian Revolution. The division's 97th Mechanized Regiment reinforced the Special Corps, fighting in Budapest. The division and other troops from the 38th Army covered the right bank of the Danube on the Austrian and Yugoslavian borders. After the end of Operation Whirlwind, the division became part of the new Southern Group of Forces in Hungary. The division was located at Székesfehérvár. On 20 April 1957, the division became the 27th Motor Rifle Division. On 11 January 1965, the division was renumbered the 254th Motor Rifle Division, restoring its World War II designation.