I theoretically investigate the spin Polarization and transmission of the electrons in a nanostructure consisting barriers with periodic, parallel and also anti parallel magnetization .also I investigate polarization when distance between barriers is constant, or is increased, or is decreased periodically. These observable quantities are found to be strongly affected by both the magnetic configuration and the number of the periodic magnetic barriers. When the number of periods increases, in parallel magnetization for periodic increasing distance the polarization is enhanced so in parallel configuration it is better that distance between barriers to be increasing periodically. I investigate Polarization in these configuration in both delta function approximation and modulated magnetic barriers in x direction. This Polarization can be used in spintronics device.