Melanin, the same pigment that colors skin, hair, and eyes, turns out to have a rare combination of properties that make it useful in electronics, energy storage, sensors, and UV protection. It conducts both electrons and ions, absorbs UV light across a broad spectrum, binds to metals, and is biocompatible. Researchers are now engineering it into devices ranging from biodegradable batteries to heavy-metal detectors.
Why Melanin Works as an Electronic Material
Most organic materials conduct either electrons or ions. Melanin does both, which makes it unusual and versatile. When melanin absorbs water, a chemical equilibrium shifts inside its molecular structure, releasing both electrons and protons (hydrogen ions) that can carry charge. This means melanin’s conductivity is tunable: a dry melanin pellet conducts about 100 times less current than a hydrated one. That water-dependent switch is part of what makes melanin interesting for devices that need to interact with biological tissue, where water and ions are everywhere.
The specific type that dominates tech research is eumelanin, the dark brown-black pigment. It naturally conducts poorly in its raw state, around 10⁻⁷ siemens per centimeter. But when researchers heat thin films of eumelanin in a vacuum at 600°C for two hours, conductivity jumps by over nine orders of magnitude, reaching values above 300 siemens per centimeter. That enormous range means engineers can fine-tune eumelanin’s electrical behavior for different applications, from low-conductivity sensor layers to highly conductive electrodes. Pheomelanin, the reddish pigment found in red hair, contains sulfur and lacks the same conductive properties, so it sees far less use in electronics.
Biodegradable Batteries and Energy Storage
One of the most concrete applications so far is using melanin as an electrode material in small, body-safe batteries. Researchers have built sodium-ion battery cells with melanin anodes that deliver a specific capacity of about 30 milliamp-hours per gram. Full cells pairing melanin anodes with manganese oxide cathodes produce an initial voltage just over 1 volt and a capacity of roughly 16 milliamp-hours per gram.
Those numbers are modest compared to a lithium-ion phone battery, but the target isn’t your phone. These batteries are designed for devices like ingestible health monitors, the kind you swallow to track conditions inside your digestive tract. A melanin-based full cell can run for about five hours at low power, which is significantly longer than batteries currently used in swallowable diagnostic pills. Because melanin is a natural pigment already present in the human body, it sidesteps the toxicity concerns that come with conventional battery chemistry. The tradeoff is that the chemical reactions during discharge are largely irreversible, making these primary (single-use) cells rather than rechargeable ones.
Sensors for Pollution and Food Safety
Melanin’s ability to bind metals and adhere to surfaces has made it a building block in environmental and food-safety sensors. Polydopamine, a synthetic form of melanin, is especially popular because it self-assembles into thin coatings on almost any surface, giving sensor designers a sticky, conductive, biocompatible layer to work with.
In one design, researchers used a polydopamine coating to trap photosynthetic bacteria onto an electrode. When the sensor is exposed to heavy metals like nickel chloride or copper sulfate in water, the metal ions interfere with the bacteria’s ability to transfer electrons to the electrode, reducing the measurable photocurrent. The size of that drop correlates with the concentration of metal ions, letting the device quantify contamination. Because the bacteria generate their own power from sunlight, the sensor is self-powered, a feature that could make low-cost, portable water-quality monitoring practical in remote areas.
For food safety, polydopamine nanoparticles have been shaped into molecular imprints, essentially custom-molded cavities that match the surface chemistry of a specific pathogen. One sensor uses this approach to selectively detect Salmonella by imprinting polydopamine around a signature molecule from the bacterium’s outer membrane. After the template is removed, the remaining cavities act like a lock that only the target pathogen can fit, allowing detection without handling live bacteria during manufacturing.
UV Protection and Optical Coatings
Melanin’s broad UV absorption is its oldest known function in biology, and researchers are translating that directly into sunscreen and coating technology. Polydopamine nanoparticles used as sunscreen boosters increased UVB absorption by roughly 50% compared to the base formulation alone. Other composite systems embedding hollow polydopamine nanoparticles in hydrogel matrices achieved sun protection factor values around 34 while also demonstrating strong photostability, meaning the protection didn’t degrade quickly under continued sun exposure.
Beyond cosmetics, the same broad-spectrum absorption is relevant for coatings that protect materials or optical components from UV damage. A water-soluble form of melanin derived from a modified building block has shown good stability against both oxidation and prolonged solar exposure, properties that matter for any coating expected to last outdoors.
How Biodegradable Is Melanin Electronics?
A major selling point of melanin in technology is its potential to reduce electronic waste. Conventional organic electronic materials like copper phthalocyanine and polyphenylene sulfide barely break down in soil. Eumelanin extracted from cuttlefish ink, tested under standardized composting conditions, reached 37% biodegradation in 98 days at 58°C. At room temperature (25°C), that figure dropped to about 4% over the same period.
That 37% is meaningful compared to synthetic alternatives, but it doesn’t meet the industrial threshold for labeling a material as compostable, which requires 90% biodegradation within 180 days. Projections based on the observed breakdown rate suggest melanin would reach roughly 58% by that deadline. So melanin is substantially more biodegradable than the synthetic materials it would replace, but calling it fully compostable would be an overstatement. Importantly, the residual material left after partial breakdown showed no toxic effects on plant growth, which means even incomplete degradation doesn’t create a pollution problem.
Making Melanin at Scale
The practical barrier for all these applications is production cost. Natural melanin can be extracted from biological sources like cuttlefish ink or human hair, but yields are small and inconsistent. Synthetic melanin is typically made by oxidizing a precursor called tyrosine, which is expensive to supply in bulk. Microbial production using engineered bacteria offers a middle path: recent work with modified E. coli strains that manufacture their own tyrosine internally has achieved melanin yields of 5.6 to 7.6 milligrams per milliliter of culture, cutting production costs by 70 to 73% compared to methods requiring added tyrosine.
That cost reduction matters because melanin-based devices won’t compete with established materials unless they can be manufactured affordably. The engineered-bacteria approach is still a laboratory process, but the economics are moving in the right direction for eventual commercial use in disposable medical devices, environmental sensors, and biodegradable electronics.

