Panin was born on 28 September 1897 in Saint Petersburg. In October 1916, he was drafted into the Imperial Russian Army and became a cadet at the Pavel Military School, graduating with the rank of praporshchik in February 1917. Panin was initially served with the 178th Reserve Infantry Regiment before being sent to the Romanian Front in April, where he fought with the 294th Berezina Infantry Regiment. He was treated in a hospital in Petrograd between September 1917 and January 1918, then demobilized. At the outbreak of the Russian Civil War he joined the Red Army in June 1919, serving as adjutant of the 1st Petrograd Regimental District. From September of that year, Panin served as a company commander of the Red Army detachment on the staff of the Moskovsky-Narvsky district of Petrograd. During this period he fought on the Western Front against the Northwestern Army. Panin became a company commander in the 166th Separate Rifle Battalion in January 1920 and later transferred to command a company of the separate engineer battalion of the Petrograd Military District. In March 1921 he participated in the suppression of the Kronstadt rebellion.
Interwar
After the end of the Civil War Panin served in the Leningrad Military District as a company commander in the 94th Rifle Regiment of the 11th Rifle Division. In 1924 he graduated from the Vystrel courses for military commander training. In February 1926 Panin became a battalion commander of the 59th Rifle Regiment of the 20th Rifle Division, simultaneously serving as assistant regimental commander. He was appointed commander of the division's 60th Rifle Regiment in April 1931. In November 1936, Panin became deputy commander of the 16th Rifle Division. Between July 1938 and October 1939 he served as a military advisor to the National Revolutionary Army in China. In this capacity he advised Zhang Fakui in Xinpu. In late September 1938, he became advisor to the 4th War Area, which was commanded by Zhang Fakui. Panin later advised Bai Chongxi in Guilin.
After returning from China, Panin was appointed commander of the 1st Rifle Corps at Pskov in the Leningrad Military District on 21 October 1939. The corps fought in the Winter War. The three divisions of the corps, part of the 8th Army, were to attack towards Ilomantsi and Korpiselka. The attack pushed the defending Finnish troops back from the border and captured Suoyarvi on 2 December. After capturing Suoyarvi, Panin sent his 155th Rifle Division towards Ilomantsi and the 139th Rifle Division towards Tolvajärvi and Korpiselka. The 155th Rifle Division was stopped by Finish counterattacks in the Mohko-Oinassalmi area. The 56th Rifle Division, after the capture of Suoyarvi, attacked the Finnish positions on the Kollaa and was unable to break through. The 139th Rifle Division fought in the Battle of Tolvajärvi on 12 December and retreated after the battle. On the next day, Panin was replaced by Dmitry Kozlov and transferred to the reserve. In June 1940, Panin was appointed head of combat training for the Leningrad Military District. He was promoted to Major General on 4 June. In March 1941, he became commander of the 42nd Rifle Corps. After the German invasion of the Soviet Union on 22 June, the corps became part of the 14th Army. It fought in the defense of Murmansk during Operation Silver Fox. On 24 August 1941, Panin became commander of the 14th Army, leading it in the defense of Murmansk. He was considered incompetent by Murmansk CPSU Regional Committee First Secretary and 14th Army Military Council member Maxim Starostin and later appointed commander of the 2nd Reserve Army in May 1942. In August 1942 Panin became a senior lecturer at the Frunze Military Academy. In February 1943, he was appointed chief of combat training for the Volkhov Front. Panin became commander of the 7th Rifle Corps of the 59th Army in September, leading it in the Leningrad–Novgorod Offensive and the capture of Novgorod. For his leadership in the offensive Panin was awarded the Order of Kutuzov 2nd class on 21 February 1944. Between April and May 1944 he was commander of the 99th Rifle Corps of the 3rd Baltic Front. In May, Panin was at the disposal of the chief of staff. In June he visited the 3rd Belorussian Front with Aleksandr Vasilevsky. One month later he became deputy commander of the 5th Army, participating in Operation Bagration and the East Prussian Offensive. In February 1945, he was hospitalized and from May 1945 was again at the disposal of the chief of staff.
Postwar
After the war Panin became head of a course at the Frunze Military Academy. He retired in 1949 and died in Moscow on 1 June 1949. He was buried in the Novodevichy Cemetery.