Surface traps can shape the gain and response time of nanoscale photodetectors, yet measuring them is difficult. An optoelectronic method uses modulated illumination and photoconductance to estimate nanowire trap-state density, with resolution reaching individual trapped charges.