You have a number of serious tax issues. I urge you to seek the help of a tax professional right away. Make sure you find a tax preparer who is experienced with reporting the sale of a home and rental real estate issues.
Let's cover some basics. You will pay capital gains tax on the sale of your home, unless you meet the criteria to exclude some or all of your gains. Now, you sold your house because the location of your job changed, so it might be possible to take a partial exclusion.
However, it sounds like you lost money on your house. That means you have no gain or profit to exclude, since you actually lost money on the sale.
If you sold your house for a loss, that loss is not tax-deductible if the house was your personal residence. The loss might be tax-deductible if the house was a rental property. However, you might have a hard time proving the house was really available to rent. A reasonable question an IRS auditor might ask would be, "who would rent the house knowing that the house is up for sale and they would have to vacate when the new owners take possession of the house?" Thus you might need to produce backup documentation, like classified ads for the rental, or a contract you signed with a property management firm to manage the property on your behalf.
Another crucial factor, this is now the year 2006, and you are working on your 2005 tax return. The period of time we are talking about covers 2004 and 2005. Did you report the house as a rental property on your 2004 tax return? If you try to report the loss as rental property, an IRS auditor would ask the obvious question: did you report the rental income and expense on your 2004 return. If you did not, the auditor would suspect you are trying to convert a non-deductible loss into a deductible loss, and they would probably would expand the audit to cover two years in order to figure out if the house was really a rental property.
Also, the formula for calculating gains or losses on rental property is slightly different than the formula for calculating gain or loss on a personal residence. I provide the rental property formula in my article on Rental Income and Expenses.
If you do decide that the house was a rental property, you will need to correct your 2004 tax return to accurately report your rental expenses. You will do this by filing an amended tax return. You will then need to accurately calculate your gain or loss in 2005. Sales of rental property are reported on Form 4797 instead of Schedule D.
One final word of caution: you give two figures for a tax refund or balance due. It is highly likely that neither number is accurate. You will need to hire a tax professional to thoroughly review your 2004 and 2005 taxes and determine the best way to handle the sale of your house in Michigan.
PS when reviewing your 2004 return, make sure you took a tax deduction for any moving expenses you paid for.