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 hacker group who claimed to be behind a cyber attack on Sony Pictures have posted a message online apparently mocking the FBI.
The returns of Benedict Cumberbatch's detective and the X Factor judge were among 2014's most tweeted TV moments in a billion conversations.
A family has issued an appeal to help find their missing pet turkey - in case he gets gobbled up as someone's Christmas dinner.