The high potential of metal halide perovskite (MHP) nanocrystals with the general formula CsPbX3 (X = Cl, Br, and I) has led to the development of easy and cost-effective methods on a daily basis. The room temperature (RT) and open atmosphere ligand-assisted reprecipitation (LARP) methods were utilized to synthesize CsPbBr3 and CsPbBr2I nanocrystals (NCs). CaCl2 was used as a dopant in four different concentrations (0.25, 0.5, 0.75, and 1 % molar) to optimize the optical and electrical properties and to enhance the stability of NCs. The most optimal results were observed with 0.25 % doping for CsPbBr2I and 0.75 % doping for CsPbBr3. XRD and FE-SEM analyses revealed a cubic crystal structure for the synthesized nanocrystals. Dynamic light scattering (DLS) analysis indicated an average size of was 35–70 nm. The introduction of Ca2+ impurity, resulted in increased sizes for 0.75 % doped CsPbBr3 NCs; and increased intensity for 0.25 % doped CsPbBr2I NCs. Optical studies, including UV–vis, Fourier Transform Infrared (FTIR), and photoluminescence spectroscopies were conducted. The bandgap of CsPbBr2I and CsPbBr3 was estimated at 2.60 and 2.75 eV, respectively. The FTIR spectra suggested the effective involvement of the ligand agents oleic acid (OA) and oleylamine (OLA) in synthesis of metal halide perovskite nanocrystals. Photoluminescence spectroscopy demonstrated that the photoluminescence intensity of CsPbBr2I and CsPbBr3 varied with impurity doping, indicating an enhancement of semiconductor electronic properties under Ca2+ doping.