Scotland needs almost 500,000 migrants over the next 20 years to achieve the same age balance as the UK, according to the Treasury.
It means an independent Scotland would have to treble its rate of net annual migration to reach the same ratio of pensioners to working-age adults as Britain.
The ageing population is one of five key areas considered in the Treasury's latest analysis assessing the implications of an independent Scotland.
The Treasury said that currently "all of this challenge is simply smoothed away within the union and borne across the population as a whole."
More top news
A man from China has set a rather unenviable new world record - by covering himself in more than 1.1 million bees, weighing 17st.
Chinese goalkeeper Sui Weijie has been fined 50,000 yuan (£5,240) after allowing an opponent to score while he sipped on a bottle of water
A "caring and loving" teenage boy who "lit up the life" of everyone he met has died in hospital after taking what he thought was ecstasy.