Deductions & credits

Would it make a difference if the home is held in a revocable trust while married, but sold to one of the divorcing spouses at the dissolution of marriage settlement, or does the original cost basis hold regardless of ownership type?