In various areas of the communication system, work based on Wireless Sensor Network (WSN) is being used these days. It is observed that trust-based model for WSN as a controlled secure, confidential and robustness with a consistent communication troubleshoots a lot of problems in delivering. This makes a node in WSN, that is, ready to deal with and act on attacks caused by additional nodes in different communication networks. This is a highly challenging task due to the lack of a trust resource and the dynamics that this network institute brings. In this paper, we propose Trust Calculation Algorithm for communicating nodes in WSN. Trust calculation algorithm provide the trust-based routing table for every node. It serves as an important role in the communication process for nodes from clusters, nodes from nodes and clusters from clusters in WSN.