Refinancing a mortgage comes with various costs, including, but not limited to, application fees, origination fees, appraisal fees, title insurance and search fees, and possibly prepayment penalties. It's important to calculate these costs to understand if refinancing is financially beneficial.