This was followed by Bournemouth.
Portsmouth has the highest levelof retirement property stock available, estate agent comparison site GetAgent has found.
Some 5.4% of properties listed in the city fall within the retirement category.
Colby Short, founder and chief executive ofGetAgent, said: “We tend to focus on those taking that first step on the ladder but there is, of course, a whole other segment of buyers at the other end of the property life-cycle.
“Although silver homebuyers account for a more marginal share of the market, it’s interesting to see where they are opting for when it comes to investing in their golden years and how this demand has shifted from the perhaps more traditional areas.
“Previously, the trend was to move to the coast and while these areas are still home to some of the highest level of retirement properties as a result, it would seem that Edinburgh is now the most in-demand amongst buyers and in need of more retirement focussed developments.”
Bournemouth ranked second with 3.8% of all stock listed as retirement properties, closely followed by Oxford (3.4%), Bristol (3.3%) and Cambridge (3.1%).
Sutton was the London borough home to the highest level of retirement stock in London at 5.9%.
Edinburgh was the most in-demand town for retired homebuyers with 57.8% of all retirement stock listed already under offer or sold subject to contract.