In mathematics, an alternating algebra is a Z-graded algebra for which xy = (−1)deg(x)deg(y)yx for all nonzero homogeneous elements x and y (i.e. it is an anticommutative algebra) and has the further property that x2 = 0 for every homogeneous element x of odd degree.