This study describes structural, electronic and optical properties of Mg x Cd 1-x X (X = S, Se, Te) alloys in the complete range 0≤x ≤1 of composition x in the zinc-blende (ZB) phase with the help of full-potential linearized augmented plane wave plus local orbitals (FP-LAPW+lo) method within density functional theory (DFT). In order to calculate total energy, generalized gradient approximation (Wu–Cohen GGA) has been applied, which is based on optimization energy. For electronic structure calculations, the corresponding potential is being optimized by Engel–Vosko GGA formalism. Our calculations reveal the nonlinear variation of lattice constant and bulk modulus with different concentration for the end binary and their ternary alloys, which slightly deviates from Vegard's law. The calculated band structures show a direct band gap for all three alloys with increasing order in the complete range of the compositional parameter x. In addition, we have discussed the disorder parameter (gap bowing) and concluded that the total band gap bowing is substantially influenced by the chemical (electronegativity) contribution. The calculated density of states (DOS) of these alloys is discussed in terms of contribution from various s-, p- and d-states of the constituent atoms and charge density distributions plots are analyzed. Optical properties have been presented in the form of the complex dielectric function ε(ω), refractive index n(ω) and extinction coefficient k(ω) as function of the incident photon energy, and the results have been compared with existing experimental data and other theoretical calculations.