Let X,Y, and Z be linear spaces and let A and B be linear relations from X to Y and from Y to Z, respectively. The main result of this note is a formula which relates the nullities and the defects of the relations A and B with those of the product relation BA.