How Long do Mothballs Last?

Mothballs last somewhere around a year inside. Outside where it they get wet they will only last a few months. I can smell those thing while I’m typing. Smells like my great grandma.