First, the energy resolution of CdTe X-ray counters of planar shape is calculated in the energy range 5-100 keV, assuming a constant field within the detector. Then, the experimental performance of the counters are compared to the calculations and the discrepancies are discussed