Libxc is a library of exchange-correlation functionals for density functional theory calculations. It contains over 100 functionals including LDA, GGA, hybrid, and meta-GGA approximations. Libxc is written in C with bindings for C and Fortran and returns values needed for Kohn-Sham equations like the exchange-correlation energy, potential, and derivatives. It has been incorporated into several electronic structure codes.