# Depletion layer thickness

#1

Hi,
Is the thickness of the depletion layer of a PIN diode calculated somewhere or is it something I have to estimate manually?

#2

Hi @s.andreou, There is no automatic way to calculate the depletion layer thickness currently. You will have to manually calculate it using either an electric field monitor or a bandstructure monitor. You can find an example in this KB page where a bandstructure monitor along with some script commands have been used to calculate the thickness of the depletion layer of a pn junction: https://kb.lumerical.com/en/index.html?other_application_gs_pn_diode_discussion.html.