In the present paper, we prove an identity for the generating function of the quadruple zeta values with the action of the matrix ring M 4 (Z). Taking homogeneous parts on both sides of the identity and substituting appropriate values for the variables, we obtain the sum formula for quadruple zeta values. We also obtain its weighted analogues, which include the formulas for this case proved by