This work investigates the electronic and optical properties of excitons and trions in semiconductor nanostructures, applying finite and infinite confinement models. Trions, or charged excitons, are quasiparticles formed by the association of an exciton with an electron or a hole. They are distinguished by their charge and mobility, generating unique properties for nanostructures. Our study calculates the binding energy, energy transition and electronic wave function in a cylindrical quantum box, integrating the effects of pressure and temperature. Two theoretical models are proposed for binding and non-correlation energy, based on a multi-parameter variational approach. The results show that the properties of trions depend on pressure, temperature and confinement, and that they are more stable in nanostructures, opening up technological perspectives in optoelectronics and telecommunications.