The extraction of scattering parameters from Euclidean simulations of a Yukawa model in a finite volume with periodic boundary conditions is analyzed both in non relativistic quantum mechanics and in quantum field theory.