A general program, AngleSearch, which calculates coupling constants and interproton distances for any molecular fragment and does a grid search to find torsion angles, rotamer populations, and stereospecific assignments which fit the measured data has been developed. The program takes full advantage of the fact that ratios of cross-peak intensities (measured in HNHB and HN(CO)HB experiments) can provide accurate ratios of coupling constants even for large molecules. AngleSearch is capable of (a) analyzing any type of residue including protein, RNA, DNA, and ligand residues; (b) conformational grid searching in dihedral-angle space using 6 degree steps; (c) averaging coupling constants and (l/r6) distances for rotamers undergoing fast exchange; (d) grid or Monte Carlo searching for populations of staggered rotamers; (e) using all available distance-related data from ROESY and/or NOESY spectra; (f) using any available coupling constant data having known relationships to corresponding dihedral angles; and (g) directly using cross-peak intensities related to values of coupling constants. The program can also assist in the stereospecific assignment of the alpha-CH2 protons of glycine residues. The effects of the quality of the input data on the results of the AngleSearch calculations have been assessed.