We describe the application of our computational model, developed for finding the optical gain in a mid-infrared quantum cascade laser subjected to a strong magnetic field, to two distinct λ ∼ 9 µm GaAs-based structures. The additional carrier confinement induced by the field alters the transition rates for the optical-and acoustic-phonon scattering processes from the upper laser level, thus affecting the laser output properties, in particular the optical gain. Within this model, the gain is found by solving the system of rate equations, from which the carrier densities in each level are calculated. Numerical results are presented for magnetic fields between 10 and 60 T, and the band nonparabolicity is taken into account.