Isospin quantum molecular dynamics (IQMD) model is a reliable computational tool for the study of various phenomena (multi fragmentation, anisotropic flow, nuclear stopping) from low to intermediate heavy ion collisions (HICs). Here, simulation has been carried out for the magnetic field generated during non-central HICs using the IQMD model. The effect of various parameters, such as centrality, angular momentum, rapidity and incident energy has been thoroughly investigated on the magnetic field with the evolution of time and space. It has been observed that the rapidity bin significantly impacts the magnitude of the magnetic field in different directions. Furthermore, the magnetic field produced during HIC leads to a notable impact on the in-plane momentum of the proton and neutron.