Wei Yuan (Chinese: 魏源; pinyin: Wèi Yuán; April 23, 1794 – March 26, 1857), born Wei Yuanda (魏遠達), courtesy names Moshen (默深) and Hanshi (漢士), was a Chinese scholar from Shaoyang, Hunan. He moved to Yangzhou in 1831, where he remained for the rest of his life. Wei obtained the provincial degree (juren) in the Imperial examinations and subsequently worked in the secretariat of several prominent statesmen, such as Lin Zexu. Wei was deeply concerned with the crisis facing China in the early 19th century; while he remained loyal to the Qing Dynasty, he also sketched a number of proposals for the improvement of the administration of the empire.
From an early age, Wei espoused the New Text school of Confucianism and became a vocal member of the statecraft school, which advocated practical learning in opposition to the allegedly barren evidentiary scholarship as represented by scholars like Dai Zhen. Among other things, Wei advocated sea transport of grain to the capital instead of using the Grand Canal and he also advocated a strengthening of the Qing Empire's frontier defense. In order to alleviate the demographic crisis in China proper, Wei also spoke in favor of large scale emigration of Han Chinese into Xinjiang.