This paper presents KDEP, an open-source implementation of the ICRP lung deposition model developed by the authors. KDEP, which is freely available to the public, can be used to calculate lung deposition values under a variety of different conditions using the ICRP methodology. The paper describes how KDEP implements this model and discusses some key points of the implementation. The published lung deposition values for intakes by workers were reproduced, and new deposition values were calculated for intakes by members of the public. KDEP can be obtained for free at github.com or by emailing the authors directly.