Using optically and electrically detected magnetic resonance ͑ODMR and EDMR, respectively͒, recombination in a GaAs/Al 0.4 Ga 0.6 As heterostructure is studied. ODMR performed at 35 GHz shows the presence of Ga interstitials in a GaAs quantum well codoped with Si and Be. Depending on the contacts used, EDMR ͑performed both at 9 and 34 GHz͒ is able to detect surface defects, intrinsic defects ͑Ga interstitial and As Ga antisite͒ as well as the Cr 4ϩ transition-metal impurity. The location of the paramagnetic states in the heterostructure was determined with EDMR using light of different absorption length for the selective excitation of photoconductivity, combined with a phase shift analysis of the different EDMR signals with respect to the modulation reference. The temperature and microwave power dependence of the EDMR signal amplitude is discussed, providing guidelines for the experimental conditions needed to perform EDMR on GaAs. Finally, using X-band and Q-band detection, the defect parameters ͑g-factor and hyperfine constants͒ for the Ga interstitial are determined to gϭ2.006, A 69 ϭ0.048 cm Ϫ1 , and A 71 ϭ0.061 cm Ϫ1 . These results are compared to previous observations.