Foam is the cheapest option. They are also very soft and comfortable for sleeping. However, their material makes them a good environment for bacteria, so you need to replace them regularly to avoid complications like infection. Soft silicone earplugs provide a comfortable fit and can mold to the size of your ear.