In chemistry, paramagnetic and diamagnetic refer to the magnetic properties of a substance. A substance is diamagnetic if all of its electrons are paired, meaning that it does not have any unpaired electrons. On the other hand, a substance is paramagnetic if it has one or more unpaired electrons. When a substance is placed in a magnetic field, paramagnetic substances are attracted to the field, while diamagnetic substances are repelled by the field. The magnetic properties of a substance can be determined by examining its electron configuration. If a substance has unpaired electrons, then it is paramagnetic, and if all of its electrons are paired, then it is diamagnetic.