We consider the quantum completeness problem, i.e. the problem of confining quantum particles, on a non-complete Riemannian manifold M equipped with a smooth measure w, possibly degenerate or singular near the metric boundary of M, and in presence of a real-valued potential V is an element of L-loc(2) (M). The main merit of this paper is the identification of an intrinsic quantity, the effective potential V-eff, which allows to formulate simple criteria for quantum confinement. Let delta be the distance from the possibly non-compact metric boundary of M. A simplified version of the main result guarantees quantum completeness if V >= -c delta(2) far from the metric boundary andV-eff + V >= 3/4 delta(2)-k/delta, close to the metric boun...