Cloud computing is presently being paid much attention as a way of distribution and sharing out of information. Similarly, as latest experience illustrates, the unspecified, open environment of this technology presents more or less an idealistic environment for the augmented unauthentic communication. The issue of having trust in cloud computing is a main apprehension for the majority of computing industry. Presently, the important contents for research in cloud computing is to evaluate the trust and behavior based computing. The uncertainty of cloud nodes, the services and resources cloud provide may have a negative effect on the execution of cloud tasks. This makes it very difficult for the cloud node to interact effectively and increase the chances of transaction failures. The authors proposed a model, and design an algorithm of trust which is based on the social model of reputation and trust. The algorithm calculates the trust degree of a node before any communication take place between the nodes. This reduces the chances of failure and increase communication efficiency.