Let be a finite group. The commutativity degree of , written , is defined as the ratio . In this paper, we examine the commutativity degree of groups of nilpotency class 2 and, by using numerical solutions of the equation , we give certain explicit formulas for some particular classes of finite groups. A lower bound for is obtained for -generated groups of nilpotency class .