Deductions & credits

if you owned and live in the property for 24 months (930 days) or more in the last 5 years before the date of sale you are entitled to the full exclusion.

the allowable premium tax credit is based on modified adjusted gross income  - AGI with certain items added back. the home sale exclusion is not one of those items added back.