Using an empirical analysis of experimental data we have estimated a set of energy contributions which accounts for the stability of isolated alpha-helices. With this database and an algorithm based on statistical mechanics, we describe the average helical behaviour in solution of 323 peptides and the helicity per residue of those peptides analyzed by nuclear magnetic resonance. Moreover the algorithm successfully detects the alpha-helical tendency, in solution, of a peptide corresponding to a beta-strand of ubiquitin.