The unique optical properties of nanometallic structures can be exploited to confine light at subwavelength scales. This excellent light trapping is critical to improve light absorption efficiency in nanoscale photovoltaic devices. Here, we apply a multiscale quantum mechanics/electromagnetics (QM/EM) method to model the current鈥搗oltage characteristics and optical properties of plasmonic nanowire-based solar cells. The QM/EM method features a combination of first-principles quantum mechanical treatment of the photoactive component and classical description of electromagnetic environment. The coupled optical-electrical QM/EM simulations demonstrate a dramatic enhancement for power conversion efficiency of nanowire solar cells due to the surface plasmon effect of nanometallic structures. The improvement is attributed to the enhanced scattering of light into the photoactive layer. We further investigate the optimal configuration of the nanostructured solar cell. Our QM/EM simulation result demonstrates that a further increase of internal quantum efficiency can be achieved by scattering light into the n-doped region of the device.