We review first-principles theoretical calculations of core level shifts including the final state core hole screening effect. By using pseudopotentials with core holes, it is possible to calculate accurately the shifts of core levels which vary depending on their chemical environments. We point out the validity and limitation of the scheme by showing some examples.