Using the theoretical formalism of Y. Sidor et al.[Phys. Rev. B76, 195320(2007)], we have theoretically studied the exciton confinement in InAs/InP quantum wells(QW) and quantum wires(QWR) in the presence of magnetic field. We have evaluated the exciton diamagnetic shift E (meV) for QW along z-direction and QWR along 110 in the presence of magnetic field both with wire height and well width. Our theoretically evaluated results show that E increase with magnetic field B(T) for decreasing well width and wire height. Our results also show that E evaluated taking parabolic mass is larger than without parabolic mass. In other calculation, our evaluated results for the radii of electron 0.15a . We also observed that E1 (meV)>>E0 (meV) for electron for elliptical QWR. These results confirm that the effect of the magnetic field on the energy of the electron becomes strong as the size of the wire increases. Our theoretically evaluated results are in good agreement with the other theoretical workers. These studies are very important in the sense that the self-assembled InAs/InP QWR and QD (quantum dot) are promising candidates for optical application at the telecommunication wavelength of 1.3 and 1.55 m because of the enhanced charge confinement.Keywords: Exciton confinement, exciton diamagnetic shift, effect of band nonparabolicity, parabolic electron mass, Vacuum electron mass, Photoluminscence spectra, Finite elliptical quantum wire, effective mass approximation, hydrostatic deformed potential, effective electron Rydberg, unstrained conduction band offset, confluent hypergeometric function.