The coercivity HW of a flexible domain wall is calculated considering various mechanisms of domain wall volume and surface pinning such as intergrain boundaries, easy axes angular fluctuations of crystallites, substrate and thin magnetic film surface roughnesses. The HW dependence on thickness D is stipulated chiefly by surface domain wall pinning. Comparison of experimental and calculated HW(D) reveals the contribution of volume and surface inhomogeneities.