Well-integrity failure occurs in a small subset of petroleum wells, resulting in release of fugitive gas into intersected geologic formations. Released fugitive gas from geoenergy systems is a growing environmental concern that can contaminate groundwater aquifers and emit greenhouse gases (GHGs) to atmosphere. Currently, the roles of well-cement quality and properties of intersected geologic formations on the environmental outcomes of well-integrity failure is poorly understood. To advance understanding, we numerically modelled a hypothetical fugitive methane release from a petroleum well intersecting the Sunset Paleovalley aquifer system in Northeast British Columbia, Canada. We simulate a 10-year release and migration of fugitive gas into a two dimensional, two-phase, two-component advective flow field with the subsurface properties informed by field and laboratory data. We evaluate the effects of cement quality, gas release depth, and geologic heterogeneity on fugitive-gas containment or emission by defining and/or evaluating three key numbers: a) emission-retention ratio (ERR), b) well integrity index (WII), and c) fugitive gas mobility ratio (MR) over relevant spatiotemporal scales. We show that ERR and WII capture the bifurcated impacts of fugitive gas from petroleum wells, including groundwater contamination and atmospheric emissions. A WII close to one reduces vertical fugitive-gas migration along the well bore, fosters lateral migration into intersected geologic materials and significantly limits GHG emissions to atmosphere. MR and ERR values show fugitive-gas migration and fate are primarily controlled by the casing annulus cement quality, particularly when fugitive gas is released at shallow depths. We conclude that the quality of petroleum-well cement is among the parameters controlling the migration pathways, impacts, and fate of fugitive-gas release.