The two most prevalent causes of rotten egg smell in the home are electrical components or a natural gas leak. Mercaptan smells like rotten eggs, and natural gas manufacturers add it to detect leaks.