Device-to-device (D2D) communication brings many advantages in underlay cellular networks such as improving spectrum efficiency, energy efficiency and cellular capacity. However, D2D transmission creates interference to the cellular user equipment (CUEs) and other D2D pairs. So, proper resource allocation handling is required to suppress the interference introduced by the addition of D2D user equipment (DUEs) in the existing cellular networks. In this paper, Distance Based Interference Mitigation (DBIM) algorithm is proposed to mitigate interference where the locations of user equipment (UEs) and evolved NodeB (eNB) are identified and distances between them are estimated using Haversine Formula. In this work resources are allocated to UEs based on distance constraints. Further, the significance of D2D communication and simulations to justify the proposed scheme is also presented. © 2017 IEEE.