We present equilibrium geometries, vibrational modes, dipole moments, ionization energies, electron affinities, and optical absorption spectra of the DNA base molecules adenine, thymine, guanine, and cytosine calculated from first principles. The comparison of our results with experimental data and results obtained by using quantum chemistry methods show that in specific cases gradient-corrected density-functional theory (DFT-GGA) calculations using ultrasoft pseudopotentials and a plane-wave basis may be a numerically efficient and accurate alternative to methods employing localized orbitals for the expansion of the electron wave functions.