Abstract:This paper constructed an utility function based on the relative wealth and habit formation , that is , the investor’s preference depends on his consumption history , as well as his relative wealth. The new utility function was used to develop a general framework of CAPMwith the relative wealth and habit formation , and three specific u2 tility functions were used to get the asset2pricing model