No, a personal loss is not allowed to offset or reduce other income on your tax return. If the sales price is less than your adjusted cost basis (original purchase price, plus sales and purchase expenses, plus capital improvements) then this would be a personal loss because it was your main home.
You cannot use the balance due on any outstanding loan on the home or other debt for the home to determine your gain or loss.