In Device-to-Device (D2D) communication, where base station (BS) suffers from the issues of unbalanced loads of traffic due to interference which requires low power consumption. The energy efficiency of D2D communication in 5G Network for IoT application is a critical issue due to power consumption at BS is considerably high. In this paper, we propose D2D-based traffic offloading scheme that smartly allocate the traffic between D2D and base station while satisfying Quality of Service (QoS) requirements, which helps to minimize the load from the base station based on the information of users’ locations with low power consumption and high spectral efficiency which fulfils the QoS requirements. We make our proposed algorithm more efficient with less complexity which improves spectral efficiency, lowers the latency with minimum QoS performance of the network. With the help of simulation parameter, we obtained some results which determines that the proposed approach significantly outperforms the other existing approaches in terms of delay or latency, average energy consumption and average computing time up to 72%, 76% and 86% when the number of tasks/loads is 100 while satisfying the users’ demand. The work proposed in this article may be useful in energy efficient 5G-D2D Network for IoT application.