You can't deduct a loss on the sale of your main home or a vacation home. This is considered a personal loss and isn't deductible for tax purposes.
On the other hand, if you used the home as a rental property or it was an investment property, then you may be able to deduct the loss. TurboTax will help you figure out if you qualify for a deduction.