The performance of rectangular radio frequency (RF) coils capable of being used to detect nuclear quadrupole resonance (NQR) signals from blister packs of medicines has been compared. The performance of a fixed-pitch RF coil was compared with that from two variable-pitch coils, one based on a design in the literature and the other optimized to obtain the most homogeneous RF field over the whole volume of the coil. It has been shown from (14)N NQR measurements with two medicines, the antibiotic ampicillin (as trihydrate) and the analgesic medicine Paracetamol, that the latter design gives NQR signal intensities almost independent of the distribution of the capsules or pills within the RF coil and is therefore more suitable for quantitative analysis.