The goal of this work is to develop techniques for measuring gradients in particle concentration within filled polymers, such as encapsulant. A high concentration of filler particles is added to such materials to tailor physical properties such as thermal expansion coefficient. Sedimentation and flow-induced migration of particles can produce concentration gradients that are most severe near material boundaries. Therefore, techniques for measuring local particle concentration should be accurate near boundaries. Particle gradients in an alumina-filled epoxy resin are measured with a spatial resolution of 0.2 mm using an x-ray beam attenuation technique, but an artifact related to the finite diameter of the beam reduces accuracy near the specimen's edge. Local particle concentration near an edge can be measured more reliably using microscopy coupled with image analysis. This is illustrated by measuring concentration profiles of glass particles having 40 {micro}m median diameter using images acquired by a confocal laser fluorescence microscope. The mean of the measured profiles of volume fraction agrees to better than 3% with the expected value, and the shape of the profiles agrees qualitatively with simple theory for sedimentation of monodisperse particles. Extending this microscopy technique to smaller, micron-scale filler particles used in encapsulant for microelectronic devices is illustrated by measuring the local concentration of an epoxy resin containing 0.41 volume fraction of silica