Golf handicaps are calculated based on a player's recent scores and the difficulty of the golf course being played. The calculation takes into account a player's best scores and adjusts for any outliers or particularly bad rounds.