By making use of the heat kernel, the chiral anomalies for two- and four-dimensional Abelian gauge theories with Pauli couplings (such as Kaluza-Klein higher-dimensional models) are derived. These are reduced to the minimal anomalies after adding counterterms to the action and by redefining the axial-vector current; confirmation of these counterterms is provided by diagrammatic analysis. Summing over the fermion modes, both the counterterms and the anomalies disappear.