The present study deals with the analgesic effect induced by static magnetic fields (SMF) in mice exposed to the field with their whole body. It discusses how the effect depends on the distribution of the magnetic field, that is, on the specification and arrangement of the applied individual permanent magnets. A critical analysis of different magnet arrangements is given. As a result the authors propose a magnet arrangement recipe that achieves an analgesic effect of over 80% in the writhing test. This is a widely accepted screening method for animal pain and predictor of human experimental results. As a non-drug, non-invasive, non-contact, non-pain, non-addictive method for analgesia with immediate and long-lasting effect based on the stimulus of the endogenous opioid network, the SMF treatment may attract the attention of medical doctors, nurses, magnet therapists, veterinarians, physiotherapists, masseurs, and fitness trainers among others.