The identification of nearest-neighbor residues in nucleic acids provides useful constraints on establishment of base composition and sequence and is potentially applicable to a range of structural problems involving synthetic and natural polynucleotides. A new approach to this problem using electrospray ionization tandem mass spectrometry is based on measurement of precursor-product relationships derived from small fragment ions produced in the high-pressure ionization ("nozzle-skimmer") region of the instrument. Measured mass values of dinucleotide or other fragments, which give rise to mononucleotide ions N formed in the collision cell and transmitted by the second mass analyzer, establish the identities of residues adjacent to N. The technique is applicable to RNA and DNA, whether modified, or not, and is demonstrated using modified residues in nucleic acids up to the size of intact tRNA (76-mer). By monitoring of selected ion reaction channels, the method has been extended to LC/MS and to nearest-neighbor determinations directly in oligonucleotide mixtures.