The effects of the capital gains tax on the stock price have been discussed for a long time. In this paper, we build up an endowment economy to investigate the dynamic effects of capital gains tax on the prices of stock under different policy environment. In our simulation, the pricing functions depend on the stochastic property of the dividend process, and the differences between the unexpected and expected policy are little.