We calculate the light curve and phase-resolved spectra of Geminga in a three-dimensional pulsar magnetosphere model. The light curve of gamma-rays is consistent with that observed if the magnetic inclination and viewing angle are~50° and~86° respectively. We also model the phase-resolved spectra of the Geminga pulsar.