Wang Ping went to Luoyang with Du Hu and Pu Hu and became an acting Colonel; he came with Cao Cao on the campaign against Hanzhong and took the opportunity to surrender to the Former Lord, who appointed him General of the Standard (yamen jiang) and Subordinate General (pi jiangjun). Records, Shu 13 §35
In the 6th year of Jianxing (228) he was assigned to the vanguard of Army Adviser (canjun) Ma Su. When Ma Su abandoned the water and went up the hill, and his dispositions were confused and disorderly, Wang Ping repeatedly remonstrated with him, but Ma Su would not listen and suffered a crushing defeat at Jieting. The troops all scattered, but the 1,000 men under Wang Ping alone beat their drums and held their ranks, so the Wei general Zhang He, suspecting an ambush, did not close in. Wang Ping slowly gathered the stragglers from the various camps and led the officers and men back. Records, Shu 13 §35–36
Zhuge Liang executed Ma Su and the generals Zhang Xiu and Li Sheng and stripped General Huang Xi and others of their troops, but he singled out Wang Ping for distinction, making him Army Adviser in command of the Five Divisions and in charge of camp affairs, promoting him to General Who Suppresses Bandits (taokou jiangjun), and enfeoffing him as a precinct marquis. Records, Shu 13 §36
In the 9th year of Jianxing (231), when Zhuge Liang besieged Mount Qi, Wang Ping separately held the southern siege lines. Sima Yi of Wei attacked Zhuge Liang and Zhang He attacked Wang Ping, but Wang Ping held firm and did not budge, and Zhang He could not overcome him. Records, Shu 13 §37
In the 12th year of Jianxing (234), when Zhuge Liang died and the army was withdrawing, Wei Yan rose in revolt. Wei Yan seized the mouth of the Southern Valley and sent troops to attack Yang Yi and the others, who put He Ping (Wang Ping) in front to hold him off. He Ping rebuked Wei Yan's vanguard: "The Chancellor has died and his body is not yet cold—how dare you do this!" and Wei Yan's troops scattered. The Biography of Wang Ping records that Wei Yan's defeat in a single battle was Wang Ping's achievement. Records, Shu 13 §38Records, Shu 10 §63–64
He then became Rear Army Supervisor (hou dianjun) and General Who Pacifies Han, stationed in Hanzhong as deputy to General of Chariots and Cavalry Wu Yi, and concurrently Administrator of Hanzhong. In the 15th year (237) he was advanced to Marquis of Anhan and took over from Wu Yi the supervision of Hanzhong. In the 1st year of Yanxi (238), when General-in-Chief Jiang Wan was stationed at Mianyang, he became Protector of the Army of the Front and handled the affairs of Jiang Wan's headquarters, and in the 6th year (243), when Jiang Wan returned to Fu County, he became Army Supervisor of the Front and General-in-Chief Who Guards the North, in command of Hanzhong. Records, Shu 13 §38
In the spring of the 7th year of Yanxi (244), General-in-Chief Cao Shuang of Wei headed for Hanchuan with more than 100,000 infantry and cavalry, and his vanguard had already reached the Luo Valley. The troops guarding Hanzhong numbered fewer than 30,000, and the generals were greatly alarmed; some proposed holding only the two cities of Hancheng and Lecheng and waiting for relief from Fu County. Wang Ping said that Fu was nearly 1,000 li from Hanzhong and that it would be a disaster if the enemy took the pass; he proposed sending Protector of the Army Liu Min and others ahead to occupy Xingshi while he himself held the rear. Only Liu Min agreed with him, and the plan was carried out at once; when the armies from Fu and Fei Yi from Chengdu arrived one after another, the Wei army withdrew. At this time Deng Zhi in the east, Ma Zhong in the south, and Wang Ping on the northern frontier all won renown for their achievements. Records, Shu 13 §39–40Records, Shu 14 §17Records, Shu 3 §24
Having grown up in the army, Wang Ping could not write, and the characters he knew did not exceed ten, yet the documents he dictated were all meaningful and well reasoned. He had others read the Records of the Grand Historian and the Book of Han to him and fully grasped their main ideas. He kept to rules and regulations, did not jest, and sat upright from morning till evening, but his narrow, suspicious nature and his tendency to hold himself cheaply were his failings. He died in the 11th year of Yanxi (248), and his son Wang Xun succeeded him. Records, Shu 13 §41
In his assessment, Chen Shou named Wang Ping together with Huang Quan, Li Hui, Lü Kai, Ma Zhong, and Zhang Ni, saying that Wang Ping was loyal, brave, and strict, and writing that all of them made their names and achievements through their particular strengths because they met with the right times. Records, Shu 13 §65