A method of controlling transmission power of a terminal performing device to device (D2D) communication in a wireless communication system, the method including receiving power control information corresponding to radio resources used for the D2D communication by the terminal from a base station, determining a first transmission power of the radio resources to be used for the D2D communication by the terminal among the radio resources, and transmitting data for the D2D communication with the determined first transmission power by using the radio resource to be used for the D2D communication by the terminal. The present disclosure relates to a communication method and system for converging a 5th-Generation (5G) communication system for supporting higher data rates beyond a 4th-Generation (4G) system with a technology for Internet of Things (IoT). The present disclosure may be applied to intelligent services based on the 5G communication technology and the IoT-related technology, such as smart home, smart building, smart city, smart car, connected car, health care, digital education, smart retail, security and safety services.