Recent advances in X-ray sources have led to a renaissance in spectroscopic techniques in the X-ray region. These techniques that involve the excitation of core electrons can provide an atom specific probe of electronic structure and provide powerful analytical tools that are used in many fields of research. Theoretical calculations can often play an important role in the analysis and interpretation of experimental spectra. In this perspective, we review recent developments in quantum chemical calculations of X-ray absorption spectra, focusing on the use of time-dependent density functional theory to study core excitations. The practical application of these calculations is illustrated with examples drawn from surface science and bioinorganic chemistry, and the application of these methods to study X-ray emission spectroscopy is explored.