Spatial resolution of X-ray microanalysis in the (S)TEM is limited by the initial electron probe size and by subsequent beam broadening in the foil. A finite probe size will thus inevitably deteriorate spatial resolution when compared to the resolution figure of a hypothetical point source. It can, however, be argued that this induced alteration is acceptible if the relative deterioration in resolution is either small or in accordance with the system resolution, which is determined by the microscope and energy-dispersive system settings (magnification, number of pixels). When acquiring an X-ray map or a line scan, the probe FWHM or spot size and the sampling interval on the specimen or unmagnified pixel size should be tuned to each other in order to optimize the acquisition with respect to time. This tuning criterion is translated into a set of coupled equations for the spot size and pixel size as function of a measure (to be defined) for the alteration of resolution due to the use of a finite source. These simple analytic equations, which obviously depend on parameters such as accelerating voltage, specimen thickness, density, atomic weight and number, can easily be implemented in the software of any X-ray microanalysis system.