Retirement tax questions

If the  niece lives there at least 2 years she can shelter 250k of gain or 500k of gain if married, and if it has been at least 2 years since she sold a previous home.  If the gain is more than 250k or 500k there will be some tax owed.