In some jurisdictions, recounts are mandatory in the event the difference between the top two candidates is less than a percentage of votes cast or of a fixed number.
In certain regions, recounts are required when the gap between the leading two contenders is less than a percentage of total votes or a predetermined amount.