Authorities found smoke and flames when they arrived at the home at 156 Broad Street in Dennis Township at 12:42 a.m. Thursday.
State police say the five had fled the home and were taken to hospitals for treatment of smoke inhalation.
The Cape May fire marshal believes the cause of the fire was electrical.
The investigation continues.