We present an algorithm for the computation of scattering poles for an impenetrable obstacle with Dirichlet or Robin boundary conditions in acoustic scattering. This paper builds upon the previous work of Cakoni et al . (2020) titled ‘A duality between scattering poles and transmission eigenvalues in scattering theory’ (Cakoni et al . 2020 Proc. A. 476 , 20200612 ( doi:10.1098/rspa.2020.0612 )), where the authors developed a conceptually unified approach for characterizing the scattering poles and interior eigenvalues corresponding to a scattering problem. This approach views scattering poles as dual to interior eigenvalues by interchanging the roles of incident and scattered fields. In this framework, both sets are linked to the kernel of the relative scattering operator that maps incident fields to scattered fields. This mapping corresponds to the exterior scattering problem for the interior eigenvalues and the interior scattering problem for scattering poles. Leveraging this dual characterization and inspired by the generalized linear sampling method for computing the interior eigenvalues, we present a novel numerical algorithm for computing scattering poles without relying on an iterative scheme. Preliminary numerical examples showcase the effectiveness of this computational approach.