A capacitor that comprises a solid electrolytic capacitor element, a casing material that encapsulates the capacitor element, an anode termination, and a cathode termination is provided. A nanocoating is disposed on at least a portion of the capacitor element, casing material, anode termination, cathode termination, or a combination thereof. The nanocoating has an average thickness of about 2,000 nanometers or less and contains a vapor-deposited polymer.