The general rule that a U.S. citizen or resident alien is taxed on all worldwide income applies in the case of a sale of real property in the same manner as income from any other source.
1 Therefore, a U.S. citizen or resident alien who sells real property that is located in a foreign country must report and abide by U.S. tax rules relating to the sale of real property (
see Q 
7845). 
 Thus, for example, a U.S. citizen who sells a principal residence that he or she has used as a principal residence for two of the five preceding tax years is entitled to exclude a portion of the gain from taxation in the U.S. in the same manner as though the property was located within the U.S. (
see Q 
7845). 
 Though the U.S. citizen or resident alien may also be required to pay taxes upon disposition of foreign-located real property both in the U.S. and in the country in which the property is situated, he or she will be entitled to claim a credit for certain foreign taxes paid on his or her U.S. tax return.
2  Further, a U.S. citizen or resident alien may be entitled to deduct any real property taxes that are imposed by a foreign country on his or her U.S. tax return.
3    
  1     See IRS Publication 544.  
2     See IRS Publication 54.  
3     IRS Pub. 54.