Toxicity of magnets

With regard to chemical composition, magnets comply with the European directive (2002/95/EC). RoHS (Restriction of Hazardous Substances).
Ferrite magnets are not toxic. In an extreme environment (acids) a small amount of barium may be released. In many cases barium is replaced by strontium.

The toxicity of magnets from rare earths is low and during external contact of the magnet there is no danger of intoxication thanks to the atoms being firmly bonded in the material structure.