Your basis includes the settlement fees and closing costs for buying property. You can't include in your basis the fees and costs for getting a loan on property. A fee for buying property is a cost that must be paid even if you bought the property for cash.