Exploitation is a fact of life for social organisms, and natural selection gives rise to revenge mechanisms that are designed to deter such exploitations. However, humans may also possess cognitive forgiveness mechanisms designed to promote the restoration of valuable social relationships following exploitation. In the current article, the authors test the hypothesis that decisions about forgiveness result from a computational system that combines information about relationship value and exploitation risk to produce decisions about whom to forgive following interpersonal offenses. The authors examined the independent and interactive effects of relationship value and exploitation risk across two studies. In Study 1, controlling for other constructs related to forgiveness, the authors assessed relationship value and exploitation risk. In Study 2, participants experienced experimental manipulations of relationship value and exploitation risk. Across studies, using hypothetical and actual offenses and varied forgiveness measures, the combination of low exploitation risk and high relationship value predicted the greatest forgiveness.