Answer:
$20,000
Explanation:
Time difference from the "Purchase date" to "Sale date" = 9 years (1/1/2007 to 1/1/2016)
Given that, in the 9 years, Troy rented the home for first 5 years (1/1/2007 to 1/1/2012), and lived in the home as his principal residence for next 1 year(1/1/2012 to 31/12/2012)
and again rented out the home for 1 year (1/1/2013 to 31/12/2013), and again started to lived in the home as his principal residence for next 2 years. (1/1/2014 to 1/1/2016)
i.e. when we look at the last 5 years before the sale of house, Troy has lived 3 years in the home as his principal residence.
And Troy has acquired the home for $300,000 and not acquired by "like kind exchange" of property.
As per IRS rules, a owner must live at least 2 years in the home as his principal residence & home must not be acquired by 1031 exchange (like/kind exchange).
Here, Troy satisfies both conditions. (He has lived more than 2 years, and not acquired by like/kind exchange)
So, as per above rules, Troy's home sale is eligible for Maximum exclusion of $250,000 gain (being Troy is Single)
Here, as per IRS rules, Gain = Amount Realized / Adjusted Basis = $320,000 - $300,000 = $20,000.
But, being Troy home sale is eligible for Maximum exclusion of $250,000, this $20,000 gain is deducted and Net Gain = $0.