New Zealand gained a net 3,000 permanent and long-term migrants last month, the most since June 2003.
It pushed the annual net inflow to 17,500, in contrast to a net loss of 2300 the previous year and well above the average gain of 11,300 over the past 20 years.
The turnaround is largely explained by a reduction in the net loss of people to Australia, which at 23,500 in the year to October was 15,800 fewer than the year before.
The latest annual loss resulted from 42,000 departures to Australia (down 11,700 from the October 2012 year), partly offset by 18,500 arrivals (up 4,200), Statistics New Zealand said. In both directions, most migrants were New Zealand citizens.
The latest year also saw a net inflow of 5,900 from Britain, 5,500 from China and 5,200 from India.