It is unclear when Sun Guangxian was born. Both the History of Song and the Spring and Autumn Annals of the Ten Kingdoms indicated that he was from Guiping — although the Spring and Autumn Annals of the Ten Kingdoms acknowledged that one of Sun's own works, the Beimeng Suoyan, stated that he was from Fuchun. Sun's family was said to have been farmers for generations, but he himself was studious from his youth. During the time that Later Tang ruled Ling Prefecture, Sun served as the assistant to the prefect of Ling and became known for his abilities. Early in the Tiancheng era of Later Tang's second emperor Li Siyuan, apparently believing that warfare would overwhelm the region, Sun left the region and took up residence in Jingnan Circuit, then ruled by Gao Jixing, who would be the first ruler of the Jingnan state. At that time, he was a Later Tang vassal but intending to effectively rule independently, and so was welcoming capable people to his realm. His chief strategist Liang Zhen recommended Sun to him, and he made Sun his secretary.
At Jingnan
During Gao Jixing's rule
At that time, Gao Jixing was contemplating attacking another Later Tang vassal, Ma Yin the Prince of Chu. Sun pointed out that the Jingnan realm had long been suffering from warfare and had only gained a measure of respite recently under Gao's rule, and that if he engaged in warfare with Chu, he might draw attack from others who would take advantage. Gao agreed, and called off the attack.
During Gao Conghui's rule
Gao Jixing died in 928 and was succeeded by his son Gao Conghui. Initially, Liang Zhen continued to serve as chief strategist, and Gao Conghui honored him as one would an older brother. In or around 935, there was a time when Gao Conghui, hearing of the prosperity of the Chu realm and the luxury living that Ma Yin's son and successor Ma Xifan was exhibiting, commented to his staff, "Prince Ma is truly a man." Sun responded, "There are differences in rank between the Son of Heaven and his vassals. That young, milk-stenched boy is arrogant and wasteful beyond his proper station. He only seeks to satisfy himself for a brief time, and does not care about what happens in the future. His destruction will come soon, and he is not worthy of admiration." Gao Conghui did not initially agree, but after some time, realized what Sun said was right and stated to Sun, "You, Lord, are correct." He also stated to Liang, "I think about what I am enjoying in life, and I believe I already exceed what is proper." So he stopped indulgences, and spent his time studying the Confucian classics and history, while decreasing punishments and taxes. This was said to calm the Jingnan realm. Liang thereafter stated his belief that Gao Conghui has matured to such a point that Gao can govern the state without him, and so sought retirement. After Liang's retirement, Gao entrusted the affairs of the state to Sun.
After Gao Conghui's rule
During the subsequent rules of Gao Conghui's sons Gao Baorong and Gao Baoxu, and Gao Baorong's son Gao Jichong, Sun Guangxian continued to serve as the chief strategist for the state, eventually reaching the rank of deputy military governor of Jingnan — i.e., deputy to the ruler himself, as the rulers of Jingnan continued to carry the title of military governor of Jingnan, as Jingnan remained vassal of the Five Dynasties ruling central China. It was said, though, that when he tried to correct Gao Baoxu's behavior — as Gao Baoxu was prone to building overly luxurious residences, drawing resentment from his people — Gao Baoxu did not listen. In 963, by which time Gao Jichong was Jingnan's ruler and central China was ruled by Song Dynasty's Emperor Taizu, to which Jingnan remained a vassal — there was a disturbance in the Hunan region, as the region's then-ruler Zhou Baoquan was facing a rebellion by his general Zhang Wenbiao. Zhou, who was also the vassal of Song Dynasty, sought aid from Emperor Taizu. Emperor Taizu sent his generals Murong Yanzhao and Li Chuyun south, ostensibly to aid Zhou Baoquan against Zhang, but with the intent of seizing actual control of both the Hunan and Jingnan territories. As Li Chuyun's army headed south, he sent emissaries to Jingnan, asking Gao to allow his army to go through. Gao was apprehensive and initially considered refusing, and his general Li Jingwei recommended ambushing the Song army. Gao, however, was also apprehensive of Li Jingwei's strategy. Sun pointed out that given the relative strengths between Song and Jingnan, resistance would bring disaster, and suggested that Gao instead surrender his realm to Li Chuyun. Gao agreed. Li Chuyun quickly arrived at Jingnan's capital Jiangling Municipality, and Gao surrendered.
During Song Dynasty
After Gao Jichong's surrender to Song, Sun Guangxian was made the prefect of Huang Prefecture. It was said that he governed the prefecture well, and the chancellors were recommending to the Song emperor that he be made an imperial scholar. However, before that could actually happen, Sun died in 968. Sun was a prolific writer, writing many essays and historical writings, the most well-known of which was the Beimeng Suoyan, which modern historians use to supplement the official histories of the Five Dynasties and Ten Kingdoms Period. His sons Sun Wei and Sun Dang were later able to pass the imperial examinations during Song.