The formation density tool provides a continuous record of a formation's bulk density along the length of a borehole. It works by emitting gamma rays into the formation, which are scattered via Compton scattering. The density measurement is used to derive porosity, with the main advantages being it compensates for mudcake and minor borehole issues. When combined with neutron logs, it provides one of the best ways to identify lithologies in a borehole. The tool has good vertical resolution but can be impacted by borehole quality, drilling mud properties, and shale content.