A basement fire caused up to $50,000 in damage to a Taylorsville home, but the family escaped unharmed thanks to smoke detectors.

TAYLORSVILLE — Smoke detectors alerted a family of three to a basement fire, allowing them to escape the blaze early Wednesday.

The fire broke out about 2:30 a.m. in the basement of a home at 4271 S. Rupp Court (2250 West).

A firefighter's first concern is to rescue people who may be trapped inside, said Unified Fire Battalion Chief Todd Caldwell. This worry was alleviated for responding firefighters who found the family of three already standing on the curb. Smoke detectors inside the home let them know about the fire, allowing them to escape.

Firefighters from Unified Fire Authority, South Salt Lake and West Valley City fought flames that were shooting out of a basement window. A neighboring home was evacuated while crews extinguished the fire.

The fire was contained to one room. Damage was estimated to be between $25,000 and $30,000, Unified Fire Battalion Chief Brian Anderton said.

The family of three was displaced. Investigators later determined that the cause of the fire was electrical.