In this paper, using the Two Micron All Sky Survey (2MASS) photometry, we study the mass functions φ(M) = dN/dM∝M−α of a sample of nine clusters of ages varying from 4 Myr to 1.2 Gyr and Galactocentric distances from 6 to 12 kpc. We look for evidence of mass segregation in these clusters by tracing the variation in the value of α in different regions of the cluster as a function of the parameter τ=tage/trelax (where tage is the age of the cluster and trelax is the relaxation time of the cluster), Galactocentric distance, age and size of the cluster. The value of α value increases with age and τ and fits straight lines with slopes m and y-intercepts c given by m= 0.40 ± 0.03, c=−1.86 ± 0.27 and m= 0.01 ± 0.001, c=−0.85 ± 0.02, respectively, and is a clear indicator of the dynamical processes involved. The confidence level of the Pearson’s product–moment correlation of α with age is 0.76 with p= 0.002 and with τ is 0.71 with p= 0.007. The value of α also increases with Galactocentric distance, indicating the presence of a larger relative number of low-mass stars in clusters at larger Galactocentric distances. We find two clusters, namely IC 1805 and NGC 1893, with evidence of primordial or early dynamical mass segregation. Implications of primordial mass segregation on the formation of massive stars and recent results supporting early dynamical mass segregation are discussed.