Earnest money is a good faith deposit, which is usually returned to the buyer. However, the buyer can forfeit earnest money if they break the terms of the purchase agreement. If the sale goes through smoothly, the funds will be released to the buyer and put towards closing costs or the downpayment. Buyers can also keep earnest money if they walk away for reasons linked to specific contingencies outlined in the purchase agreement.