You must complete Part II of Form 5405 to determine the amount of the credit to be repaid. If the home was sold to a related person, the credit repayment may be reduced or eliminated depending on the relationship and the amount of gain on the sale. If the home was given to someone other than your spouse, the credit repayment is generally required to be made in full.