When you sell property, the difference between what you receive and your tax basis in the property produces gain or loss. When selling property, include what you paid for this, such as the land and the cost of constructing the home as well as the initial closing costs (e.g., attorney’s fees, etc.).
In 2007, up to $85,700 of foreign earned income is exempt from tax if a foreign residence or physical presence test is met.