Transmission Electron Microscopy and x-ray diffraction were used to study compositional modulation in In{sub x}Ga{sub 1-x} N layers grown with compositions close to the miscibility gap. The samples (0.34 < x < 0.8) were deposited by molecular beam epitaxy using either a 200-nm-thick AlN or GaN buffer layer grown on a sapphire substrate. In the TEM imaging mode this modulation is seen as black/white fringes which can be considered as self-assembled thin quantum wells. Periodic compositional modulation leads to extra electron diffraction spots and satellite reflections in x-ray diffraction in the {theta}-2{theta} coupled geometry. The modulation period was determined using both methods. Larger modulation periods were observed for layers with higher In content and for those having larger mismatch with the underlying AlN buffer layer. Compositional modulation was not observed for a sample with x = 0.34 grown on a GaN buffer layer. Modulated films tend to have large 'Stokes shifts' between their absorption edge and photoluminescence peak