In solar-cell technology, band-gap grading has been introduced to enhance the efficiency of charge collection, by inducing drift motion of charge carriers. Characterizing such systems accurately is tricky, though, due to technical difficulty in clearly separating carrier diffusion from drift. This study uses wavelength-dependent lateral photocurrent in a generic device structure to simultaneously characterize the electrical qualities of both the light absorber and the back surface in a graded-band-gap solar cell. The technique is readily applicable to many types of photoactive devices, because it works well without any knowledge of the actual band-gap grading.