We compute characteristic numbers of crepant resolutions of Weierstrass models corresponding to elliptically fibered fourfolds Y dual in F-theory to a gauge theory with gauge group G. In contrast to the case of fivefolds, Chern and Pontryagin numbers of fourfolds are invariant under crepant birational maps. It follows that Chern and Pontryagin numbers are independent on a choice of a crepant resolution. We present the results for the Euler characteristic, the holomorphic genera, the Todd-genus, the L-genus, theÂ-genus, and the curvature invariant X 8 that appears in M-theory. We also show that certain characteristic classes are independent on the choice of the Kodaria fiber characterizing the group G. That is the case of ∫ Y c 2 1 c 2 , the arithmetic genus, and theÂ-genus. Thus, it is enough to know ∫ Y c 2 2 and the Euler characteristic χ(Y ) to determine all the Chern numbers of an elliptically fibered fourfold. We consider the cases of G = SU(n) for (n =