An image processing technique was applied to x-ray micro tomography images obtained in triaxial compression tests on partially saturated sand to quantify microscopic characteristics of pore water, such as volume distribution and number of capillary bridges between grains. Variation in water retention state associated with development of a shear band is discussed