Again, it depends. Families with young children might actually prefer carpet, but installing hardwood flooring has a strong cost recovery, according to the National Association of Realtors.