We consider a holographic description of the chiral symmetry breaking in an external magnetic field in -dimensional gauge theories from the softwall model using an improved dilaton field profile given by . We find inverse magnetic catalysis for B < Bc and magnetic catalysis for B > Bc, where Bc is the pseudocritical magnetic field. The transition between these two regimes is a crossover and occurs at , which depends on the fermion mass and temperature. We also find spontaneous chiral symmetry breaking (the chiral condensate ) at T = 0 in the chiral limit () and chiral symmetry restoration for finite temperatures. We observe that changing the k parameter of the dilaton profile only affects the overall scales of the system such as Bc and σ. For instance, by increasing k one sees an increase of Bc andσ. This suggests that increasing the parameters k1 and k2 will decrease the values of Bc and σ.