I had a client ask me this today and, well, as with most things, it depends. There are a few different ways the buyer could get their earnest money back, but I am going to mention two of the most common ways.
1st Scenario: Inspection Findings - if the home inspector would find a major item during the home inspection, such as a leak in the roof, and the seller refuses to fix it, the buyer ...