Born in Ruyang (汝陽), Ru'nan (汝南) commandery (near modern Shangshui, Henan province) to a gentry family, Yuan An inherited knowledge in the Book of Changes from his grandfather Yuan Liang (袁良), who had reached the position of magistrate around 25.