Retirement tax questions

Hm... so how would the IRS calculate my tax owed?  How much would I owe if I rented for about two years, but last year I lived in it, but moved out recently and want to gift it to my niece next year?