Scientists have analyzed Icelandic family trees and found that third cousins have the greatest number of offspring.
For example, for women born between 1800 and 1824, those with a mate related at the level of a third cousin had an average of 4.04 children and 9.17 grandchildren, while those related to their mates as eighth cousins or more distantly had 3.34 children and 7.31 grandchildren. For women born in the period 1925-1949 with mates related at the degree of third cousins, the average number of children and grandchildren were 3.27 and 6.64, compared to 2.45 and 4.86 for those with mates who were eighth cousins or more distantly related.
The findings hold for every 25-year interval studied, beginning with those born in the year 1800 up to the present day. [Link]