Refer to the document you signed. If you are a buyer, there are likely several ways to terminate the contract and not risk earnest money or more. If you are a seller, an opportunity may arise as the contract contingencies mature. Your agent would be your best source for advice. If you are talking about a listing contract, I would speak to your agent about your change of heart. Hopefully, the agent hasn't invested too much money (staging, marketing, mailings) already. But if they have you could offer to reimburse their costs. A sensible agent will understand your position and take steps to negate the contract. Either way, do understand that if you sell the house within a certain time period after the contract is cancelled or expires you may still be obligated to pay a listing commission. Read your contract and know your options.