The two-alarm fire broke out in a six-story building on Vermilyea Avenue in the Inwood section of Manhattan at around 10:50 a.m. Sunday.
About 125 firefighters responded and quickly extinguished the fire.
The five injured residents mostly suffered from smoke inhalation.
The cause of the fire is still under investigation.