Since the census in 2013, the New Zealand population has grown by 443,200. It is expected to reach the 5 million milestone around 2020, but that could come earlier if net migration remains high.
The population is growing in most age groups. In the over-30 group, women outnumber men, while in the under-30 group, men outnumber women.
There are 14,600 more men than women in the 20 to 24-year old age group, and 14,000 more women than men in the 45 to 49 year-old age group.
Stats NZ said there were a number of reasons for this disparity, including migration trends, sex ratios at birth, and women living longer than men.
The median age of males and females has grown to more than 2.5 years, compared to just one years a decade ago. The median age for New Zealand men is 35.6 years and for women it is 38.2 years.