Social media data analysis has emerged as an important part of the new generation of information technology. However, Social media data analysis is based on Data Mining. A new algorithm based on $$\hbox {M}^{\mathrm{x}}/\hbox {G}/1$$ Queue model is proposed to calculate money flow of Social media stocks. The proposed algorithm exploits the transaction data behind the social media stocks, such as volume, the Commission transaction queue, closing price, etc. Through the Social media stock trading data, we use Matlab programming to carry out data mining and calculation of money flows, and draw the money inflow and outflow curve. The experimental results show that our new model has strong practicability for the data mining of Social media stocks. The experimental results can also reflect the development of the social media more clearly. The method of data mining on the Social media stocks provides an indirect way to study the economic and regional economy of the Social media stocks.