Any loans are completely irrelevant. Your cost basis is what you paid (or the value of the gift) plus the cost of your improvements. You received a gift of equity from your in-laws so you received their basis of $65,000. If you made $50,000 of improvements, then your total adjusted basis is $115,000.