Attenuation is the reduction in intensity of an x-ray beam as it passes through matter due to absorption or deflection of photons. Attenuation depends on both the quantity and quality of photons in the beam, where quantity refers to the number of photons and quality refers to their energies. Four main factors determine the degree of attenuation: the energy of the radiation and the density, atomic number, and electrons per gram of the absorbing material. Higher radiation energy decreases attenuation while higher values of the material properties increase attenuation.