Abstract This paper reports the results of a density functional theory investigation of structural, electronic, and optical properties of halogen (fluorine and chlorine) atoms doped graphdiyne. Graphdiyne is doped with fluorine and chlorine with three different doping configurations each where one, two and three atoms of fluorine and chlorine were doped into Graphdiyne at benzene ring and acetylene linkages. The most stable doped structure was determined using the results of formation energy. Monolayers for fluorine and chlorine doped graphdiyne uniformly display metallic characteristics except where two atoms were incorporated shows semiconductor characteristics. PDOS shows that the energy band near the Fermi level is mainly contributed by the C 2p orbitals. Doped configurations shows higher peak intensities and good absorption in the UV, visible light region and IR region. These findings offer a fundamental basis for the understanding and manipulation of electrical and optical properties for doped graphdiyne with halogen atoms atoms and it is suitable for promoting the potential application of graphdiyne based electronic and opto-electronic device applications operating mainly in infrared and ultraviolet range.