The effect of an exponentially decaying magnetic field on the dynamics of Dirac fermions in 3 þ 1 dimensions is explored. The spatially decaying magnetic field is assumed to be aligned in the third direction, and is defined by BðxÞ ¼ BðxÞe z , with BðxÞ ¼ B 0 e Àx=' B . Here, is a dimensionless damping factor and ' B ¼ ðeB 0 Þ À1=2 is the magnetic length. As it turns out, the energy spectrum of fermions in this inhomogeneous magnetic field can be analytically determined using the Ritus method. Assuming the magnetic field to be strong, the chiral condensate and the local electric current correlation function are computed in the lowest Landau level (LLL) approximation and the results are compared with those arising from a strong homogeneous magnetic field. Although the constant magnetic field B 0 can be reproduced by taking the limit of ! 0 and/or x ! 0 from BðxÞ, these limits turn out to be singular, especially once the quantum corrections are taken into account.