This metal detector for tablets and capsules has high precision and sensitivity, and can detect small metal impurities, ensuring the safety and effectiveness of the drug. The imported controller and sensing system ensure the stability and reliability of the detection. In addition, this metal detector for tablets and capsules is suitable for various capsule production lines and has the function of quickly removing capsules containing metal impurities, effectively ensuring product quality.