That depends on a lot of factors, Pat. Is it a primary residence? An investment? How long has it been either or both and how recently?
You can probably get basic advice from a Real Estate professional, but as the others have said, you really should be asking a CPA. I'm happy to recommend a great one located in Wheaton if you're interested.