Double mutant cycles enable the measurement of pairwise interactions in proteins. This method is extended for mutations at any number of positions in the protein. This provides a way for determining the context dependence of pairwise interactions on other neighbouring residues.