The density functional theory method was applied using the gradient PBE, incorporating the hybrid PBE0 functional along with dispersion corrections D3(BJ). These objectives were accomplished through the utilization of the CRYSTAL package, employing a localized atomic orbital basis. Calculations encompassing crystal properties, including electronic, structural, and linear/nonlinear opto-electronic characteristics, were conducted for monoclinic AB 2(PO3)5. Specifically, the polyphosphates investigated in this study are RbPb2(PO3)5, CsPb2(PO3)5, KBa2(PO3)5, and RbBa2(PO3)5. It was demonstrated that in monoclinic phosphates, phosphorus and oxygen atoms form infinite chains [PO4]∞ based on the· ⋯ O1-P-O1 ⋯ ·structure. Alkali metal and lead (barium) atoms are surrounded by oxygen atoms O2, forming polyhedra. Infrared absorption spectra calculations confirmed the presence of chain backbone structural units. Additionally, band structure and partial density of electronic states were determined. The nature of valence and unoccupied states was also investigated. In lead-doped compounds, lead atoms contribute to the formation of upper-valence and lower-unoccupied states. Conversely, in barium-doped compounds, the upper valence states are primarily formed by O2 p-states, while the lower unoccupied states are formed by phosphorus. Also, the coefficients of second harmonic generation and birefringence were calculated, assessing the potential use of phosphates as nonlinear optical materials.