Cloud computing provides various kind of services like storage and processing that can be accessed on-demand when required. Despite its countless benefits, it incorporates some issues too that limits the full adaption of cloud and enjoy its various benefits. Mainly the issue faced during the adaptability of cloud infrastructure is high latency and unawareness of location. To overcome these issues the concept of fog computing is introduced to reduce the load on the cloud and improve the allocation of resources. The fog provides the same services as the cloud. The main features of fog are; location awareness, low latency, and mobility. However, increasing the use of IoT devices, also increase the usage of Cloud. Fog environment. So, much usage of fog getting attention of researcher about energy consumption. In this paper, we try to solve the problem of energy consumption in terms of resources allocation by applying the load balancing algorithms and compare its result with the energy models.